zck hai 7 meses
pai
achega
1686564ff2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      application/api/controller/WorkOrderSpotCheck.php

+ 3 - 0
application/api/controller/WorkOrderSpotCheck.php

@@ -2954,6 +2954,9 @@ class WorkOrderSpotCheck extends Api{
             } elseif ($item['type'] === '销售') {
                 $returnQuantity = $number['退还数量'];
                 $stockQuantity = $number['库存数量'] - (float)$item['number'];
+            }elseif ($item['type'] === '退客户') {
+                $returnQuantity = $number['退还数量'];
+                $stockQuantity = $number['库存数量'] - (float)$item['number'];
             }else{
                 $returnQuantity = $number['退还数量'];
                 $stockQuantity = $number['库存数量'] ;