Barcodes in report Stock Check Sheets should only print numeric stock id's.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 22 Dec 2018 10:54:46 +0000 (11:54 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 22 Dec 2018 10:54:46 +0000 (11:54 +0100)
reporting/rep303.php

index 65b91c4686bb75fc7e71fe3f1f8f2bc6801e0717..46c4126d247d63798d145f401c8d08014dc5d685 100644 (file)
@@ -217,7 +217,7 @@ function print_stock_check()
                        if ($rep->row - $SysPrefs->pic_height < $rep->bottomMargin)
                                $rep->NewPage();
                        $firstcol = 1;  
-                       if ($barcodes)
+                       if ($barcodes && is_numeric($trans['stock_id']))
                        {
                                $bar_y = $rep->GetY();
                                $barcode = str_pad($trans['stock_id'], 7, '0', STR_PAD_LEFT);