address fix
This commit is contained in:
parent
6a4ee61066
commit
4c77b376f0
@ -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 {
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user