microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
785 stars 621 forks source link

[EventRequest] Codeunit 5870 OnAfterFilterBOMBuffer #699

Closed sgiordy closed 5 years ago

sgiordy commented 5 years ago

Hi,

previous issue #420 was closed with a refactor of "GenerateTreeForItemLocal" adding "OnBeforeFilterBOMBuffer" event.

But is not enough: standard procedures "GenerateItemSubTree" and "CalculateTreeType" are LOCAL, so there is no way to call them in custom code.

Please add also this event to control BOMBuffer after its standard creation

OnAfterFilterBOMBuffer(ParentItem, BOMBuffer, DemandDate, TreeType);

Thank you S.

AlexanderYakunin commented 5 years ago

You have [External] GenerateTreeForItems to do that. And event OnAfterFilterBOMBuffer(ParentItem,BOMBuffer,DemandDate,TreeType) already exist.

sgiordy commented 5 years ago

Hi @AlexanderYakunin in BC CU2 OnPrem the "OnAfterFilterBOMBuffer" event does not exists. But if it exists in Cloud version OK, we backport it. Thank you.

sgiordy commented 5 years ago

Event found in BC 14 RTM OnPrem, thank you.