cqpCow 1 سال پیش
والد
کامیت
89d38aef91
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Service/ConstructionService.php

+ 1 - 1
app/Service/ConstructionService.php

@@ -360,6 +360,7 @@ class ConstructionService extends Service
         $sales = SalesOrder::where('id',$construction['sales_order_id'])->value('order_number');
         $construction['sales_order_number'] = $sales;
         $customer_title = Customer::where('id',$construction['customer_id'])->value('title');
+        $construction['customer_title'] = $customer_title ?? "";
         $info = CustomerInfo::from('customer_info as a')
             ->leftJoin('basic_type as b','b.id','a.contact_type')
             ->where('a.del_time',0)
@@ -368,7 +369,6 @@ class ConstructionService extends Service
             ->select('b.title','a.contact_info')
             ->get()->toArray();
         $construction['customer_array'] = $info;
-        $construction['customer_title'] = $customer_title ?? "";
         $info = CustomerInfo::from('customer_info as a')
             ->leftJoin('basic_type as b','b.id','a.contact_type')
             ->where('a.del_time',0)