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

+ 1 - 2
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -118,8 +118,7 @@ class PurchaseOrderClass extends BaseClass
         $count = $current['itemNum'] ?? '';
         $count = $current['itemNum'] ?? '';
         $count = floatval($count);
         $count = floatval($count);
         $content .= '<B>' . $name . ' ' . $count . $bigUnit . '</B><BR>';
         $content .= '<B>' . $name . ' ' . $count . $bigUnit . '</B><BR>';
-        $totalPrice = bcmul($count, $bigPrice, 2);
-        $totalPrice = floatval($totalPrice);
+        $totalPrice = $current['totalPrice']??0;
         $content .= $count . $bigUnit . 'x' . $bigPrice . '元' . '=' . $totalPrice . '元<BR>';
         $content .= $count . $bigUnit . 'x' . $bigPrice . '元' . '=' . $totalPrice . '元<BR>';
         if (isset($current['refundNum']) && $current['refundNum'] > 0) {
         if (isset($current['refundNum']) && $current['refundNum'] > 0) {
             $content .= '<B>已退' . $current['refundNum'] . $bigUnit . '</B><BR>';
             $content .= '<B>已退' . $current['refundNum'] . $bigUnit . '</B><BR>';