Update Items.php

Fixes the problem where 'Supplier ID' is not saved during csv import.
This commit is contained in:
Jevinson Lim
2021-09-29 17:13:31 +08:00
committed by jekkos
parent e8f27f547b
commit 2f69841c95

View File

@@ -886,7 +886,7 @@ class Items extends Secure_Controller
'hsn_code' => $row['HSN'],
'pic_filename' => $row['Image']);
if(!empty($row['supplier_id']))
if(!empty($row['Supplier ID']))
{
$item_data['supplier_id'] = $this->Supplier->exists($row['Supplier ID']) ? $row['Supplier ID'] : NULL;
}