shish 3 лет назад
Родитель
Сommit
a1660d7c74
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      biz-ghs/order/classes/PurchaseOrderClass.php

+ 5 - 4
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -62,15 +62,16 @@ class PurchaseOrderClass extends BaseClass
     public static function printGroup($current, $content)
     {
         //58mm的机器,一行打印16个汉字,32个字母
-        $productPrice = $current['bigPrice'] ?? '';
+        $bigPrice = $current['bigPrice'] ?? '';
         $name = $current['name'] ?? '';
-        if (floatval($productPrice) == 0.01) {
+        if (floatval($bigPrice) == 0.01) {
             $name = $name . '(送)';
         }
-        $productNum = $current['itemNum'] ?? '';
         $count = $current['itemNum'] ?? '';
         $content .= '<B>' . $name . ' ' . $count . '</B><BR>';
-        $content .= $productNum . '=' . $productPrice . '<BR>';
+        $totalPrice = bcmul($count, $bigPrice, 2);
+        $totalPrice = floatval($totalPrice);
+        $content .= $count . 'x' . $bigPrice . '=' . $totalPrice . '<BR>';
         $content .= '--------------------------------<BR>';
         return $content;
     }