Announcements
*This post is locked for comments
Table InventTable, method updateLastPurchPrice().
That method is called from Class PurchInvoiceJourPost, method calcLastPurchPrice().
If you look at my original answer, I already gave you that information too.
-
The class is actually PurchInvoiceJournalPost (not PurchInvoiceJourPost from my original post, but that's close enough you should have found it).
Here's the method I referenced.
protected void calcLastPurchPrice() { Debug::assert(!vendInvoiceInfoLine.isNonPO()); if (!vendInvoiceInfoLine.PurchPrice) { vendInvoiceInfoLine.PurchPrice = PriceDisc::amount2Price(vendInvoiceInfoLine.LineAmount, vendInvoiceInfoLine.discPercent(), vendInvoiceInfoLine.PurchMarkup, vendInvoiceInfoLine.ReceiveNow, vendInvoiceInfoLine.discAmount(), vendInvoiceInfoLine.PriceUnit, vendInvoiceInfoLine.purchLine().CurrencyCode, vendInvoiceInfoLine.PurchPrice); } vendInvoiceInfoLine.inventTable().updateLastPurchPrice(vendInvoiceInfoTable.TransDate, vendInvoiceInfoTable.CurrencyCode, vendInvoiceInfoLine.PurchPrice, vendInvoiceInfoLine.PriceUnit, vendInvoiceInfoLine.PurchMarkup, purchLine.PurchUnit, purchLine.inventDim()); }
The method InventTable::updateLastCostPrice() is called from multiple places.
These are the main ones to focus on.
Class InventtUpd_Financial method updateFinancialReceipt().
Class ProdUpdHistoricalCost method updateProduction().
Class InventModelType method postUpdateFinancialAdjustment().
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sanhthosh.Kumar.K 2
Raed Salah Bzour 1