|
@@ -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)
|