details: https://code.openbravo.com/erp/devel/pi/rev/890acbd59e51 changeset: 34907:890acbd59e51 user: Atul Gaware <atul.gaware <at> openbravo.com> date: Fri Oct 26 10:54:45 2018 +0530 summary: Fixes Issue 39505:Records in Matched Amount tab are duplicated if the Landed Cost is reactivated and processed again
Delete records from Matched Amount sub tab when Landed Cost is reactivated. diffstat: src/org/openbravo/costing/ReactivateLandedCost.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diffs (31 lines): diff -r 846701061bb9 -r 890acbd59e51 src/org/openbravo/costing/ReactivateLandedCost.java --- a/src/org/openbravo/costing/ReactivateLandedCost.java Fri Oct 26 15:05:43 2018 +0200 +++ b/src/org/openbravo/costing/ReactivateLandedCost.java Fri Oct 26 10:54:45 2018 +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-2015 Openbravo SLU + * All portions are Copyright (C) 2014-2018 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -40,8 +40,6 @@ public class ReactivateLandedCost extends BaseActionHandler { private static final Logger log = LoggerFactory.getLogger(ReactivateLandedCost.class); - final String strCategoryLandedCost = "LDC"; - final String strTableLandedCost = "M_LandedCost"; @Override protected JSONObject execute(Map<String, Object> parameters, String data) { @@ -114,6 +112,9 @@ if (message.has("severity") && !message.get("severity").equals("success")) { return message; } + + // Remove related Matched Amount records + lcc.getLandedCostMatchedList().clear(); } // Reload in case the cancel cost adjustment has cleared the session. _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits