From 78292081998dbf40c461bb44b2c2e0d228933bbf Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sat, 22 Dec 2018 11:54:46 +0100 Subject: [PATCH] Barcodes in report Stock Check Sheets should only print numeric stock id's. --- reporting/rep303.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reporting/rep303.php b/reporting/rep303.php index 65b91c46..46c4126d 100644 --- a/reporting/rep303.php +++ b/reporting/rep303.php @@ -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); -- 2.30.2