This is an automated email from the ASF dual-hosted git repository. pawan pushed a commit to branch release18.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release18.12 by this push: new ae511e4 Fixed: Promised Datetime & Current Promised Date values not getting updated in OISGIR Entity (OFBIZ-10538) ae511e4 is described below commit ae511e474088c29883ce7c6df0d39484654d5e79 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 39bccb5..014b7f8 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.">