1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for zero tax rates

This commit is contained in:
Hillel Coren 2018-09-09 08:48:57 +03:00
parent 4c56c8d3a6
commit ffe9ef574a

View File

@ -349,7 +349,7 @@ class InvoiceApiController extends BaseAPIController
// Workaround to support line item taxes w/Zapier
foreach (['tax_rate1', 'tax_name1', 'tax_rate2', 'tax_name2'] as $field) {
if (! empty($item['item_' . $field])) {
if (isset($item['item_' . $field])) {
$item[$field] = $item['item_' . $field];
}
}