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

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

@@ -265,8 +265,8 @@ class InvoiceItem extends Base{
                 'code'=>$v['code'],
                 'spuCode'=>$orderInfo[$itemArr[$v['itemId']]['invoiceCode'].$v['code']]['goodNo'],
                 'good_name'=>$orderInfo[$itemArr[$v['itemId']]['invoiceCode'].$v['code']]['goodName'],
-                'num'=>$v['num']??1,
-                'good_price'=>$v['good_price']??$v['total_amount'],
+                'num'=>$v['num']??0,
+                'good_price'=>$v['good_price']??0,
                 'total_amount'=>$v['total_amount'],
                 'tax_diff'=> $tax_diff,
                 'cat_diff'=>$cat_diff,