details: https://code.openbravo.com/erp/devel/pi/rev/965d59c74291 changeset: 27909:965d59c74291 user: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> date: Mon Nov 09 11:11:18 2015 +0100 summary: Fixes issue 31061: Can not reactivate a invoice if it's related to a LandedCost
It is not possible to reactivate a purchase invoice if any line has a related landed cost matched. Now, it will be possible to manually remove this landed cost matched, if matching is not processed, by unselecting it in Match LC Costs pick and edit, and then reactivate purchase invoice. diffstat: src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diffs (23 lines): diff -r c6c9ab6f8cae -r 965d59c74291 src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java --- a/src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java Tue Nov 17 09:04:02 2015 +0100 +++ b/src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java Mon Nov 09 11:11:18 2015 +0100 @@ -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-2015 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -61,9 +61,7 @@ final InvoiceLine il = OBDal.getInstance().get(InvoiceLine.class, strInvoiceLineId); List<String> existingMatchings = new ArrayList<String>(); for (LCMatched invmatch : il.getLandedCostMatchedList()) { - if (invmatch.isConversionmatching()) { - existingMatchings.add(invmatch.getId()); - } + existingMatchings.add(invmatch.getId()); } JSONArray selectedLines = jsonparams.getJSONObject("LCCosts").getJSONArray("_selection"); ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits