Skip to content

Commit

Permalink
Update Items.php
Browse files Browse the repository at this point in the history
Fixes the problem where 'Supplier ID' is not saved during csv import.
  • Loading branch information
jevinsonlim authored and jekkos committed Sep 29, 2021
1 parent e8f27f5 commit 2f69841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/Items.php
Expand Up @@ -886,7 +886,7 @@ public function import_csv_file()
'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;
}
Expand Down

0 comments on commit 2f69841

Please sign in to comment.