IDEMPIERE-860 Review Payment Processors - added string representation for MPaymentTransaction class

This commit is contained in:
Elaine Tan 2013-07-02 14:42:19 +08:00
parent 4879ef281c
commit d6d519a0cc
1 changed files with 13 additions and 0 deletions

View File

@ -656,4 +656,17 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce
return MPaymentTransaction.getAllIDs(Table_Name, whereClause.toString(), trxName); 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
} }