You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2018/02/17 20:22:00 UTC

[jira] [Commented] (OFBIZ-10227) Use agreement on drop shipment process

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

Pierre Smits commented on OFBIZ-10227:
--------------------------------------

Hi Nicolas,

I like the idea. But how do you factor in the conditional constraints of the agreement with the supplier, such as start and end dates, geographical limitations, etc.?

 

> 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)