This is an automated email from the ASF dual-hosted git repository. pawan pushed a commit to branch release17.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release17.12 by this push: new 454230e Fixed: Promised Datetime & Current Promised Date values not getting updated in OISGIR Entity (OFBIZ-10538) 454230e is described below commit 454230e6133445d73f24d29d5a38c34e5a5c5333 Author: Pawan Verma <pawan.ve...@hotwaxsystems.com> AuthorDate: Wed May 6 11:51:40 2020 +0530 Fixed: Promised Datetime & Current Promised Date values not getting updated in OISGIR Entity (OFBIZ-10538) Thanks: Deepak, Taher, Ravi, Amit, Suraj for the contribution. --- applications/order/minilang/order/OrderServices.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/applications/order/minilang/order/OrderServices.xml b/applications/order/minilang/order/OrderServices.xml index a444c8e..a694051 100644 --- a/applications/order/minilang/order/OrderServices.xml +++ b/applications/order/minilang/order/OrderServices.xml @@ -763,6 +763,18 @@ under the License. <set-service-fields service-name="createOrderContactMech" map="inputMap" to-map="removeOrderContactMechMap"/> <call-service service-name="removeOrderContactMech" in-map-name="removeOrderContactMechMap" include-user-login="true"/> </if-empty> + + <!-- Update promisedDateTime & currentPromisedDate in OrderItemShipGrpInvRes entity--> + <set field="itemShipGrpInvResLookupMap.orderId" from="parameters.orderId"/> + <set field="itemShipGrpInvResLookupMap.shipGroupSeqId" from="parameters.shipGroupSeqId"/> + <find-by-and entity-name="OrderItemShipGrpInvRes" map="itemShipGrpInvResLookupMap" list="itemShipGrpInvResList"/> + <if-not-empty field="itemShipGrpInvResList"> + <iterate list="itemShipGrpInvResList" entry="orderItemShipGrpInvRes"> + <set field="orderItemShipGrpInvRes.promisedDatetime" from="parameters.shipByDate"/> + <set field="orderItemShipGrpInvRes.currentPromisedDate" from="parameters.shipByDate"/> + <store-value value-field="orderItemShipGrpInvRes"/> + </iterate> + </if-not-empty> </simple-method> <simple-method method-name="getOrderItemShipGroupEstimatedShipDate" short-description="Compute and return the OrderItemShipGroup estimated ship date based on the associated items.">