OnAddDefaultsToReviewLine

<< Click to Display Table of Contents >>

Navigation:  Zetadocs SDK Guide > Zetadocs SDK API >

OnAddDefaultsToReviewLine

OnAddDefaultsToReviewLine Event

Runs after the key line fields (e.g. "Type" & "No.") have been modified. This event provides methods to access and update the Zetadocs Review line (e.g. to populate default information like the Tax/VAT groups and dimensions, or ensure a product code is still existent).

 

Publisher

    [IntegrationEvent(false, false)]

    procedure OnAddDefaultsToReviewLine(var OnAddDefaultsToReviewLineHandler: Codeunit "Zdd OnAddDefaultsToReviewLine")

    begin

    end;

 

Subscriber

To subscribe to this event, you will need to decorate the subscriber method with the correct EventSubscriber attributes:

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Zetadocs Customize", 'OnAddDefaultsToReviewLine', '', true, true)]

    local procedure OnAddDefaultsToReviewLine(var onAddDefaultsToReviewLineHandler: Codeunit "Zdd OnAddDefaultsToReviewLine")

    begin

    end;

 

Zdd OnAddDefaultsToReviewLine codeunit

This codeunit exposes procedures that give you access to the Zetadocs Review Line, which is shown for user validation on the Zetadocs Review Screen.

Method name

Description

GetHeaderInformation(var code[20]; var Enum Zetadocs Review Document Type; var code[20])

Will return the information about context of the header related to the review line.

GetReviewLine(Record "Zetadocs ADE lines"):

Will return the Zetadocs Review Line.

SetReviewLine(Record "Zetadocs ADE lines")

Will override the Zetadocs Review Line with the data provided.

 

GetHeaderInformation Method

Will return the header information related to the review line.

 

Syntax

onAddDefaultsToReviewLineHandler.GetHeaderInformation(

       var headerEntityNo: code[20];

       var headerDocumentType: Enum "Zetadocs Review Document Type";

       var languageCode: code[20])

 

Parameters

headerEntityNo

Type: code[20]

The identifier of the header entity. For an invoice, this represents the Vendor ID.

 

headerDocumentType

Type:  Enum "Zetadocs Review Document Type"

The type of document being processed.

 

languageCode

Type:  code[20]

The language code recognized for the entity. It should be taken into account when parsing quantity strings.

 

 

GetReviewLine Method

Will return the Zetadocs Review Line record.

 

Syntax

onAddDefaultsToReviewLineHandler.GetReviewLine(var temporaryZetadocsReviewLine: Record "Zetadocs ADE lines")

 

Parameters

documentIdstemporaryZetadocsReviewLine

Type: Record "Zetadocs ADE lines"

The temporary record variable that will store a the current information of the Zetadocs Review Line.

 

SetReviewLine Method

Will override the Zetadocs Review Line data.

 

Syntax

onAddDefaultsToReviewLineHandler.SetReviewLine(var temporaryZetadocsReviewLine: Record "Zetadocs ADE lines")

 

Parameters

temporaryZetadocsReviewLine

Type: Record Record "Zetadocs ADE lines"

The record variable that will update the current information for the Zetadocs Review Line.