From 76670cb66441263d571a68d971d7a63a87b75de4 Mon Sep 17 00:00:00 2001 From: Shohrat Date: Tue, 19 Dec 2023 02:31:27 +0500 Subject: [PATCH] report bag --- themes/gokbakja/pages/actions/bag-report.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/gokbakja/pages/actions/bag-report.htm b/themes/gokbakja/pages/actions/bag-report.htm index 7a0275d..4d4d646 100644 --- a/themes/gokbakja/pages/actions/bag-report.htm +++ b/themes/gokbakja/pages/actions/bag-report.htm @@ -126,7 +126,7 @@ function onStart() { $reportDatas[$x]["width"] = $bagProds[$x]->width; $reportDatas[$x]["height"] = $bagProds[$x]->height; - $reportDatas[$x]["color"] = $bagProds[$x]->color->name; + $reportDatas[$x]["color"] = $bagProds[$x]->color->name ?? ""; $reportDatas[$x]["bag_gram"] = $bagProds[$x]->bag_gram ?? 0; $reportDatas[$x]["amount"] = $action; $reportDatas[$x]["defective"] = $calculateBrak;