Commit 090e977c authored by 赵鹏翔's avatar 赵鹏翔

bugfix

parent 79607129
package com.miya.fastcashier.net
import com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import com.fastcashier.lib_common.net.ApiConfig
import com.fastcashier.lib_common.net.BaseApi
import com.fastcashier.lib_common.net.BaseResponse
import com.miya.fastcashier.net.param.LoginParams
......
......@@ -92,10 +92,10 @@ object PrintService {
serialNumber: String
) {
val shopInfo = selfCashierAccountInfo.shopInfo
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo.storeName, true)
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo?.storeName, true)
printer.setAlign(IPrinter.ALIGN_LEFT)
printer.printText("商户编号:${shopInfo.saasid}")
printer.printText("终端编号:${shopInfo.posId}")
printer.printText("商户编号:${shopInfo?.saasid}")
printer.printText("终端编号:${shopInfo?.posId}")
printer.printText("商户名称:converse")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("交易类型:")
......@@ -174,12 +174,12 @@ object PrintService {
serialNumber: String
) {
val shopInfo = selfCashierAccountInfo.shopInfo
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo.storeName, true)
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo?.storeName, true)
printer.setAlign(IPrinter.ALIGN_LEFT)
printer.printText("持卡人存根")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("商户编号:${shopInfo.saasid}")
printer.printText("终端编号:${shopInfo.posId}")
printer.printText("商户编号:${shopInfo?.saasid}")
printer.printText("终端编号:${shopInfo?.posId}")
printer.printText("商户名称:converse")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("交易类型:")
......@@ -326,10 +326,10 @@ object PrintService {
selfCashierAccountInfo: SelfCashierAccountInfo
) {
val shopInfo = selfCashierAccountInfo.shopInfo
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo.storeName, true)
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo?.storeName, true)
printer.setAlign(IPrinter.ALIGN_LEFT)
printer.printText("商户编号:${shopInfo.saasid}")
printer.printText("终端编号:${shopInfo.posId}")
printer.printText("商户编号:${shopInfo?.saasid}")
printer.printText("终端编号:${shopInfo?.posId}")
printer.printText("商户名称:converse")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("交易类型:")
......@@ -409,12 +409,12 @@ object PrintService {
selfCashierAccountInfo: SelfCashierAccountInfo
) {
val shopInfo = selfCashierAccountInfo.shopInfo
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo.storeName, true)
printer.printText(IPrinter.ALIGN_CENTER, 3, shopInfo?.storeName, true)
printer.setAlign(IPrinter.ALIGN_LEFT)
printer.printText("持卡人存根")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("商户编号:${shopInfo.saasid}")
printer.printText("终端编号:${shopInfo.posId}")
printer.printText("商户编号:${shopInfo?.saasid}")
printer.printText("终端编号:${shopInfo?.posId}")
printer.printText("商户名称:converse")
printer.printText(Page58MmPrintUtils.printDivideLineString())
printer.printText("交易类型:")
......@@ -520,9 +520,9 @@ object PrintService {
printer.setAlign(IPrinter.ALIGN_LEFT)
printer.printText("商户名称:converse")
printer.printText("商户编号:${shopInfo.saasid}")
printer.printText("终端编号:${shopInfo.posId}")
printer.printText("门店编号:${shopInfo.storeId}")
printer.printText("商户编号:${shopInfo?.saasid}")
printer.printText("终端编号:${shopInfo?.posId}")
printer.printText("门店编号:${shopInfo?.storeId}")
//统计时间
printer.printText(0, 0, "开始时间:" + orderStatisticsInfo.beginDate, true)
......
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