|
@@ -1477,16 +1477,7 @@ class Goodup extends Base
|
|
|
->where(['spuCode'=>$supcode , 'wsm_type'=>[2 , 5]])
|
|
|
->column('good_stock.id stock_id,name,good_stock.wsm_code,usable_stock');
|
|
|
}
|
|
|
- $taxInfo=[];
|
|
|
- if($data['open_type']==1){
|
|
|
- $taxInfo=GoodTax::getInfobySpuCode( $supcode,1);
|
|
|
- }
|
|
|
- $data['tax_id'] = $taxInfo['tax_id']??'';
|
|
|
- $data['tax_name'] = $taxInfo['cat_name']??'';
|
|
|
- $data['tax_short_name'] =$taxInfo['short_name']??"";
|
|
|
- $data['tax_code'] =$taxInfo['merge_code']??"";
|
|
|
- $data['tax']=$taxInfo['tax']??'';
|
|
|
- $data["inv_good_name"]=$taxInfo['inv_good_name']??"";
|
|
|
+ $data['tax_info']=GoodTax::with(['Tax','OutTax'])->where(['spuCode'=>$supcode])->findOrEmpty();
|
|
|
$data['field_change'] = $data['field_change']!=''?json_decode($data['field_change']):"";
|
|
|
if($data['brand_id']!=0){
|
|
|
$brand=Db::name("brand")->where(["id"=>$data['brand_id']])->find();
|