From 53a9929eabb294a27d4902fb8c70a27098ae0d66 Mon Sep 17 00:00:00 2001 From: phib Date: Mon, 15 Feb 2010 22:56:52 +0000 Subject: [PATCH] 2952391 Payment type not set correctly for direct deposit/debit Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2952391 --- base/src/org/compiere/model/MPayment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/src/org/compiere/model/MPayment.java b/base/src/org/compiere/model/MPayment.java index 9745df4f2a..ca5779d8d5 100644 --- a/base/src/org/compiere/model/MPayment.java +++ b/base/src/org/compiere/model/MPayment.java @@ -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();