Ticket #1001392: Implement Single ‘online trx history table’ instead of individual tables - fix the incorrect text message of online trx history when it is a void or credit (payment) transaction
This commit is contained in:
parent
a7b786a446
commit
6bcb4b9151
|
@ -556,12 +556,17 @@ public final class MPayment extends X_C_Payment
|
||||||
|
|
||||||
StringBuffer msg = new StringBuffer();
|
StringBuffer msg = new StringBuffer();
|
||||||
if (approved)
|
if (approved)
|
||||||
|
{
|
||||||
|
if(getTrxType().equals(TRXTYPE_Void) || getTrxType().equals(TRXTYPE_CreditPayment))
|
||||||
|
msg.append(getR_VoidMsg() + "\n");
|
||||||
|
else
|
||||||
{
|
{
|
||||||
msg.append("Result: " + getR_Result() + "\n");
|
msg.append("Result: " + getR_Result() + "\n");
|
||||||
msg.append("Response Message: " + getR_RespMsg() + "\n");
|
msg.append("Response Message: " + getR_RespMsg() + "\n");
|
||||||
msg.append("Reference: " + getR_PnRef() + "\n");
|
msg.append("Reference: " + getR_PnRef() + "\n");
|
||||||
msg.append("Authorization Code: " + getR_AuthCode() + "\n");
|
msg.append("Authorization Code: " + getR_AuthCode() + "\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
msg.append("ERROR: " + getErrorMessage() + "\n");
|
msg.append("ERROR: " + getErrorMessage() + "\n");
|
||||||
msg.append("Transaction Type: " + getTrxType());
|
msg.append("Transaction Type: " + getTrxType());
|
||||||
|
|
|
@ -273,12 +273,17 @@ public class MPaymentTransaction extends X_C_PaymentTransaction implements Proce
|
||||||
|
|
||||||
StringBuffer msg = new StringBuffer();
|
StringBuffer msg = new StringBuffer();
|
||||||
if (approved)
|
if (approved)
|
||||||
|
{
|
||||||
|
if(getTrxType().equals(TRXTYPE_Void) || getTrxType().equals(TRXTYPE_CreditPayment))
|
||||||
|
msg.append(getR_VoidMsg() + "\n");
|
||||||
|
else
|
||||||
{
|
{
|
||||||
msg.append("Result: " + getR_Result() + "\n");
|
msg.append("Result: " + getR_Result() + "\n");
|
||||||
msg.append("Response Message: " + getR_RespMsg() + "\n");
|
msg.append("Response Message: " + getR_RespMsg() + "\n");
|
||||||
msg.append("Reference: " + getR_PnRef() + "\n");
|
msg.append("Reference: " + getR_PnRef() + "\n");
|
||||||
msg.append("Authorization Code: " + getR_AuthCode() + "\n");
|
msg.append("Authorization Code: " + getR_AuthCode() + "\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
msg.append("ERROR: " + getErrorMessage() + "\n");
|
msg.append("ERROR: " + getErrorMessage() + "\n");
|
||||||
msg.append("Transaction Type: " + getTrxType());
|
msg.append("Transaction Type: " + getTrxType());
|
||||||
|
|
Loading…
Reference in New Issue