|
@@ -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"],
|