Browse Source

打印来源

shish 4 năm trước cách đây
mục cha
commit
7d6788871a

+ 5 - 1
biz-hd/order/classes/OrderClass.php

@@ -421,8 +421,12 @@ class OrderClass extends BaseClass
         $custom = CustomClass::getById($customId);
         $custom = CustomClass::getById($customId);
         $debtAmount = $custom['debtAmount'] ?? 0;
         $debtAmount = $custom['debtAmount'] ?? 0;
 
 
+        $fromType = $order->fromType ?? dict::getDict('fromType', 'shop');
+        $fromTypeMap = dict::getDict('fromTypeMap');
+        $fromTypeName = $fromTypeMap[$fromType] ?? '门店';
+
         $respond = self::getPrintData($order, $debtAmount);
         $respond = self::getPrintData($order, $debtAmount);
-        $content = '<B>' . $respond['sendNum'] . '</B><BR>';
+        $content = '<B>' . $respond['sendNum'] . ' ' . $fromTypeName . '</B><BR>';
         $content .= '--------------------------------<BR>';
         $content .= '--------------------------------<BR>';
         $content .= '<B>' . $respond['custom']['fullAddress'] . '</B><BR>';
         $content .= '<B>' . $respond['custom']['fullAddress'] . '</B><BR>';
         $content .= '<B>' . $respond['custom']['customName'] . '</B><BR>';
         $content .= '<B>' . $respond['custom']['customName'] . '</B><BR>';