| @@ -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 |