mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 15:04:31 -04:00
Fix for line items discounts
This commit is contained in:
parent
b216071177
commit
96d60e7bac
@ -958,6 +958,7 @@ class InvoiceRepository extends BaseRepository
|
||||
'tax_rate2',
|
||||
'custom_value1',
|
||||
'custom_value2',
|
||||
'discount',
|
||||
] as $field) {
|
||||
$cloneItem->$field = $item->$field;
|
||||
}
|
||||
@ -1135,6 +1136,7 @@ class InvoiceRepository extends BaseRepository
|
||||
$item->tax_rate2 = $recurItem->tax_rate2;
|
||||
$item->custom_value1 = Utils::processVariables($recurItem->custom_value1, $client);
|
||||
$item->custom_value2 = Utils::processVariables($recurItem->custom_value2, $client);
|
||||
$item->discount = $recurItem->discount;
|
||||
$invoice->invoice_items()->save($item);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user