Codeunit 18123006 EOS Ecobonus Mgt.

Codeunit 18123006 EOS Ecobonus Mgt.

Methods

CheckEcobonusMandatoryFields

procedure CheckEcobonusMandatoryFields(RecRef: RecordRef)

Parameters / Return Value

  • RecRef RecordRef

Ecobonus_GetBonusAmountByOccurrency

procedure Ecobonus_GetBonusAmountByOccurrency(RecRef: RecordRef; CustLedgerEntryNo: Integer) RetAmt: Decimal

Parameters / Return Value

  • RecRef RecordRef

  • CustLedgerEntryNo Integer

  • Returns Decimal


Events

OnBeforeUpdateEcobonusFromGenProdPG

local procedure OnBeforeUpdateEcobonusFromGenProdPG(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)

Raised before Ecobonus flag is populated on sales lines from Gen. Product Posting Group

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales line you’re processing

  • IsHandled Boolean

    No following app code will be executed


OnAfterUpdateEcobonusFromGenProdPG

local procedure OnAfterUpdateEcobonusFromGenProdPG(var SalesLine: Record "Sales Line")

Raised after Ecobonus flag is populated on sales lines from Gen. Product Posting Group

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales line you’re processing


OnBefore_Ecobonus_GetBonusAmountByOcc

local procedure OnBefore_Ecobonus_GetBonusAmountByOcc(RecRef: RecordRef; CustLedgerEntryNo: Integer; var RetAmt: Decimal; var IsHandled: Boolean)

Raised before calculating Ecobonus amount for the document you’re processing

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • CustLedgerEntryNo Integer

    Specific occurrency to calculate ecobonus amount, if 0 the entire ecobonus amount will be returned

  • RetAmt Decimal

    Return value

  • IsHandled Boolean

    No following app code will be executed


OnAfter_Ecobonus_GetBonusAmountByOcc

local procedure OnAfter_Ecobonus_GetBonusAmountByOcc(RecRef: RecordRef; CustLedgerEntryNo: Integer; var RetAmt: Decimal)

Raised after calculating Ecobonus amount for the document you’re processing

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • CustLedgerEntryNo Integer

    Specific occurrency to calculate ecobonus amount, if 0 the entire ecobonus amount will be returned

  • RetAmt Decimal

    Return value


OnAfter_Ecobonus_WriteScontoMaggiorazione

local procedure OnAfter_Ecobonus_WriteScontoMaggiorazione(RecRef: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")

Raised after Ecobonus specific data are written in ScontoMaggiorazione tag

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • XmlWriter Codeunit "EOS Xml Writer"

    Codeunit “EOS Xml Writer”


OnBefore_Ecobonus_WriteScontoMaggiorazione

local procedure OnBefore_Ecobonus_WriteScontoMaggiorazione(RecRef: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var IsHandled: Boolean)

Raised before Ecobonus specific data are written in ScontoMaggiorazione tag

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • XmlWriter Codeunit "EOS Xml Writer"

    Codeunit “EOS Xml Writer”

  • IsHandled Boolean

    No following app code will be executed


OnAfter_Ecobonus_WriteAltriDatiGestionali

local procedure OnAfter_Ecobonus_WriteAltriDatiGestionali(RecRef: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")

Raised after Ecobonus specific data are written in AltriDatiGestionali tag

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • XmlWriter Codeunit "EOS Xml Writer"

    Codeunit “EOS Xml Writer”


OnBefore_Ecobonus_WriteAltriDatiGestionali

local procedure OnBefore_Ecobonus_WriteAltriDatiGestionali(RecRef: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var IsHandled: Boolean)

Raised before Ecobonus specific data are written in AltriDatiGestionali tag

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • XmlWriter Codeunit "EOS Xml Writer"

    Codeunit “EOS Xml Writer”

  • IsHandled Boolean

    No following app code will be executed


OnBeforeCheckEcobonusMandatoryFields

local procedure OnBeforeCheckEcobonusMandatoryFields(RecRef: RecordRef; var IsHandled: Boolean)

Raised before Ecobonus mandatory data are checked

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing

  • IsHandled Boolean

    No following app code will be executed


OnAfterCheckEcobonusMandatoryFields

local procedure OnAfterCheckEcobonusMandatoryFields(RecRef: RecordRef)

Raised after Ecobonus mandatory data are checked

Parameters / Return Value

  • RecRef RecordRef

    Document you’re processing



EOS Labs -