Fixed issue of importing invoice and bill

refs #2710
This commit is contained in:
EnesSacid-Buker
2023-02-20 13:00:59 +03:00
parent dc2ca953dd
commit a96d326f09
15 changed files with 25 additions and 0 deletions

View File

@@ -327,6 +327,7 @@ trait Import
$data = [
'company_id' => company_id(),
'type' => $row['item_type'],
'name' => $row['item_name'],
'sale_price' => !empty($row['sale_price']) ? $row['sale_price'] : (!empty($row['price']) ? $row['price'] : 0),
'purchase_price' => !empty($row['purchase_price']) ? $row['purchase_price'] : (!empty($row['price']) ? $row['price'] : 0),