Commit cf52acd6 authored by 赵鹏翔's avatar 赵鹏翔

处理打印机交易总金额、交易总笔数展示

parent e381d498
......@@ -168,17 +168,21 @@ object PrintService {
val totalStatistics: ViewOrderStatisticsInfo.StatisticBean? =
orderStatisticsInfo.totalStatistic
if (totalStatistics != null) {
var tradeCount = totalStatistics.tradeCount + totalStatistics.refundCount
printer.printText(0, 0, Page58MmPrintUtils.printDivideLineString(), true)
printer.printText(
Page58MmPrintUtils.printTwoData(
"总交易笔数",
"" + totalStatistics.tradeCount
"" + tradeCount
)
)
var tradeTotalAmount = totalStatistics.tradeTotalAmount - totalStatistics.refundTotalAmount
printer.printText(
Page58MmPrintUtils.printTwoData(
"总交易金额",
"" + StringPriceFormat.transStringPriceToDecimalString(totalStatistics.tradeTotalAmount.toString())
"" + StringPriceFormat.transStringPriceToDecimalString(tradeTotalAmount.toString())
)
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment