Forráskód Böngészése

OrderIssue 同步退货单 BUG
退回单下没有对应的退回商品 问题件-新推件状态会显示为【有】

ajun 5 éve
szülő
commit
22bbccfff0
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      app/OrderIssue.php

+ 2 - 1
app/OrderIssue.php

@@ -339,7 +339,8 @@ class OrderIssue extends Model
                 if($rejectedBill){
                     if(OrderIssueRejectedBill::isExit($this->id,$logistic_number))continue;
                     $this->joinRejectedBill($logistic_number);
-                    $this->is_new_rejecting = '有';
+                    if(isset($rejectedBill->items))
+                        $this->is_new_rejecting = '有';
                 }
             }
             $this->save();