|
@@ -800,7 +800,7 @@ class Goodup extends Base
|
|
|
if($isCombind==1 && !empty($dchild)){
|
|
|
(new GoodCombind())->saveAll($dchild);
|
|
|
}
|
|
|
- if($open_type==1){
|
|
|
+ if($open_type==1||$tax_id>0){
|
|
|
$data = [
|
|
|
'spuCode'=>$spucode,
|
|
|
'open_type'=>$open_type,
|
|
@@ -1141,7 +1141,7 @@ class Goodup extends Base
|
|
|
if($isCombind==1 && !empty($dchild)){
|
|
|
(new GoodCombind())->saveAll($dchild);
|
|
|
}
|
|
|
- if($open_type==1){
|
|
|
+ if($open_type==1||$tax_id>0){
|
|
|
$taxInfo = GoodTax::where('spuCode',$supcode)->findOrEmpty();
|
|
|
$taxInfo->spuCode = $supcode;
|
|
|
$taxInfo->companyNo = $company_id;
|
|
@@ -2697,7 +2697,7 @@ class Goodup extends Base
|
|
|
if($isCombind==1 && !empty($dchild)){
|
|
|
(new GoodCombind())->saveAll($dchild);
|
|
|
}
|
|
|
- if($open_type==1){
|
|
|
+ if($open_type==1||$tax_id>0){
|
|
|
$taxInfo = GoodTax::where('spuCode',$supcode)->findOrEmpty();
|
|
|
$taxInfo->spuCode = $supcode;
|
|
|
$taxInfo->companyNo = $company_id;
|