[
https://issues.apache.org/jira/browse/OFBIZ-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601152#comment-17601152
]
Ingo Wolfmayr commented on OFBIZ-12690:
---------------------------------------
Hi Jacques,
I agree. I have no easy solution right now. As I have to walk through the whole
price logic (OFBIZ-12390) I will try to come up with a proposal.
* add isModifiedPrice to addItem methods and pass it to the price calc
service.??
* add basePrice to orderItem?? ( *It sounds like you need a workflow field to
capture the initial unit price (unless the list price is the initial unit
price).*)
If you have a proposal :)
> Load cart from order with modified price
> ----------------------------------------
>
> Key: OFBIZ-12690
> URL: https://issues.apache.org/jira/browse/OFBIZ-12690
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: Upcoming Branch
> Reporter: Ingo Wolfmayr
> Priority: Major
> Fix For: Upcoming Branch
>
> Attachments: modifiedPrice.patch
>
>
> The loadCartFromOrder method does not consider the selectedAmount from
> orderItems. When creating an order where the selectedAmount is not empty the
> current logic will take the already calculated unitprice and multiply it with
> the unitprice.
> SelectedAmount: 0.5
> Unitprice: 10
> Update 1: 5
> Update 2: 2.5
> ...
> My proposal uses the unitListPrice if the order item has modifiedPrice=Y &&
> selectedAmount!=null
--
This message was sent by Atlassian Jira
(v8.20.10#820010)