| @@ -200,9 +200,9 @@ | ||
| 200 | 200 | $base_total = $base_total * (1 + $adjust_percentage / 100); |
| 201 | 201 | } |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | - return $base_total; | |
| 204 | + return easy_invoice_round_money($base_total); | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | 208 | * Check if the item is taxable |
| @@ -265,9 +265,9 @@ | ||
| 265 | 265 | $field_name = $this->camelCaseToSnakeCase(substr($name, 3)); // Remove 'has' prefix |
| 266 | 266 | return !empty($this->__get($field_name)); |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | - throw new \BadMethodCallException("Method $name does not exist"); | |
| 269 | + throw new \BadMethodCallException(esc_html("Method $name does not exist")); | |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | 273 | * Convert camelCase to snake_case |