getProductCost is also used from the ReceiveInventoryProduct workflow and it depends as part of its logic on
SupplierProduct to get the unit cost. My concern here is, if the new purchase price is different than the last one then I think this logic won't be relevant; so is SetUnitPriceAsLastPrice is called before tht to update SupplierProduct with the new Price? Regards, Emad On Sat, Feb 24, 2024 at 12:03 AM Pierre Smits <[email protected]> wrote: > Hi Emad, > > the 'SetUnitPriceAsLastPrice' service is called/triggered in the following > cases: > > 1. when "updateOrderItems" is triggered > 2. when receiveInventoryProduct is triggered > > But ideally it should not be a task of the warehouse staff to check for > correct prices. That should be done by the accounting staff when the > purchase invoice is reviewed/processed. > > Met vriendelijke groet, > > Pierre Smits > *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since > 2008 (without privileges) > Proud contributor to the ASF since 2006 > *Apache Directory <https://directory.apache.org>, PMC Member* > > Anyone could have been you, whereas I've always been anyone. > > > On Fri, Feb 23, 2024 at 5:06 PM Emad Radwan <[email protected]> wrote: > >> Hello Community, >> >> Part of the above workflow is to set the last product price in >> SupplierProducts entity and I believe this is done via the service >> 'SetUnitPriceAsLastPrice' >> My question is when is this taking place? >> >> 1 - With Purchase order creation. >> 2 - With Purchase Order Receive Product. >> 3 - Both. >> >> Regards, >> Emad >> >
