Hello,
I'm wondering something. In the Codeunit 5790 "Available to Promise", in the procedure QtyAvailabletoPromise, which returns a Decimal value, there is a IsHandled flag. If I switch this flag to True, the procedure stops prematurely with an exit method. But this exit method doesn't return any value. Is there a way to return a value with an exit method after switching a IsHandled flag to True ? Or by any other way ?
Here is what I would like to have in the " If IsHandled then" :

Any idea on how to return a value after switching the IsHandled flag to true ?