address fix

This commit is contained in:
MooN 2025-12-29 11:10:06 +06:30
parent 6a4ee61066
commit 4c77b376f0
2 changed files with 8 additions and 8 deletions

View File

@ -184,19 +184,19 @@ public class PrintReceipt {
merchantPhoneNo = SystemParamsOperation.getInstance().getMerchantPhoneNo(); merchantPhoneNo = SystemParamsOperation.getInstance().getMerchantPhoneNo();
if (TextUtils.equals(merchantName, "") || merchantName == null) { if (TextUtils.equals(merchantName, "") || merchantName == null) {
merchantName = "MERCHANT NAME"; merchantName = "";
} }
if (TextUtils.equals(merchantAddress, "") || merchantAddress == null) { if (TextUtils.equals(merchantAddress, "") || merchantAddress == null) {
merchantAddress = "MERCHANT ADDRESS1"; merchantAddress = "";
} }
if (TextUtils.equals(merchantAddress2, "") || merchantAddress2 == null) { if (TextUtils.equals(merchantAddress2, "") || merchantAddress2 == null) {
merchantAddress2 = "MERCHANT ADDRESS2"; merchantAddress2 = "";
} }
if (TextUtils.equals(merchantAddress3, "") || merchantAddress3 == null) { if (TextUtils.equals(merchantAddress3, "") || merchantAddress3 == null) {
merchantAddress3 = "MERCHANT ADDRESS3"; merchantAddress3 = "";
} }
if (TextUtils.equals(merchantPhoneNo, "") || merchantPhoneNo == null) { if (TextUtils.equals(merchantPhoneNo, "") || merchantPhoneNo == null) {
merchantPhoneNo = "MERCHANT PHONENO"; merchantPhoneNo = "";
} }
try { try {

View File

@ -894,13 +894,13 @@ public abstract class BaseXPrint {
receiptHeader = merchantName; receiptHeader = merchantName;
} }
if (TextUtils.equals(merchantAddress, "") || merchantAddress == null) { if (TextUtils.equals(merchantAddress, "") || merchantAddress == null) {
merchantAddress = "MERCHANT ADDRESS1"; merchantAddress = "";
} }
if (TextUtils.equals(merchantAddress2, "") || merchantAddress2 == null) { if (TextUtils.equals(merchantAddress2, "") || merchantAddress2 == null) {
merchantAddress2 = "MERCHANT ADDRESS2"; merchantAddress2 = "";
} }
if (TextUtils.equals(merchantAddress3, "") || merchantAddress3 == null) { if (TextUtils.equals(merchantAddress3, "") || merchantAddress3 == null) {
merchantAddress3 = "MERCHANT ADDRESS3"; merchantAddress3 = "";
} }
// if (TextUtils.equals(merchantPhoneNo, "") || merchantPhoneNo == null) { // if (TextUtils.equals(merchantPhoneNo, "") || merchantPhoneNo == null) {
// merchantPhoneNo = "MERCHANT PHONENO"; // merchantPhoneNo = "MERCHANT PHONENO";