UOCL-315: variable name refactor
This commit is contained in:
@@ -55,27 +55,27 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
|
|
||||||
private static final DateFormat m_dateformat = new SimpleDateFormat("hh:mm");
|
private static final DateFormat m_dateformat = new SimpleDateFormat("hh:mm");
|
||||||
|
|
||||||
private String m_sHost;
|
private String host;
|
||||||
private String m_sId;
|
private String id;
|
||||||
private int tickettype;
|
private int ticketType;
|
||||||
private int m_iTicketId;
|
private int ticketId;
|
||||||
private int m_iPickupId;
|
private int pickupId;
|
||||||
private java.util.Date m_dDate;
|
private java.util.Date date;
|
||||||
private Properties attributes;
|
private Properties attributes;
|
||||||
private UserInfo m_User;
|
private UserInfo userInfo;
|
||||||
private Double multiply;
|
private Double multiply;
|
||||||
private CustomerInfoExt m_Customer;
|
private CustomerInfoExt cutomerInfoExt;
|
||||||
private String m_sActiveCash;
|
private String activeCash;
|
||||||
private List<TicketLineInfo> m_aLines;
|
private List<TicketLineInfo> ticketLines;
|
||||||
private List<PaymentInfo> payments;
|
private List<PaymentInfo> payments;
|
||||||
private List<TicketTaxInfo> taxes;
|
private List<TicketTaxInfo> taxes;
|
||||||
private final String m_sResponse;
|
private final String m_sResponse;
|
||||||
private String loyaltyCardNumber;
|
private String loyaltyCardNumber;
|
||||||
private Boolean oldTicket;
|
private Boolean oldTicket;
|
||||||
private boolean tip;
|
private boolean tip;
|
||||||
private PaymentInfoTicket m_paymentInfo;
|
private PaymentInfoTicket ticketPaymentInfo;
|
||||||
private boolean m_isProcessed;
|
private boolean isProcessed;
|
||||||
private final String m_locked;
|
private final String locked;
|
||||||
private Double nsum;
|
private Double nsum;
|
||||||
private int ticketstatus;
|
private int ticketstatus;
|
||||||
|
|
||||||
@@ -91,15 +91,15 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
|
|
||||||
/** Creates new TicketModel */
|
/** Creates new TicketModel */
|
||||||
public TicketInfo() {
|
public TicketInfo() {
|
||||||
m_sId = UUID.randomUUID().toString();
|
id = UUID.randomUUID().toString();
|
||||||
tickettype = RECEIPT_NORMAL;
|
ticketType = RECEIPT_NORMAL;
|
||||||
m_iTicketId = 0; // incrementamos
|
ticketId = 0; // incrementamos
|
||||||
m_dDate = new Date();
|
date = new Date();
|
||||||
attributes = new Properties();
|
attributes = new Properties();
|
||||||
m_User = null;
|
userInfo = null;
|
||||||
m_Customer = null;
|
cutomerInfoExt = null;
|
||||||
m_sActiveCash = null;
|
activeCash = null;
|
||||||
m_aLines = new ArrayList<>();
|
ticketLines = new ArrayList<>();
|
||||||
payments = new ArrayList<>();
|
payments = new ArrayList<>();
|
||||||
taxes = null;
|
taxes = null;
|
||||||
m_sResponse = null;
|
m_sResponse = null;
|
||||||
@@ -109,35 +109,35 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
System.getProperty("user.home")), AppLocal.APP_ID + ".properties"));
|
System.getProperty("user.home")), AppLocal.APP_ID + ".properties"));
|
||||||
config.load();
|
config.load();
|
||||||
tip = Boolean.valueOf(config.getProperty("machine.showTip"));
|
tip = Boolean.valueOf(config.getProperty("machine.showTip"));
|
||||||
m_isProcessed = false;
|
isProcessed = false;
|
||||||
m_locked = null;
|
locked = null;
|
||||||
ticketstatus = 0;
|
ticketstatus = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeExternal(ObjectOutput out) throws IOException {
|
public void writeExternal(ObjectOutput out) throws IOException {
|
||||||
out.writeObject(m_sId);
|
out.writeObject(id);
|
||||||
out.writeInt(tickettype);
|
out.writeInt(ticketType);
|
||||||
out.writeInt(m_iTicketId);
|
out.writeInt(ticketId);
|
||||||
out.writeObject(m_Customer);
|
out.writeObject(cutomerInfoExt);
|
||||||
out.writeObject(m_dDate);
|
out.writeObject(date);
|
||||||
out.writeObject(attributes);
|
out.writeObject(attributes);
|
||||||
out.writeObject(m_aLines);
|
out.writeObject(ticketLines);
|
||||||
|
|
||||||
out.writeInt(ticketstatus);
|
out.writeInt(ticketstatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
|
||||||
m_sId = (String) in.readObject();
|
id = (String) in.readObject();
|
||||||
tickettype = in.readInt();
|
ticketType = in.readInt();
|
||||||
m_iTicketId = in.readInt();
|
ticketId = in.readInt();
|
||||||
m_Customer = (CustomerInfoExt) in.readObject();
|
cutomerInfoExt = (CustomerInfoExt) in.readObject();
|
||||||
m_dDate = (Date) in.readObject();
|
date = (Date) in.readObject();
|
||||||
attributes = (Properties) in.readObject();
|
attributes = (Properties) in.readObject();
|
||||||
m_aLines = (List<TicketLineInfo>) in.readObject();
|
ticketLines = (List<TicketLineInfo>) in.readObject();
|
||||||
m_User = null;
|
userInfo = null;
|
||||||
m_sActiveCash = null;
|
activeCash = null;
|
||||||
payments = new ArrayList<>(); // JG June 2102 diamond inference
|
payments = new ArrayList<>(); // JG June 2102 diamond inference
|
||||||
taxes = null;
|
taxes = null;
|
||||||
|
|
||||||
@@ -151,11 +151,11 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void readValues(DataRead dr) throws BasicException {
|
public void readValues(DataRead dr) throws BasicException {
|
||||||
m_sId = dr.getString(1);
|
id = dr.getString(1);
|
||||||
tickettype = dr.getInt(2);
|
ticketType = dr.getInt(2);
|
||||||
m_iTicketId = dr.getInt(3);
|
ticketId = dr.getInt(3);
|
||||||
m_dDate = dr.getTimestamp(4);
|
date = dr.getTimestamp(4);
|
||||||
m_sActiveCash = dr.getString(5);
|
activeCash = dr.getString(5);
|
||||||
try {
|
try {
|
||||||
byte[] img = dr.getBytes(6);
|
byte[] img = dr.getBytes(6);
|
||||||
if (img != null) {
|
if (img != null) {
|
||||||
@@ -163,9 +163,9 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
m_User = new UserInfo(dr.getString(7), dr.getString(8));
|
userInfo = new UserInfo(dr.getString(7), dr.getString(8));
|
||||||
m_Customer = new CustomerInfoExt(dr.getString(9));
|
cutomerInfoExt = new CustomerInfoExt(dr.getString(9));
|
||||||
m_aLines = new ArrayList<>();
|
ticketLines = new ArrayList<>();
|
||||||
payments = new ArrayList<>();
|
payments = new ArrayList<>();
|
||||||
taxes = null;
|
taxes = null;
|
||||||
|
|
||||||
@@ -177,52 +177,52 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public TicketInfo copyTicket() {
|
public TicketInfo copyTicket() {
|
||||||
TicketInfo t = new TicketInfo();
|
TicketInfo ticketInfo = new TicketInfo();
|
||||||
|
|
||||||
t.tickettype = tickettype;
|
ticketInfo.ticketType = ticketType;
|
||||||
t.m_iTicketId = m_iTicketId;
|
ticketInfo.ticketId = ticketId;
|
||||||
t.m_dDate = m_dDate;
|
ticketInfo.date = date;
|
||||||
t.m_sActiveCash = m_sActiveCash;
|
ticketInfo.activeCash = activeCash;
|
||||||
t.attributes = (Properties) attributes.clone();
|
ticketInfo.attributes = (Properties) attributes.clone();
|
||||||
t.m_User = m_User;
|
ticketInfo.userInfo = userInfo;
|
||||||
t.m_Customer = m_Customer;
|
ticketInfo.cutomerInfoExt = cutomerInfoExt;
|
||||||
|
|
||||||
t.m_aLines = new ArrayList<>(); // JG June 2102 diamond inference
|
ticketInfo.ticketLines = new ArrayList<>(); // JG June 2102 diamond inference
|
||||||
m_aLines.forEach((l) -> {
|
ticketLines.forEach((line) -> {
|
||||||
t.m_aLines.add(l.copyTicketLine());
|
ticketInfo.ticketLines.add(line.copyTicketLine());
|
||||||
});
|
});
|
||||||
t.refreshLines();
|
ticketInfo.refreshLines();
|
||||||
|
|
||||||
t.payments = new LinkedList<>(); // JG June 2102 diamond inference
|
ticketInfo.payments = new LinkedList<>(); // JG June 2102 diamond inference
|
||||||
payments.forEach((p) -> {
|
payments.forEach((p) -> {
|
||||||
t.payments.add(p.copyPayment());
|
ticketInfo.payments.add(p.copyPayment());
|
||||||
});
|
});
|
||||||
t.oldTicket = oldTicket;
|
ticketInfo.oldTicket = oldTicket;
|
||||||
// taxes are not copied, must be calculated again.
|
// taxes are not copied, must be calculated again.
|
||||||
|
|
||||||
t.ticketstatus = ticketstatus;
|
ticketInfo.ticketstatus = ticketstatus;
|
||||||
|
|
||||||
return t;
|
return ticketInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return m_sId;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTicketType() {
|
public int getTicketType() {
|
||||||
return tickettype;
|
return ticketType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTicketType(int tickettype) {
|
public void setTicketType(int tickettype) {
|
||||||
this.tickettype = tickettype;
|
this.ticketType = tickettype;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTicketId() {
|
public int getTicketId() {
|
||||||
return m_iTicketId;
|
return ticketId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTicketId(int iTicketId) {
|
public void setTicketId(int iTicketId) {
|
||||||
m_iTicketId = iTicketId;
|
ticketId = iTicketId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTicketStatus() {
|
public int getTicketStatus() {
|
||||||
@@ -230,19 +230,19 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setTicketStatus(int ticketstatus) {
|
public void setTicketStatus(int ticketstatus) {
|
||||||
if (m_iTicketId > 0) {
|
if (ticketId > 0) {
|
||||||
this.ticketstatus = m_iTicketId;
|
this.ticketstatus = ticketId;
|
||||||
} else {
|
} else {
|
||||||
this.ticketstatus = ticketstatus;
|
this.ticketstatus = ticketstatus;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPickupId(int iTicketId) {
|
public void setPickupId(int iTicketId) {
|
||||||
m_iPickupId = iTicketId;
|
pickupId = iTicketId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPickupId() {
|
public int getPickupId() {
|
||||||
return m_iPickupId;
|
return pickupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName(Object info) {
|
public String getName(Object info) {
|
||||||
@@ -254,23 +254,23 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
name.add(nameprop);
|
name.add(nameprop);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_User != null) {
|
if (userInfo != null) {
|
||||||
name.add(m_User.getName());
|
name.add(userInfo.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
if (m_iTicketId == 0) {
|
if (ticketId == 0) {
|
||||||
name.add("(" + m_dateformat.format(m_dDate) + " "
|
name.add("(" + m_dateformat.format(date) + " "
|
||||||
+ Long.toString(m_dDate.getTime() % 1000) + ")");
|
+ Long.toString(date.getTime() % 1000) + ")");
|
||||||
} else {
|
} else {
|
||||||
name.add(Integer.toString(m_iTicketId));
|
name.add(Integer.toString(ticketId));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
name.add(info.toString());
|
name.add(info.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_Customer != null) {
|
if (cutomerInfoExt != null) {
|
||||||
name.add(m_Customer.getName());
|
name.add(cutomerInfoExt.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
return org.apache.commons.lang.StringUtils.join(name, " - ");
|
return org.apache.commons.lang.StringUtils.join(name, " - ");
|
||||||
@@ -281,11 +281,11 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public java.util.Date getDate() {
|
public java.util.Date getDate() {
|
||||||
return m_dDate;
|
return date;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDate(java.util.Date dDate) {
|
public void setDate(java.util.Date dDate) {
|
||||||
m_dDate = dDate;
|
date = dDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHost() {
|
public String getHost() {
|
||||||
@@ -297,27 +297,27 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
return machineHostname;
|
return machineHostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UserInfo getUser() {
|
public UserInfo getUserInfo() {
|
||||||
return m_User;
|
return userInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUser(UserInfo value) {
|
public void setUserInfo(UserInfo value) {
|
||||||
m_User = value;
|
userInfo = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CustomerInfoExt getCustomer() {
|
public CustomerInfoExt getCustomer() {
|
||||||
return m_Customer;
|
return cutomerInfoExt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomer(CustomerInfoExt value) {
|
public void setCustomer(CustomerInfoExt value) {
|
||||||
m_Customer = value;
|
cutomerInfoExt = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCustomerId() {
|
public String getCustomerId() {
|
||||||
if (m_Customer == null) {
|
if (cutomerInfoExt == null) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return m_Customer.getId();
|
return cutomerInfoExt.getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -334,11 +334,11 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setActiveCash(String value) {
|
public void setActiveCash(String value) {
|
||||||
m_sActiveCash = value;
|
activeCash = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getActiveCash() {
|
public String getActiveCash() {
|
||||||
return m_sActiveCash;
|
return activeCash;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProperty(String key) {
|
public String getProperty(String key) {
|
||||||
@@ -358,45 +358,45 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TicketLineInfo getLine(int index) {
|
public TicketLineInfo getLine(int index) {
|
||||||
return m_aLines.get(index);
|
return ticketLines.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addLine(TicketLineInfo oLine) {
|
public void addLine(TicketLineInfo oLine) {
|
||||||
oLine.setTicket(m_sId, m_aLines.size());
|
oLine.setTicket(id, ticketLines.size());
|
||||||
m_aLines.add(oLine);
|
ticketLines.add(oLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void insertLine(int index, TicketLineInfo oLine) {
|
public void insertLine(int index, TicketLineInfo oLine) {
|
||||||
m_aLines.add(index, oLine);
|
ticketLines.add(index, oLine);
|
||||||
refreshLines();
|
refreshLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLine(int index, TicketLineInfo oLine) {
|
public void setLine(int index, TicketLineInfo oLine) {
|
||||||
oLine.setTicket(m_sId, index);
|
oLine.setTicket(id, index);
|
||||||
m_aLines.set(index, oLine);
|
ticketLines.set(index, oLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeLine(int index) {
|
public void removeLine(int index) {
|
||||||
m_aLines.remove(index);
|
ticketLines.remove(index);
|
||||||
refreshLines();
|
refreshLines();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshLines() {
|
public void refreshLines() {
|
||||||
for (int i = 0; i < m_aLines.size(); i++) {
|
for (int i = 0; i < ticketLines.size(); i++) {
|
||||||
getLine(i).setTicket(m_sId, i);
|
getLine(i).setTicket(id, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getLinesCount() {
|
public int getLinesCount() {
|
||||||
return m_aLines.size();
|
return ticketLines.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getArticlesCount() {
|
public double getArticlesCount() {
|
||||||
double dArticles = 0.0;
|
double dArticles = 0.0;
|
||||||
TicketLineInfo oLine;
|
TicketLineInfo oLine;
|
||||||
|
|
||||||
for (Iterator<TicketLineInfo> i = m_aLines.iterator(); i.hasNext();) {
|
for (Iterator<TicketLineInfo> i = ticketLines.iterator(); i.hasNext();) {
|
||||||
oLine = i.next();
|
oLine = i.next();
|
||||||
dArticles += oLine.getMultiply();
|
dArticles += oLine.getMultiply();
|
||||||
}
|
}
|
||||||
@@ -406,7 +406,8 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
|
|
||||||
public double getSubTotal() {
|
public double getSubTotal() {
|
||||||
double sum = 0.0;
|
double sum = 0.0;
|
||||||
sum = m_aLines.stream().map((line) -> line.getSubValue()).reduce(sum, (accumulator, _item) -> accumulator + _item);
|
sum = ticketLines.stream().map((line) -> line.getSubValue()).reduce(sum,
|
||||||
|
(accumulator, _item) -> accumulator + _item);
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,7 +420,7 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
nsum = sum;
|
nsum = sum;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sum = m_aLines.stream().map((line) -> line.getTax()).reduce(sum, (accumulator, _item) -> accumulator + _item);
|
sum = ticketLines.stream().map((line) -> line.getTax()).reduce(sum, (accumulator, _item) -> accumulator + _item);
|
||||||
}
|
}
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
@@ -446,11 +447,11 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<TicketLineInfo> getLines() {
|
public List<TicketLineInfo> getLines() {
|
||||||
return m_aLines;
|
return ticketLines;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLines(List<TicketLineInfo> l) {
|
public void setLines(List<TicketLineInfo> l) {
|
||||||
m_aLines = l;
|
ticketLines = l;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<PaymentInfo> getPayments() {
|
public List<PaymentInfo> getPayments() {
|
||||||
@@ -490,7 +491,7 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setIsProcessed(boolean isP) {
|
public void setIsProcessed(boolean isP) {
|
||||||
m_isProcessed = isP;
|
isProcessed = isP;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TicketTaxInfo getTaxLine(TaxInfo tax) {
|
public TicketTaxInfo getTaxLine(TaxInfo tax) {
|
||||||
@@ -509,7 +510,7 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
Map<String, TicketTaxInfo> m = new HashMap<>();
|
Map<String, TicketTaxInfo> m = new HashMap<>();
|
||||||
|
|
||||||
TicketLineInfo oLine;
|
TicketLineInfo oLine;
|
||||||
for (Iterator<TicketLineInfo> i = m_aLines.iterator(); i.hasNext();) {
|
for (Iterator<TicketLineInfo> i = ticketLines.iterator(); i.hasNext();) {
|
||||||
oLine = i.next();
|
oLine = i.next();
|
||||||
|
|
||||||
TicketTaxInfo t = m.get(oLine.getTaxInfo().getId());
|
TicketTaxInfo t = m.get(oLine.getTaxInfo().getId());
|
||||||
@@ -535,8 +536,8 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
|
|
||||||
m_config = null;
|
m_config = null;
|
||||||
|
|
||||||
if (m_iTicketId > 0) {
|
if (ticketId > 0) {
|
||||||
String tmpTicketId = Integer.toString(m_iTicketId);
|
String tmpTicketId = Integer.toString(ticketId);
|
||||||
if (receiptSize == null || (Integer.parseInt(receiptSize) <= tmpTicketId.length())) {
|
if (receiptSize == null || (Integer.parseInt(receiptSize) <= tmpTicketId.length())) {
|
||||||
if (receiptPrefix != null) {
|
if (receiptPrefix != null) {
|
||||||
tmpTicketId = receiptPrefix + tmpTicketId;
|
tmpTicketId = receiptPrefix + tmpTicketId;
|
||||||
@@ -556,16 +557,16 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String printDate() {
|
public String printDate() {
|
||||||
return Formats.TIMESTAMP.formatValue(m_dDate);
|
return Formats.TIMESTAMP.formatValue(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String printUser() {
|
public String printUser() {
|
||||||
return m_User == null ? "" : m_User.getName();
|
return userInfo == null ? "" : userInfo.getName();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String printHost() {
|
public String printHost() {
|
||||||
return m_sHost;
|
return host;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Added JDL 28.05.13 for loyalty card functions
|
// Added JDL 28.05.13 for loyalty card functions
|
||||||
@@ -594,11 +595,11 @@ public final class TicketInfo implements SerializableRead, Externalizable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String printCustomer() {
|
public String printCustomer() {
|
||||||
return m_Customer == null ? "" : m_Customer.getName();
|
return cutomerInfoExt == null ? "" : cutomerInfoExt.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String printPhone1() {
|
public String printPhone1() {
|
||||||
return m_Customer == null ? "" : m_Customer.getPhone1();
|
return cutomerInfoExt == null ? "" : cutomerInfoExt.getPhone1();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String printArticlesCount() {
|
public String printArticlesCount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user