Don’t update product price if prices are converted
This commit is contained in:
parent
cb2132032b
commit
27a25d429b
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue