[
https://issues.apache.org/jira/browse/OFBIZ-10227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16374046#comment-16374046
]
Nicolas Malin commented on OFBIZ-10227:
---------------------------------------
Hi [~suraj.khurana] can you explain me more what can you wish ? Because we can
have different vision on the agreement search with currency.
If I understand we suggest to filter by the currency the agreement price, but
in this case If you want convert the currency from an other one it's impossible.
I proposed to realize the resolution on two time :
* keep the current search and try to filter first by the currency in context
* if empty, search a price with a currency convertible.
> 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)