Merge pull request #2897 from EnesSacid-Buker/import-invoice

Issue of importing invoice and bill
This commit is contained in:
Cüneyt Şentürk
2023-02-22 11:03:36 +03:00
committed by GitHub
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),