Notifications
Announcements
Hello,Can anybody tell me how can i run this functionality through x ++ (job). Consistency check :Module: Inventory ManagmentCheck/Fix : fix
"Item"
*This post is locked for comments
First of all it's generally a bad idea to fix data instead of fixing your code.
Each table that supports consistency check has set of checkFix*, methods. For example on inventTrans you have checkFixFields(), checkFixReference(), checkFixSettlement() and so on. So find out method that does fix of your data and call it directly from the code.
I will try and give feedback
Try to recalc InventSum.
static void InventSumRecalc(Args _args) { InventSumReCalcItem inventSumReCalcItem; ttsbegin; inventSumReCalcItem = new InventSumReCalcItem("yourItemId", true, CheckFix::Fix); inventSumReCalcItem.updateNow(); ttscommit; info("done"); }
I have this problem:
Cannot reserve 1,00 of item [item] because of stock shortage. Clear the Reservation required setting to allow further processing of the shipment.
However, there is enough stock in my warehouse...
Even when i clear the reservation required setting, system throws a warning: Not all shipment lines could be reserved...So no solution...
Тhe code has a lot custamizatons and it gives me this error only in one case when I have a pallet. I can not find exactly what the error is. It has to be very debugging.
With Consistency check(inventory management) things get better by giving it to the current itemId.
So I want before I can activate shipment, to run this functionality with through the code in my particular case.
If you want someone to help you you need to explain your problem using more than 2 words
Current ItemId
Yes, you can. But what do you mean under "current record"?
So can I choose current record.
Should be something like
InventConsistencyCheck inventConsistencyCheck; SysConsistencyCheckJob systemConsistencyCheckBase= new SysConsistencyCheckJob(classIdGet(inventConsistencyCheck)); systemConsistencyCheckBase.parmCheckFix(CheckFix::Fix); systemConsistencyCheckBase.run();
Hi Deniz!
Why you need to run it through the job?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
TAHER Mehdi 3
Martin Dráb 2 Most Valuable Professional
Volodya 2