zck 7 mesi fa
parent
commit
1686564ff2
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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['库存数量'] ;