mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 07:14:33 -04:00
Fix barcode generation error for empty item numbers
This commit is contained in:
1 parent
9f5782e0ba
commit
c007513fc8
1 file changed
+1
-1
@@ -345,7 +345,7 @@ class Items extends Secure_area implements iData_controller
|
||||
if ($item['item_number'] == '' || $item['item_number'] == null)
|
||||
{
|
||||
// get the newly generated barcode
|
||||
$item['item_number'] = $this->barcode_lib->get_barcode($item, $config);
|
||||
$item['item_number'] = $this->barcode_lib->get_new_barcode($item, $config);
|
||||
|
||||
// remove from item any suppliers table info to avoid save failure because of unknown fields
|
||||
// WARNING: if suppliers table is changed this list needs to be upgraded, which makes the matter a bit tricky to maintain
|
||||
|
||||
Reference in new issue
Block a user