You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Emad Radwan <er...@gmail.com> on 2022/05/10 20:24:29 UTC

Confused about Customer request Item table and product price relation

Hello Community,

I need help, please. CustRequestItem table reference Product via productId. On the other hand, each product may have different prices as per product_prices table. The question here, by storing only productId in CustRequestItem how Ofbiz will remember such info as maybe the request was made based on a promo price not the default one?

Regards,
Emad

Re: Confused about Customer request Item table and product price relation

Posted by Nicolas Malin <ni...@nereide.fr>.
Hello Emad,

You you initialize your CustRequest, You have the functional context to
resolve the product price use (invoice, order, quote). So propage your
unit price on the custRequestItem.

Nicolas


On 10/05/2022 22:24, Emad Radwan wrote:
> Hello Community,
>
> I need help, please. CustRequestItem table reference Product via productId. On the other hand, each product may have different prices as per product_prices table. The question here, by storing only productId in CustRequestItem how Ofbiz will remember such info as maybe the request was made based on a promo price not the default one?
>
> Regards,
> Emad