Fixed csv import when updating items that have a barcode

This commit is contained in:
SpookedByRoaches
2024-05-06 21:52:20 +03:00
committed by jekkos
parent e4c1f4a146
commit 11d5abe6d7

View File

@@ -1103,7 +1103,7 @@ class Items extends Secure_Controller
$item_data['is_serialized'] = empty($row['Item has Serial Number'])? '0' : '1';
}
if(!empty($row['Barcode']))
if(!empty($row['Barcode']) && !$is_update)
{
$item_data['item_number'] = $row['Barcode'];
$is_failed_row = $this->item->item_number_exists($item_data['item_number']);