You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Michael Brohl (Jira)" <ji...@apache.org> on 2023/07/27 15:52:00 UTC
[jira] [Assigned] (OFBIZ-12802) Extending calculateProductPrice (custom) Service and ShoppingCart / OrderItem to deliver/hold an individual discountRate value
[ https://issues.apache.org/jira/browse/OFBIZ-12802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Brohl reassigned OFBIZ-12802:
-------------------------------------
Assignee: Michael Brohl
> Extending calculateProductPrice (custom) Service and ShoppingCart / OrderItem to deliver/hold an individual discountRate value
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-12802
> URL: https://issues.apache.org/jira/browse/OFBIZ-12802
> Project: OFBiz
> Issue Type: New Feature
> Reporter: Adrian Wolf
> Assignee: Michael Brohl
> Priority: Minor
>
> Background is the communication of an individually (informally) calculated discount rate from the price calculation to the OrderItem, with easy access to it (because of this not via the orderItemPriceInfos substructure).
>
> Extending ProductPrice.calculateProductPrice Service (all in PriceServices.java and services_pricepromo.xml):
> * Addition of additional context information "productStoreGroupId" and "partyId" to the call parameters of a "customMethodName" price-calc-service
> * Obtaining the fields discountRate and listPrice from calling a "customMethodName" price-calc-service
> * discountRate as Result Field
> * Retaining the bypassing of the OFBiz Standard PriceRules based on the presence of a ListPrice (only that it can now also come from the "customMethodName", therefore slightly changed decision logic)
> Extending ShoppingCart/Item, OrderItem Entity:
> * Transport original discount rate from custom price calculation over cart to order to have the correct rate instead of back-calculating it from unitPrice and unitListPrice
--
This message was sent by Atlassian Jira
(v8.20.10#820010)