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:
parent
4c56c8d3a6
commit
ffe9ef574a
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user