This is an automated email from the ASF dual-hosted git repository. pawan pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new f216542 Fixed: Promised Datetime & Current Promised Date values not getting updated in OISGIR Entity (OFBIZ-10538) f216542 is described below commit f2165421f63d0d0847501cc5fc7ef4f2f96b8b6a 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 b4ab784..a0c7eb1 100644 --- a/applications/order/minilang/order/OrderServices.xml +++ b/applications/order/minilang/order/OrderServices.xml @@ -644,6 +644,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.">