From: "BJ Freeman" <bjf...@free-man.net>
Basic concept the price for a product you buy should be less than the
price you sell it for.
so you get the price you pay for it (last price) Which becomes the
baseprice of the product then add what ever to that price to come up
with the price (default price) you sell it for.
Usually the supplier will also give you an MSRP that will be the
ListPrice, so you can discount from the Listprice to the defaultprice.
The Defaultprice is the one used for promos and marketing.
The ListPrice is the one used for promos and marketing. Defaultprice is one
used.... by default ;o)
https://cwiki.apache.org/confluence/display/OFBENDUSER/Price+Rules
Jacques
So when doing a PO you look at the lastprice or Baseprice. Since the
code for receiving uses lastprice it seem ok to use lastprice for PO.s
I can see an argument for using baseprice as long as the costing service
update the baseprice from the lastprice.
checkout page 88 of the data model book for the pricing component and
page 111 for the supplier product.
Thomas Nadler sent the following on 8/17/2010 2:39 AM:
Hi.
We have noticed a problem with the price calculation for purchase orders
that are automatically generated for dropshipments:
The product prices of the corresponding sales and purchase orders do not
match.
Background: The invoked Method makePurchaseOrderItem - that is
responsible for the creation of new purchase order items - uses
lastPrice from supplierProduct for the BasePrice calculation. In
contrast to this the price calculation for the corresponding sales order
bases on price from productPrice.
The lastPrice value is set everytime a merchant updates an existing
(purchase) order in the editOrderItem-view from GUI. Because of this all
newly generated purchase order items will base upon the last changes and
not on the original product price.
Possible Solution:
Change the value of baseprice in makePurchaseOrderItem from lastPrice
(supplierProduct) to price (productPrice).
Question:
What is the reason for using lastPrice from supplierProduct for the
creation of purchase orders and what kind of side-effects might occour
if price from productPrice is used instead.
We are working with Apache OFBiz 10.04.
Regards,
Thomas