This commit is contained in:
wucongxing8150 2024-06-21 13:33:33 +08:00
parent e5e02d96a6
commit dc586a7bf1

View File

@ -1638,7 +1638,7 @@ func (r *ExportService) OrderProduct(d []*model.OrderProduct) (string, error) {
var products []string
for _, v := range orderProductItems {
amount := fmt.Sprintf("%d", v.Amount)
productPrice := fmt.Sprintf("%d", v.ProductPrice)
productPrice := fmt.Sprintf("%.2f", v.ProductPrice)
product := v.ProductName + "(N:" + amount + " " + "P:" + productPrice + ")"
products = append(products, product)