/[Apache-SVN]
ViewVC logotype

Revision 1825002


Jump to revision: Previous Next
Author: nmalin
Date: Wed Feb 21 20:40:53 2018 UTC (6 years, 2 months ago)
Changed paths: 19
Log Message:
Implemented: Use agreement on drop shipment process (OFBIZ-10227)

Extend 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 different prices

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 OrderItemShipGroup related to the supplier. Like that when the drop shipment process run it to resolve the product price for the agreement present on the OrderItemShipGroup. With this implementation we have an adaptable system to manage complex case.

Properly this patch implemented :
  an attribute on entity OrderItemShipGroup.supplierAgreementId
  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

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/applications/datamodel/data/demo/OrderDemoData.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/datamodel/entitydef/order-entitymodel.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/groovyScripts/entry/ShipSettings.groovy modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/minilang/order/OrderServices.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/servicedef/services.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/order/OrderServices.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutEvents.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartItem.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartServices.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/product/ProductPromoWorker.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/template/entry/ShipSettings.ftl modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/template/entry/order/ShipGroupConfirmSummary.ftl modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/template/order/OrderInfo.ftl modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/order/template/order/OrderShippingInfo.ftl modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/product/config/ProductUiLabels.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/product/servicedef/services_pricepromo.xml modified , text changed
Directoryofbiz/ofbiz-framework/trunk/applications/product/src/main/java/org/apache/ofbiz/product/price/PriceServices.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26