wugg 7 сар өмнө
parent
commit
a00a937ee8

+ 21 - 2
app/admin/model/GoodTax.php

@@ -41,6 +41,25 @@ class GoodTax extends Base
     //源头供应商税目
     public function cgdCategory(){
         return $this->hasOne(TaxCategory::class,'id','cgd_tax_id')
-        ->bind(['cgd_tax_name'=>'cat_name','cgd_tax_short_name'=>'short_name','cgd_tax_merge_code'=>'merge_code','cgd_tax_cat_code'=>'cat_code','cgd_bind_tax'=>'tax']);
-    }
+        ->bind([
+            'in_tax'=>'tax',
+            'in_tax_short_name',
+            'in_tax_merge_code',
+            'in_tax_cat_code',
+            'in_tax_name',
+            'inv_good_name',
+            'out_tax',
+            'out_tax_short_name',
+            'out_tax_merge_code',
+            'out_tax_name',
+            'out_tax_cat_code',
+            'cgd_tax',
+            'cgd_tax_short_name',
+            'cgd_tax_merge_code',
+            'cgd_tax_name',
+            'cgd_tax_cat_code',
+            'addTax',
+            'sumitem'
+            ]);
+        }
 }