Announcements
No record found.
hi,
i need to update the price unit for all the items to zero and i need a help to run a query to update for all items because it will be difficult to update the price one by one.
*This post is locked for comments
sorry not the unit price what i need to update the price to be zero
Hi!
You should update Amount field in PriceDiscTable and PriceDiscAdmTrans tables.
After update call the PriceDisc::flushPriceDiscCache() method.
You should run update data in every entity.
as far i know the table name is InventTableModule , ModuleType : inventory and Price, so i need to run and query to update all prices to zero
but how can i run one job to update the price for all items to zero?
My suggestion was for price agreements, sorry.
If you want update Price field in InventTableModule table for all items, try this:
static void Job174(Args _args) { InventTableModule inventTableModule; ttsBegin; update_recordSet inventTableModule setting Price = 0 where inventTableModule.ModuleType == ModuleInventPurchSales::Sales; ttsCommit; info("done"); }
thanks a your quick update but if I need to update the inventory only it should be ModuleInventPurchSales::Inventory; ?
Yes.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 26
imran ul haq 8
André Arnaud de Cal... 4 Super User 2026 Season 1