details: https://code.openbravo.com/erp/devel/pi/rev/2d2e28bdaba7 changeset: 34759:2d2e28bdaba7 user: Asier Martirena <asier.martirena <at> openbravo.com> date: Mon Sep 03 15:32:44 2018 +0200 summary: Related to issue 39067: Change in the isDelivered flag
All canceled order have now the isDelivered flag to true (both canceled and cancelling orders). diffstat: src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diffs (19 lines): diff -r 82f92b9d402a -r 2d2e28bdaba7 src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java --- a/src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java Mon Aug 27 21:12:20 2018 -0400 +++ b/src/org/openbravo/erpCommon/businessUtility/CancelAndReplaceUtils.java Mon Sep 03 15:32:44 2018 +0200 @@ -561,13 +561,8 @@ } // Set the delivered status for the old and inverse orders - if (replaceOrder && associateShipmentToNewReceipt && oldOrder.isDelivered()) { - if (!newOrder.isDelivered()) { - newOrder.setDelivered(true); - } - oldOrder.setDelivered(false); - } - inverseOrder.setDelivered(false); + oldOrder.setDelivered(true); + inverseOrder.setDelivered(true); // Close inverse order inverseOrder.setDocumentStatus("CL"); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits