ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7311 "Warehouse Journal Line" - OnBeforeOnValidateQuantityCheckBinToBinCode

Open Magicrevette opened this issue 6 years ago • 3 comments

We are migrating our code from NAV 2018 to BC16.4. In the Table 7311 "Warehouse Journal Line", in the trigger OnValidate of the field 10 "Quantity", we need to add a condition to the use of the CheckBin("Location Code", "To Bin Code", true) procedure. I've thought about using the event publisher at the beginning of the local procedure CheckBin, but if I do, my event subscriber would be called everytime CheckBin is used. I only want to add a condition in this specific call in the OnValidate trigger of the field 1 "Quantity". To do so, we need a IsHandled flag and an event publisher, like this :

image

With this integration event : image

Do you think it could be possible ?

Thank you for your work.

Magicrevette avatar Nov 19 '20 15:11 Magicrevette

Hi @Magicrevette. Is it ok for you to use event OnBeforeCheckBin with new parameter CurrFieldNo?

RomanZanizdra avatar Nov 23 '20 11:11 RomanZanizdra

Hi @RomanZanizdra . It would fit to my need perfectly. Thank you.

Magicrevette avatar Nov 23 '20 13:11 Magicrevette

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Dec 08 '20 11:12 JesperSchulz