Share via


Codeunit "VAT Rate Change Conversion"

ID 550
Namespace: Microsoft.Finance.VAT.RateChange

Properties

Name Value
Permissions TableData "VAT Rate Change Log Entry" = i

Methods

ConvertVATProdPostGrp

procedure ConvertVATProdPostGrp(UpdateOption: Option): Boolean

Parameters

Name Type Description
UpdateOption Option

Returns

Type Description
Boolean

ConvertGenProdPostGrp

procedure ConvertGenProdPostGrp(UpdateOption: Option): Boolean

Parameters

Name Type Description
UpdateOption Option

Returns

Type Description
Boolean

UpdateTable

procedure UpdateTable(TableID: Integer, ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean)

Parameters

Name Type Description
TableID Integer
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean

UpdateRec

procedure UpdateRec(var RecRef: RecordRef, ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean)

Parameters

Name Type Description
RecRef RecordRef
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean

WriteLogEntry

procedure WriteLogEntry(VATRateChangeLogEntry: Record "VAT Rate Change Log Entry")

Parameters

Name Type Description
VATRateChangeLogEntry Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Log Entry"

AddNewSalesLine

procedure AddNewSalesLine(SalesLine: Record "Sales Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20])

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]

UpdatePurchase

procedure UpdatePurchase()

GetNextPurchaseLineNo

procedure GetNextPurchaseLineNo(PurchaseLine: Record "Purchase Line", var NextLineNo: Integer): Boolean

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NextLineNo Integer

Returns

Type Description
Boolean

UpdateUnitPriceInclVAT

procedure UpdateUnitPriceInclVAT(Type: Enum "Sales Line Type"): Boolean

Parameters

Name Type Description
Type Enum Microsoft.Sales.Document."Sales Line Type"

Returns

Type Description
Boolean

LineInScope

procedure LineInScope(GenProdPostingGroup: Code[20], VATProdPostingGroup: Code[20], ConvertGenProdPostingGroup: Boolean, ConvertVATProdPostingGroup: Boolean): Boolean

Parameters

Name Type Description
GenProdPostingGroup Code[20]
VATProdPostingGroup Code[20]
ConvertGenProdPostingGroup Boolean
ConvertVATProdPostingGroup Boolean

Returns

Type Description
Boolean

GetNextSalesLineNo

procedure GetNextSalesLineNo(SalesLine: Record "Sales Line", var NextLineNo: Integer): Boolean

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
NextLineNo Integer

Returns

Type Description
Boolean

GetRoundingPrecision

procedure GetRoundingPrecision(CurrencyCode: Code[10]): Decimal

Parameters

Name Type Description
CurrencyCode Code[10]

Returns

Type Description
Decimal

GetNextServiceLineNo

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit "Serv. VAT Rate Change Conv."

[Obsolete(Replaced by same procedure in codeunit "Serv. VAT Rate Change Conv.",25.0)]
procedure GetNextServiceLineNo(ServiceLine: Record "Service Line", var NextLineNo: Integer): Boolean

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
NextLineNo Integer

Returns

Type Description
Boolean

IncludeSalesLine

procedure IncludeSalesLine(Type: Enum "Sales Line Type", No: Code[20]): Boolean

Parameters

Name Type Description
Type Enum Microsoft.Sales.Document."Sales Line Type"
No Code[20]

Returns

Type Description
Boolean

IncludePurchLine

procedure IncludePurchLine(Type: Enum "Purchase Line Type", No: Code[20]): Boolean

Parameters

Name Type Description
Type Enum Microsoft.Purchases.Document."Purchase Line Type"
No Code[20]

Returns

Type Description
Boolean

InitVATRateChangeLogEntry

procedure InitVATRateChangeLogEntry(var VATRateChangeLogEntry: Record "VAT Rate Change Log Entry", RecRef: RecordRef, OutstandingQuantity: Decimal, LineNo: Integer)

Parameters

Name Type Description
VATRateChangeLogEntry Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Log Entry"
RecRef RecordRef
OutstandingQuantity Decimal
LineNo Integer

Events

OnAddNewPurchaseLineOnBeforeOldPurchaseLineModify

[IntegrationEvent(False,False)]
local procedure OnAddNewPurchaseLineOnBeforeOldPurchaseLineModify(var OldPurchaseLine: Record "Purchase Line", var NewPurchaseLine: Record "Purchase Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20])

Parameters

Name Type Description
OldPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NewPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]

OnAddNewSalesLineOnBeforeOldSalesLineModify

[IntegrationEvent(False,False)]
local procedure OnAddNewSalesLineOnBeforeOldSalesLineModify(var OldSalesLine: Record "Sales Line", var NewSalesLine: Record "Sales Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20])

Parameters

Name Type Description
OldSalesLine Table Microsoft.Sales.Document."Sales Line"
NewSalesLine Table Microsoft.Sales.Document."Sales Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]

OnAddNewServiceLineOnBeforeOldServiceLineModify

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. VAT Rate Change Conv.

[Obsolete(Replaced by same event in codeunit Serv. VAT Rate Change Conv.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnAddNewServiceLineOnBeforeOldServiceLineModify(var OldServiceLine: Record "Service Line", var NewServiceLine: Record "Service Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20])

Parameters

Name Type Description
OldServiceLine Table Microsoft.Service.Document."Service Line"
NewServiceLine Table Microsoft.Service.Document."Service Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]

OnAfterInitNewSalesLineFromSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitNewSalesLineFromSalesLine(var NewSalesLine: Record "Sales Line", SalesLine: Record "Sales Line")

Parameters

Name Type Description
NewSalesLine Table Microsoft.Sales.Document."Sales Line"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterUpdateTables

[IntegrationEvent(True,False)]
local procedure OnAfterUpdateTables(var VATRateChangeSetup: Record "VAT Rate Change Setup")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"

OnAfterConvert

[IntegrationEvent(False,False)]
local procedure OnAfterConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"

OnAfterLineInScope

[IntegrationEvent(True,False)]
local procedure OnAfterLineInScope(GenProdPostingGroup: Code[20], VATProdPostingGroup: Code[20], ConvertGenProdPostingGroup: Boolean, ConvertVATProdPostingGroup: Boolean, var Result: Boolean)

Parameters

Name Type Description
GenProdPostingGroup Code[20]
VATProdPostingGroup Code[20]
ConvertGenProdPostingGroup Boolean
ConvertVATProdPostingGroup Boolean
Result Boolean

OnAfterAreTablesSelected

[IntegrationEvent(False,False)]
local procedure OnAfterAreTablesSelected(var VATRateChangeSetup: Record "VAT Rate Change Setup", var Result: Boolean)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
Result Boolean

OnBeforeCheckPurchaseLinePartlyShipped

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPurchaseLinePartlyShipped(var PurchaseLine: Record "Purchase Line", var DescriptionTxt: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
DescriptionTxt Text[250]
IsHandled Boolean

OnBeforeCheckSalesLinePartlyShipped

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSalesLinePartlyShipped(var SalesLine: Record "Sales Line", var DescriptionTxt: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
DescriptionTxt Text[250]
IsHandled Boolean

OnBeforeConvert

[IntegrationEvent(False,False)]
local procedure OnBeforeConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"

OnBeforeFinishConvert

[IntegrationEvent(True,False)]
local procedure OnBeforeFinishConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup", var ProgressWindow: Dialog)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
ProgressWindow Dialog

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var IsHandled: Boolean)

Parameters

Name Type Description
IsHandled Boolean

OnBeforeUpdateGLAccount

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateGLAccount(var GLAccount: Record "G/L Account", var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean)

Parameters

Name Type Description
GLAccount Table Microsoft.Finance.GeneralLedger.Account."G/L Account"
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean

OnBeforeUpdateItem

[IntegrationEvent(True,False)]
local procedure OnBeforeUpdateItem(var Item: Record Item, var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean

OnBeforeUpdateResource

[IntegrationEvent(True,False)]
local procedure OnBeforeUpdateResource(var Resource: Record Resource, var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean)

Parameters

Name Type Description
Resource Table Microsoft.Projects.Resources.Resource.Resource
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean

OnBeforeUpdateSales

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSales(var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean, var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnBeforeUpdateTable

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateTable(TableID: Integer, ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TableID Integer
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean
IsHandled Boolean

OnBeforeUpdatePurchase

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchase(var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean, var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnBeforeUpdateServPriceAdjDetail

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. VAT Rate Change Conv.

[Obsolete(Replaced by same event in codeunit Serv. VAT Rate Change Conv.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateServPriceAdjDetail(var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean

OnBeforeUpdateService

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit Serv. VAT Rate Change Conv.

[Obsolete(Replaced by same event in codeunit Serv. VAT Rate Change Conv.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateService(var VATRateChangeSetup: Record "VAT Rate Change Setup", var IsHandled: Boolean)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
IsHandled Boolean

OnBeforeUpdateRec

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateRec(var RecRef: RecordRef, ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
RecRef RecordRef
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean
IsHandled Boolean

OnConvertOnBeforeStartConvert

[IntegrationEvent(False,False)]
local procedure OnConvertOnBeforeStartConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"

OnAfterAddNewSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterAddNewSalesLine(var OldSalesLine: Record "Sales Line", var NewSalesLine: Record "Sales Line")

Parameters

Name Type Description
OldSalesLine Table Microsoft.Sales.Document."Sales Line"
NewSalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterAddNewPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnAfterAddNewPurchaseLine(var OldPurchaseLine: Record "Purchase Line", var NewPurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
OldPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NewPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdatePurchaseOnAfterPurchaseHeaderSetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnAfterPurchaseHeaderSetFilters(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnUpdatePurchaseOnAfterPurchaseLineSetFilters

[IntegrationEvent(True,False)]
local procedure OnUpdatePurchaseOnAfterPurchaseLineSetFilters(var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnUpdateRecOnBeforeRecRefModify

[IntegrationEvent(False,False)]
local procedure OnUpdateRecOnBeforeRecRefModify(var RecRef: RecordRef, GenProdPostingGroupConverted: Boolean, VATProdPostingGroupConverted: Boolean)

Parameters

Name Type Description
RecRef RecordRef
GenProdPostingGroupConverted Boolean
VATProdPostingGroupConverted Boolean

OnUpdateRecOnAfterRecRefModify

[IntegrationEvent(False,False)]
local procedure OnUpdateRecOnAfterRecRefModify(var RecRef: RecordRef, GenProdPostingGroupConverted: Boolean, VATProdPostingGroupConverted: Boolean)

Parameters

Name Type Description
RecRef RecordRef
GenProdPostingGroupConverted Boolean
VATProdPostingGroupConverted Boolean

OnUpdateSalesOnAfterSalesHeaderSetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnAfterSalesHeaderSetFilters(VATRateChangeSetup: Record "VAT Rate Change Setup", var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnUpdateSalesOnAfterSalesLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnAfterSalesLineSetFilters(VATRateChangeSetup: Record "VAT Rate Change Setup", SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnUpdateSalesOnAfterModifySalesLine

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnAfterModifySalesLine(var SalesLine: Record "Sales Line", IsModified: Boolean, VATRateChangeSetup: Record "VAT Rate Change Setup", SalesHeader: Record "Sales Header", SalesLineOld: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsModified Boolean
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLineOld Table Microsoft.Sales.Document."Sales Line"

OnUpdateSalesOnAfterUpdateSalesLines

[IntegrationEvent(True,False)]
local procedure OnUpdateSalesOnAfterUpdateSalesLines(VATRateChangeSetup: Record "VAT Rate Change Setup", var SalesHeader: Record "Sales Header", ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean

OnUpdatePurchaseOnAfterResetPurchaseHeaderStatus

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnAfterResetPurchaseHeaderStatus(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnUpdatePurchaseOnAfterCalcShouldProcessLine

[IntegrationEvent(True,False)]
local procedure OnUpdatePurchaseOnAfterCalcShouldProcessLine(var PurchaseLine: Record "Purchase Line", var ShouldProcessLine: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ShouldProcessLine Boolean

OnUpdateSalesOnAfterResetSalesHeaderStatus

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnAfterResetSalesHeaderStatus(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnUpdateSalesOnBeforeModifySalesLine

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnBeforeModifySalesLine(var SalesLine: Record "Sales Line", var IsModified: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsModified Boolean

OnUpdatePurchaseOnBeforeModifyPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnBeforeModifyPurchaseLine(var PurchaseLine: Record "Purchase Line", var IsModified: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsModified Boolean

OnAddNewPurchaseLineOnAfterInsertNewLine

[IntegrationEvent(False,False)]
local procedure OnAddNewPurchaseLineOnAfterInsertNewLine(var PurchaseLine: Record "Purchase Line", var NewPurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NewPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnAddNewPurchaseLineOnBeforeInsertNewLine

[IntegrationEvent(False,False)]
local procedure OnAddNewPurchaseLineOnBeforeInsertNewLine(var PurchaseLine: Record "Purchase Line", var NewPurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NewPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnAddNewSalesLineOnAfterInsertNewLine

[IntegrationEvent(False,False)]
local procedure OnAddNewSalesLineOnAfterInsertNewLine(var SalesLine: Record "Sales Line", var NewSalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
NewSalesLine Table Microsoft.Sales.Document."Sales Line"

OnUpdateSalesOnBeforeChangeSalesLine

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnBeforeChangeSalesLine(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnUpdatePurchaseOnBeforeChangePurchaseLine

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnBeforeChangePurchaseLine(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdatePurchaseBlanketOrderOnBeforeChangeBlanketOrder

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseBlanketOrderOnBeforeChangeBlanketOrder(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnUpdateSalesBlanketOrderOnBeforeChangeBlanketOrder

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesBlanketOrderOnBeforeChangeBlanketOrder(var SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnUpdatePurchaseOnAfterOpenPurchaseHeader

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnAfterOpenPurchaseHeader(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnUpdateSalesOnAfterOpenSalesHeader

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesOnAfterOpenSalesHeader(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnUpdatePurchaseOnAfterUpdatePurchaseLines

[IntegrationEvent(True,False)]
local procedure OnUpdatePurchaseOnAfterUpdatePurchaseLines(VATRateChangeSetup: Record "VAT Rate Change Setup", var PurchaseHeader: Record "Purchase Header", ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean)

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean

OnTestVATPostingSetupOnAfterVATPostingSetupOldSetFilters

[IntegrationEvent(False,False)]
local procedure OnTestVATPostingSetupOnAfterVATPostingSetupOldSetFilters(var VATPostingSetupOld: Record "VAT Posting Setup", VATRateChangeSetup: Record "VAT Rate Change Setup")

Parameters

Name Type Description
VATPostingSetupOld Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"

OnUpdateRecOnBeforeValidateGenProdPostingGroup

[IntegrationEvent(True,False)]
local procedure OnUpdateRecOnBeforeValidateGenProdPostingGroup(var RecRef: RecordRef, FldRef: FieldRef, VatRateChangeConversion: Record "VAT Rate Change Conversion", var IsHandled: Boolean)

Parameters

Name Type Description
RecRef RecordRef
FldRef FieldRef
VatRateChangeConversion Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Conversion"
IsHandled Boolean

OnAddNewPurchaseLineOnAfterNewPurchaseLineInit

[IntegrationEvent(False,False)]
local procedure OnAddNewPurchaseLineOnAfterNewPurchaseLineInit(var OldPurchaseLine: Record "Purchase Line", var NewPurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
OldPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
NewPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdatePurchaseOnAfterPurchaseLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchaseOnAfterPurchaseLineModify(VATRateChangeSetup: Record "VAT Rate Change Setup", PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", PurchaseLineOld: Record "Purchase Line")

Parameters

Name Type Description
VATRateChangeSetup Table Microsoft.Finance.VAT.RateChange."VAT Rate Change Setup"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseLineOld Table Microsoft.Purchases.Document."Purchase Line"

OnIncludePurchLineOnTypeElse

[IntegrationEvent(True,False)]
local procedure OnIncludePurchLineOnTypeElse(Type: Enum "Purchase Line Type", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Type Enum Microsoft.Purchases.Document."Purchase Line Type"
Result Boolean
IsHandled Boolean

OnIncludeSalesLineOnTypeElse

[IntegrationEvent(True,False)]
local procedure OnIncludeSalesLineOnTypeElse(Type: Enum "Sales Line Type", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Type Enum Microsoft.Sales.Document."Sales Line Type"
Result Boolean
IsHandled Boolean

OnCanUpdatePurchaseOnAfterLoopIteration

[IntegrationEvent(False,False)]
local procedure OnCanUpdatePurchaseOnAfterLoopIteration(var DescriptionTxt: Text[250], PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
DescriptionTxt Text[250]
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnCanUpdatePurchaseOnAfterPurchaseLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCanUpdatePurchaseOnAfterPurchaseLineSetFilters(var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnCanUpdateSalesOnAfterLoopIteration

[IntegrationEvent(False,False)]
local procedure OnCanUpdateSalesOnAfterLoopIteration(var DescriptionTxt: Text[250], SalesLine: Record "Sales Line")

Parameters

Name Type Description
DescriptionTxt Text[250]
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnCanUpdateSalesOnAfterSalesLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnCanUpdateSalesOnAfterSalesLineSetFilters(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeDoUpdatePurchaseLine

[IntegrationEvent(False,False)]
local procedure OnBeforeDoUpdatePurchaseLine(PurchaseLine: Record "Purchase Line", var IsHandled: Boolean, var CanUpdate: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean
CanUpdate Boolean

OnBeforeDoUpdateSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeDoUpdateSalesLine(SalesLine: Record "Sales Line", var IsHandled: Boolean, var CanUpdate: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean
CanUpdate Boolean

OnBeforeCanUpdateSales

[IntegrationEvent(False,False)]
local procedure OnBeforeCanUpdateSales(SalesHeader: Record "Sales Header", ConvertVATProdPostingGroup: Boolean, ConvertGenProdPostingGroup: Boolean, var IsHandled: Boolean, var CanUpdate: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
ConvertVATProdPostingGroup Boolean
ConvertGenProdPostingGroup Boolean
IsHandled Boolean
CanUpdate Boolean

OnBeforeCanUpdatePurchase

[IntegrationEvent(False,False)]
local procedure OnBeforeCanUpdatePurchase(PurchaseHeader: Record "Purchase Header", ConvertGenProdPostingGroup: Boolean, ConvertVATProdPostingGroup: Boolean, var IsHandled: Boolean, var CanUpdate: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
ConvertGenProdPostingGroup Boolean
ConvertVATProdPostingGroup Boolean
IsHandled Boolean
CanUpdate Boolean

OnBeforeAddNewSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeAddNewSalesLine(SalesLine: Record "Sales Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]
IsHandled Boolean

OnBeforeAddNewPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnBeforeAddNewPurchaseLine(PurchaseLine: Record "Purchase Line", VATProdPostingGroup: Code[20], GenProdPostingGroup: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
VATProdPostingGroup Code[20]
GenProdPostingGroup Code[20]
IsHandled Boolean

See also