shish 4 anos atrás
pai
commit
e0734425f6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      biz-hd/goods/classes/GoodsClass.php

+ 1 - 1
biz-hd/goods/classes/GoodsClass.php

@@ -116,7 +116,7 @@ class GoodsClass extends BaseClass
             PlantCgItemClass::addData($addCgItem);
             PlantCgItemClass::addData($addCgItem);
             $goodsPrice = bcadd($totalPrice, $goodsPrice, 2);
             $goodsPrice = bcadd($totalPrice, $goodsPrice, 2);
         }
         }
-        $sendCost = $data['sendCost'] ?? 0;
+        $sendCost = isset($data['sendCost']) && is_numeric($data['sendCost']) ? $data['sendCost'] : 0;
         $labourCost = $data['labourCost'] ?? 0;
         $labourCost = $data['labourCost'] ?? 0;
         $otherCost = bcadd($sendCost, $labourCost, 2);
         $otherCost = bcadd($sendCost, $labourCost, 2);
         $prePrice = bcadd($goodsPrice, $otherCost, 2);
         $prePrice = bcadd($goodsPrice, $otherCost, 2);