|
|
@@ -1316,8 +1316,9 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//超出数量的打印 sssh 20240605
|
|
|
- public static function onlinePrintOver($itemList, $orderInfo, $currentName, $shop)
|
|
|
+ public static function onlinePrintOver($showItem, $orderInfo, $currentName, $shop)
|
|
|
{
|
|
|
+ $itemList = $showItem['itemList'];
|
|
|
$orderSn = $orderInfo->orderSn ?? '';
|
|
|
$arr = array_chunk($itemList, 50);
|
|
|
$totalPage = count($arr);
|
|
|
@@ -1363,7 +1364,21 @@ class OrderClass extends BaseClass
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
}
|
|
|
}
|
|
|
- $content .= '<BR>';
|
|
|
+
|
|
|
+ $kindNum = $showItem['itemStat']['kind'] ?? 0;
|
|
|
+ $bigNum = $showItem['itemStat']['bigNum'] ?? 0;
|
|
|
+ $smallNun = $showItem['itemStat']['smallNun'] ?? 0;
|
|
|
+ $content .= '********************************<BR>';
|
|
|
+ $content .= "<CB>共{$kindNum}种";
|
|
|
+ $content .= " 数量:";
|
|
|
+ if ($bigNum > 0) {
|
|
|
+ $content .= "{$bigNum}";
|
|
|
+ }
|
|
|
+ if ($smallNun > 0) {
|
|
|
+ $content .= "{$smallNun}";
|
|
|
+ }
|
|
|
+ $content .= "</CB>";
|
|
|
+ $content .= '********************************<BR><BR>';
|
|
|
$content .= '<BR>';
|
|
|
$content .= '<BR>';
|
|
|
$shopId = $shop->id;
|
|
|
@@ -1433,7 +1448,7 @@ class OrderClass extends BaseClass
|
|
|
$itemList = $showItem['list'] ?? [];
|
|
|
if (count($itemList) > 50) {
|
|
|
//超出数量的打印
|
|
|
- self::onlinePrintOver($itemList, $orderInfo, $currentName, $shop);
|
|
|
+ self::onlinePrintOver($showItem, $orderInfo, $currentName, $shop);
|
|
|
return true;
|
|
|
}
|
|
|
|