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

Nicolas Malin commented on OFBIZ-10227:
---------------------------------------

Thanks Pierre, to select the good agreement we created dedicate a shopping cart 
event class for each front, who realize the agreement resolution (from specific 
worker) to push it on  shopping cart shipment plan.

With this issue I concentrate my work on the back office what can I work with a 
purchase agreement and not how I select this agreement but sure in a second 
time create a service base to resolve it would be appreciate

> Use agreement on drop shipment process
> --------------------------------------
>
>                 Key: OFBIZ-10227
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10227
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: accounting, order, product
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Major
>              Labels: agreements, dropship
>         Attachments: DropShipmentAgreement.patch
>
>
> Hi,
> In a customer project we extended the drop shipment process to manage an 
> agreement for the supplier related to the order context.
> For a supplier we have different agreements with same products but on 
> diffrent price
> Agreement A
>  GIZMO-1 100€
>  GIZMO-1 110$
> Agreement B
>  GIZMO-1 90€
> Agreement C
>  GIZMO-1 600¥
> During sales order process we resolve the purchase agreement that match the 
> case and put on oisg related to the supplier. Like that when the drop 
> shipment process run it to resolve the product price for the agreement 
> present on the oisg. With this implementation we have an adaptable system to 
> manage complex case.
> Properly I improved :
>  * add an attribute on entity OrderItemShipGroup.supplierAgreementId
>  * add an attribute on entity OrderHeader.agreementId (necessary when you 
> update the order to keep the price)
>  * update the service caculatePurchasePrice for resolve the price from a 
> agreement if it's present
>  * update the shoppingCart to insert a purchase agreement
> If you are interested to test it, you can apply the patch, create a sales 
> order with the product DS-1000, select on the oisg the supplier DemoSupplier 
> and the agreement DS-1000-PURCH
> I detected a possible improvement on OrderItemPriceInfo to set the origin 
> price from an agreement because when you create a purchase order, ofbiz 
> update automaticly the SupplierProduct.lastPrice that would not logical, the 
> price is under an agreement.



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

Reply via email to