[ https://issues.apache.org/jira/browse/OFBIZ-10227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Malin closed OFBIZ-10227. --------------------------------- Resolution: Implemented Fix Version/s: Upcoming Branch I commited this issue on trunk at revision 1825002. Pierre If you have an idea to create basic rules to resolve the purchase agreement, don't hesitate to open an issue. > 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 > Fix For: Upcoming Branch > > 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)