ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 5895 (Inventory Adjustment)

Open Alexbitl opened this issue 7 years ago • 4 comments

Dear ALAppExtensions team,

There are situations when we need to limit the execution time of the report 795 (Adjust Cost - Item Entries). To do this, please add an integration event to the MakeSingleLevelAdjmt function in codeunit 5895 (Inventory Adjustment) with the ability to pass additional parameter (for example, run duration or stop time).

In C/AL it looks like this: image

Alexbitl avatar May 06 '19 12:05 Alexbitl

Can you please be more specific and provide event definition, list of parameters and location in the code?

AlexanderYakunin avatar May 23 '19 11:05 AlexanderYakunin

I see such implementation:

  1. In the codeunit 5895 add global variable StopTime (datetime)
  2. At the end of local procedure InitializeAdjmt (cu5895) add integration event OnAfterInitializeAdjmt(var StopTime :datetime) and we will be able to initialize new variable
  3. At the local procedure MakeSingleLevelAdjmt (cu5895) add integration event OnAfterItemAdjmt(var Item : Record «Item»)

image

In this way we can interrupt processing and not wait for processing all items.

Alexbitl avatar May 24 '19 09:05 Alexbitl

Hi, i would suggest an additional parameter for the suggested event "OnAfterItemAdjmt" - please consider the Boolean "IsOnlineAdjmt".

Thanks

AJasp avatar Jun 11 '19 14:06 AJasp

Hi, I think an additional parameter is always useful. Thank you for your response.

Alexbitl avatar Jun 14 '19 07:06 Alexbitl