ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 38 - InitRecord

Open Bleika opened this issue 7 years ago • 2 comments

Bleika avatar Feb 08 '19 16:02 Bleika

Hi,

In order to allow for different automatic Number Series in Purchases, a new event is needed. (Identical to point no. 3 in #1025 for T36, but this one is for T38. Other necessary NoSeriesMgt related Events are alreay in place in T38):

Please add the following:

Event declaration: [Integration] LOCAL PROCEDURE OnBeforeInitRecord(VAR PurchaseHeader : Record "Purchase Header; VAR IsHandled : Boolean);

Placement in code - before the CASE that sets the default series: [External] InitRecord() PurchSetup.GET;

//-NEW CODE IsHandled := false; OnBeforeInitRecord(Rec,IsHandled) if not IsHandled then begin //+NEW CODE

CASE "Document Type" OF "Document Type"::Quote,"Document Type"::Order: [...] end; //End case //-NEW CODE end; //+NEW CODE

Bleika avatar Feb 08 '19 16:02 Bleika

I'm sorry - I guess I was to tired when I posted this one and for some reason closed it by accident... Please consider the request.

Bleika avatar Feb 11 '19 11:02 Bleika