修改飞鹅打印售后单
This commit is contained in:
@@ -291,10 +291,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
||||
jxutils.GetVendorName(order.VendorID),
|
||||
order.OrderSeq,
|
||||
)
|
||||
orderFmt += `
|
||||
--------------------------------\n
|
||||
`
|
||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
//orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
||||
}
|
||||
|
||||
@@ -327,9 +324,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
orderFmt += `--------------------------------<BR>
|
||||
<B>下单时间: %s</B><BR>
|
||||
<B>订单编号: %s</B><BR>
|
||||
\n
|
||||
<B>%s <B>#%d</B></B><BR>
|
||||
\n
|
||||
` + title + `
|
||||
--------------------------------\n`
|
||||
orderParams = append(orderParams,
|
||||
@@ -343,7 +338,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
orderFmt += `
|
||||
--------------------------------<BR>
|
||||
`
|
||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
//orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user