shish 4 лет назад
Родитель
Сommit
e0734425f6
1 измененных файлов с 1 добавлено и 1 удалено
  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);
             $goodsPrice = bcadd($totalPrice, $goodsPrice, 2);
         }
-        $sendCost = $data['sendCost'] ?? 0;
+        $sendCost = isset($data['sendCost']) && is_numeric($data['sendCost']) ? $data['sendCost'] : 0;
         $labourCost = $data['labourCost'] ?? 0;
         $otherCost = bcadd($sendCost, $labourCost, 2);
         $prePrice = bcadd($goodsPrice, $otherCost, 2);