From d6d519a0cc6a0c9c2ff742236ec99facfe3026a9 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Tue, 2 Jul 2013 14:42:19 +0800 Subject: [PATCH] IDEMPIERE-860 Review Payment Processors - added string representation for MPaymentTransaction class --- .../src/org/compiere/model/MPaymentTransaction.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java index 4b4960f566..74c6fafb73 100644 --- a/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java +++ b/org.adempiere.base/src/org/compiere/model/MPaymentTransaction.java @@ -656,4 +656,17 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce return MPaymentTransaction.getAllIDs(Table_Name, whereClause.toString(), trxName); } + + /** + * String Representation + * @return info + */ + public String toString () + { + StringBuilder sb = new StringBuilder ("MPaymentTransaction["); + sb.append(get_ID()).append("-") + .append(",Receipt=").append(isReceipt()) + .append(",PayAmt=").append(getPayAmt()); + return sb.toString (); + } // toString }