ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Report 790 - GetLocation and InsertItemJnlLine Visibility

Open SCreanor opened this issue 7 years ago • 2 comments

Can the 2 functions below in Report 790 - Calculate Inventory please be changed from their current 'Local' / 'Internal' visibility to those shown below.

[External] GetLocation(LocationCode : Code[10]) : Boolean

[External] InsertItemJnlLine(ItemNo : Code[20];VariantCode2 : Code[10];DimEntryNo2 : Integer;BinCode2 : Code[20];Quantity2 : Decimal;PhysInvQuantity : Decimal)

SCreanor avatar Feb 06 '19 22:02 SCreanor

Hi SCreanor. May I ask you a question, how are you going to use these functions in report when they started to be an external, what is the case/scenario?

RomanZanizdra avatar Apr 17 '19 14:04 RomanZanizdra

As part of an extension we are writing, we need the ability to insert physical inventory journal lines from our extension. By enabling the 2 functions to be external we can use the standard functionality normally used to add a journal line as part of the calculate inventory, to be called from our extension. There are a number of checks, etc. that require the data to be added via the InsertItemJnlLine function and if we attempt to add it manually from outside the table, it requires a lot of re-work that can be avoided simply by marking these functions as external, and the GetLocation needs to be external to set up the correct location for the insertion call.

SCreanor avatar Apr 18 '19 05:04 SCreanor