2952391 Payment type not set correctly for direct deposit/debit

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2952391
This commit is contained in:
phib 2010-02-15 22:56:52 +00:00
parent cee379fe3e
commit 53a9929eab
1 changed files with 4 additions and 0 deletions

View File

@ -288,6 +288,10 @@ public final class MPayment extends X_C_Payment
setAccountNo(ba.getAccountNo());
setIsReceipt (X_C_Order.PAYMENTRULE_DirectDebit.equals // AR only
(preparedPayment.getPaymentRule()));
if ( MPaySelectionCheck.PAYMENTRULE_DirectDebit.equals(preparedPayment.getPaymentRule()) )
setTenderType(MPayment.TENDERTYPE_DirectDebit);
else if ( MPaySelectionCheck.PAYMENTRULE_DirectDeposit.equals(preparedPayment.getPaymentRule()))
setTenderType(MPayment.TENDERTYPE_DirectDeposit);
//
int check = MPaymentValidate.validateRoutingNo(getRoutingNo()).length()
+ MPaymentValidate.validateAccountNo(getAccountNo()).length();