|
@@ -118,7 +118,7 @@ class SalesOrderService extends Service
|
|
|
|
|
|
if(! empty($data['product'])){
|
|
if(! empty($data['product'])){
|
|
$pro = Product::whereIn('id',array_column($data['product'],'product_id'))
|
|
$pro = Product::whereIn('id',array_column($data['product'],'product_id'))
|
|
- ->select('bar_code','code','cost','depart_price','size','title','id','retail_price')
|
|
|
|
|
|
+ ->select('bar_code','code','cost','depart_price','size','title','id','retail_price','unit')
|
|
->get()->toArray();
|
|
->get()->toArray();
|
|
$pro = array_column($pro,null,'id');
|
|
$pro = array_column($pro,null,'id');
|
|
$insert = [];
|
|
$insert = [];
|
|
@@ -244,7 +244,7 @@ class SalesOrderService extends Service
|
|
|
|
|
|
if(! empty($data['product'])){
|
|
if(! empty($data['product'])){
|
|
$pro = Product::whereIn('id',array_column($data['product'],'product_id'))
|
|
$pro = Product::whereIn('id',array_column($data['product'],'product_id'))
|
|
- ->select('bar_code','code','cost','depart_price','size','title','id','retail_price')
|
|
|
|
|
|
+ ->select('bar_code','code','cost','depart_price','size','title','id','retail_price','unit')
|
|
->get()->toArray();
|
|
->get()->toArray();
|
|
$pro = array_column($pro,null,'id');
|
|
$pro = array_column($pro,null,'id');
|
|
$insert = [];
|
|
$insert = [];
|