[ 
https://issues.apache.org/jira/browse/OFBIZ-10538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666065#comment-16666065
 ] 

Ravi Lodhi commented on OFBIZ-10538:
------------------------------------

I was looking into this, here are my findings,

In the create order process OrderItemShipGrpInvRes.promisedDateTime and 
OrderItemShipGrpInvRes.currentPromisedDate fields are set by 
reserverOrderItemInventory service which is called from 
reserveProductInventoryByFacility service. 

While updating "Ship Before Date" from order detail page, it just updates the 
OrderItemShipGroup.shipByDate by calling the service updateOrderItemShipGroup. 
OrderItem.shipBeforeDate, OrderItemShipGrpInvRes.promisedDateTime and 
OrderItemShipGrpInvRes.currentPromisedDate fields doesn't get updated.

> Promised Datetime & Current Promised Date values not getting updated in 
> OISGIR Entity
> -------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10538
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10538
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order, product
>    Affects Versions: Trunk
>            Reporter: Deepak Nigam
>            Priority: Major
>
> While creating the sales order from the backend, if we set the 'Ship Before 
> Date' it will be stored in OrderItemShipGroup.shipByDate field and same will 
> be propagated to OrderItemShipGrpInvRes.promisedDateTime and 
> OrderItemShipGrpInvRes.currentPromisedDate fields.
>   
>  On updating the 'Ship Before Date' from the order view page later, the 
> promisedDateTime and currentPromisedDate get updated in OrderItemShipGroup 
> entity but remains the same in OrderItemShipGroupInvRes entity. 
>   
>  As OrderItemShipGrpInvRes.promisedDateTime & 
> OrderItemShipGrpInvRes.currentPromisedDate are being used in many services 
> like 'getOrderItemShipGroupEstimatedShipDate', 'getItemBackOrderedQuantity', 
> 'reserveProductInventory' etc., we should also update these on updating the 
> 'Ship Before Date' from the order overview page. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to