PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Models/InvoiceItem.php +2 -2 2.2.02.4.0 View file →
@@ -175,9 +175,9 @@
175 175 $field_name = $this->camelCaseToSnakeCase(substr($name, 3)); // Remove 'has' prefix
176 176 return !empty($this->__get($field_name));
177 177 }
178 178
179 - throw new \BadMethodCallException("Method $name does not exist");
179 + throw new \BadMethodCallException(esc_html("Method $name does not exist"));
180 180 }
181 181
182 182 /**
183 183 * Convert camelCase to snake_case
@@ -240,9 +240,9 @@
240 240 $base_total = $base_total * (1 + $adjust_percentage / 100);
241 241 }
242 242 }
243 243
244 - return $base_total;
244 + return easy_invoice_round_money($base_total);
245 245 }
246 246
247 247 /**
248 248 * Check if the item is taxable