details: https://code.openbravo.com/erp/devel/pi/rev/143d5c808926 changeset: 28629:143d5c808926 user: Atul Gaware <atul.gaware <at> openbravo.com> date: Mon Feb 22 15:33:27 2016 +0530 summary: Fixes Issue 32268: Wrong payment status when unmatching bankstatement line manually matched against an invoice
Incase a finTransaction is unmatched which has finPayment,status of finPayment is also updated accordingly as per isReceipt flag diffstat: modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRM_MatchingUtility.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diffs (28 lines): diff -r 863208bb4993 -r 143d5c808926 modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRM_MatchingUtility.java --- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRM_MatchingUtility.java Mon Feb 22 10:43:16 2016 +0100 +++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/APRM_MatchingUtility.java Mon Feb 22 15:33:27 2016 +0530 @@ -11,7 +11,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2014 Openbravo SLU + * All portions are Copyright (C) 2014-2016 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************* @@ -319,12 +319,14 @@ boolean isReceipt = false; if (finTrans.getFinPayment() != null) { isReceipt = finTrans.getFinPayment().isReceipt(); + finTrans.getFinPayment().setStatus( + isReceipt ? APRMConstants.PAYMENT_STATUS_DEPOSIT_NOT_CLEARED + : APRMConstants.PAYMENT_STATUS_WITHDRAWAL_NOT_CLEARED); } else { isReceipt = finTrans.getDepositAmount().compareTo(finTrans.getPaymentAmount()) > 0; } finTrans.setStatus(isReceipt ? APRMConstants.PAYMENT_STATUS_DEPOSIT_NOT_CLEARED : APRMConstants.PAYMENT_STATUS_WITHDRAWAL_NOT_CLEARED); - // Execute un-matching logic defined by algorithm final MatchingAlgorithm ma = bsline.getBankStatement().getAccount().getMatchingAlgorithm(); final FIN_MatchingTransaction matchingTransaction = new FIN_MatchingTransaction( ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits