animeic 2 years ago
parent
commit
bd89dfb0eb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      boxcost/api/bill-produce-excel.go

+ 1 - 0
boxcost/api/bill-produce-excel.go

@@ -198,6 +198,7 @@ func (b *ProduceBillExcel) drawTableContent() error {
 			realCount = fmt.Sprintf("%d", produce.ConfirmCount)
 			b.FormatToEmpty(&realCount)
 			realPrice = fmt.Sprintf("%.3f", produce.OrderPrice*float64(produce.ConfirmCount))
+			b.FormatToEmpty(&realPrice)
 
 			deliveryTime := produce.DeliveryTime.Local().Format("2006-01-02")
 			DrawRow(b.Row, produce.Name, produce.Norm, produce.Paper, produce.PaperSize, produce.PrintSize, fmt.Sprintf("%d", produce.OrderCount), realCount, priceStr, budgetAmount, realPrice, deliveryTime, produce.Remark)