mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Don’t update product price if prices are converted
This commit is contained in:
parent
cb2132032b
commit
27a25d429b
@ -739,7 +739,9 @@ class InvoiceRepository extends BaseRepository
|
||||
}
|
||||
if ($product && (Auth::user()->can('edit', $product))) {
|
||||
$product->notes = ($task || $expense) ? '' : $item['notes'];
|
||||
$product->cost = $expense ? 0 : $item['cost'];
|
||||
if (! $account->convert_products) {
|
||||
$product->cost = $expense ? 0 : $item['cost'];
|
||||
}
|
||||
$product->tax_name1 = isset($item['tax_name1']) ? $item['tax_name1'] : null;
|
||||
$product->tax_rate1 = isset($item['tax_rate1']) ? $item['tax_rate1'] : 0;
|
||||
$product->tax_name2 = isset($item['tax_name2']) ? $item['tax_name2'] : null;
|
||||
|
Loading…
Reference in New Issue
Block a user