animeic 1 năm trước cách đây
mục cha
commit
6e9f7ccb3f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      boxcost/api/bill-purchase-excel.go

+ 2 - 0
boxcost/api/bill-purchase-excel.go

@@ -262,7 +262,9 @@ func (b *PurchaseBillExcel) drawTableContent() error {
 			realCount := ""
 			realPrice := ""
 			price := fmt.Sprintf("%.3f", paper.OrderPrice)
+			b.FormatToEmpty(&price)
 			price2 := fmt.Sprintf("%.3f", paper.Price2)
+			b.FormatToEmpty(&price2)
 
 			// 预算金额
 			budgetAmount := fmt.Sprintf("%.3f", paper.OrderPrice*float64(paper.OrderCount))