mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fix to invoice item transformer
This commit is contained in:
parent
9aeea2f93a
commit
043e4ce729
@ -19,9 +19,9 @@ class InvoiceItemTransformer extends EntityTransformer
|
|||||||
'notes' => $item->notes,
|
'notes' => $item->notes,
|
||||||
'cost' => (float) $item->cost,
|
'cost' => (float) $item->cost,
|
||||||
'qty' => (float) $item->qty,
|
'qty' => (float) $item->qty,
|
||||||
'tax_name1' => $item->tax_name1,
|
'tax_name1' => $item->tax_name1 ? $item->tax_name1 : '',
|
||||||
'tax_rate1' => (float) $item->tax_rate1,
|
'tax_rate1' => (float) $item->tax_rate1,
|
||||||
'tax_name2' => $item->tax_name2,
|
'tax_name2' => $item->tax_name2 ? $item->tax_name1 : '',
|
||||||
'tax_rate2' => (float) $item->tax_rate2,
|
'tax_rate2' => (float) $item->tax_rate2,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user