cqpCow 1 년 전
부모
커밋
2cc53f67bb
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Service/PurchaseOrderService.php

+ 1 - 0
app/Service/PurchaseOrderService.php

@@ -235,6 +235,7 @@ class PurchaseOrderService extends Service
 
         //总社id
         $top_depart_id = $user['head'] ?? [];
+        $top_depart_id = $top_depart_id['id'] ?? 0;
         if(empty($order['state'])) {
             //分社的采购单 供应商是总社
             if($order['top_depart_id'] != $top_depart_id && ! empty($supplier->is_main)) {