You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/09/06 14:37:00 UTC

[jira] [Commented] (OFBIZ-12690) Load cart from order with modified price

    [ https://issues.apache.org/jira/browse/OFBIZ-12690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600803#comment-17600803 ] 

Jacques Le Roux commented on OFBIZ-12690:
-----------------------------------------

Hi Ingo,

If I refer to https://developer.salesforce.com/forums/?id=906F0000000AgSdIAK (reasonable)
bq. The list price is the standard price. The unit price is the "deal price", or the price agreed for this specific order.
Why would you prefer the list price in this case?

> 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)