wugg 6 months ago
parent
commit
0f21147f59
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/controller/InvoiceItem.php

+ 2 - 1
app/admin/controller/InvoiceItem.php

@@ -56,6 +56,7 @@ class InvoiceItem extends Base{
         $valids=Validate::rule([
             'code|订单号' => 'require|max:255',
             'spuCode|商品编码' => 'require|max:255',
+            'good_name|商品名称' => 'require|max:255',
             'num|数量' => 'require|float|gt:0',
             'good_price|商品价格' => 'require|float|gt:0',
             'total_amount|总金额' => 'require|float|gt:0',
@@ -98,7 +99,7 @@ class InvoiceItem extends Base{
                 "itemId"=>$param["itemId"],
                 "code"=>$v["code"],
                 "spuCode"=>$v["spuCode"],
-                "good_name"=>$taxInfo['inv_good_name'],
+                "good_name"=>$v['good_name'],
                 "num"=>$v["num"],
                 "good_price"=>$v["good_price"],
                 "total_amount"=>$v["total_amount"],