KVSEDX Purchase Management#
Procedures#
CreatePurchOrderConf(Record KVSEDX Purchase Header, Boolean, Boolean) :#
procedure CreatePurchOrderConf(VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean):
CreatePurchInv(Record KVSEDX Purchase Header, Boolean, Boolean) : Boolean#
procedure CreatePurchInv(VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean): Boolean
CreateDirectPurchInv(Record KVSEDX Purchase Header, Boolean, Boolean, Integer) : Boolean#
procedure CreateDirectPurchInv(ParKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean; ErrorNoProcessingPar: Integer): Boolean
CreatePurchCrMemo(Record KVSEDX Purchase Header, Boolean, Boolean) : Boolean#
procedure CreatePurchCrMemo(VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; GUIAllowedPar: Boolean; OnlyCheckPar: Boolean): Boolean
Events#
OnBeforeCheckPurchaseConfirmation(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCheckPurchaseConfirmation(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCheckPurchaseConfirmation', '', false, false)]
local procedure DoSomethingOnBeforeCheckPurchaseConfirmation(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;
OnAfterCheckPurchaseConfirmation(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCheckPurchaseConfirmation(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCheckPurchaseConfirmation', '', false, false)]
local procedure DoSomethingOnAfterCheckPurchaseConfirmation(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;
OnAfterCheckDiffPurchaseOrderConfirmation(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCheckDiffPurchaseOrderConfirmation(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCheckDiffPurchaseOrderConfirmation', '', false, false)]
local procedure DoSomethingOnAfterCheckDiffPurchaseOrderConfirmation(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean)
begin
end;
OnAfterCreatePurchaseConfirmation(Record KVSEDX Purchase Header, Record Purchase Header) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCreatePurchaseConfirmation(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCreatePurchaseConfirmation', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseConfirmation(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header")
begin
end;
OnBeforeCreatePurchaseInvoice(Record KVSEDX Purchase Header, Record Purchase Header, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCreatePurchaseInvoice(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header"; var UsePurchaseOrderVar: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCreatePurchaseInvoice', '', false, false)]
local procedure DoSomethingOnBeforeCreatePurchaseInvoice(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header"; var UsePurchaseOrderVar: Boolean)
begin
end;
OnAfterCreatePurchaseInvoice(Record KVSEDX Purchase Header, Record Purchase Header) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCreatePurchaseInvoice(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCreatePurchaseInvoice', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseInvoice(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header")
begin
end;
OnBeforeCheckPurchaseInvoiceV2(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCheckPurchaseInvoiceV2(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCheckPurchaseInvoiceV2', '', false, false)]
local procedure DoSomethingOnBeforeCheckPurchaseInvoiceV2(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;
OnAfterCheckPurchaseInvoiceV2(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCheckPurchaseInvoiceV2(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GUIAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCheckPurchaseInvoiceV2', '', false, false)]
local procedure DoSomethingOnAfterCheckPurchaseInvoiceV2(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GUIAllowed: Boolean; var Handled: Boolean)
begin
end;
OnAfterCheckDiffPurchaseInvoice(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCheckDiffPurchaseInvoice(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCheckDiffPurchaseInvoice', '', false, false)]
local procedure DoSomethingOnAfterCheckDiffPurchaseInvoice(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var VarDiffFoundProject: Boolean; ParGuiAllowed: Boolean; var VarHandled: Boolean)
begin
end;
OnAfterCreatePurchaseCrMemo(Record KVSEDX Purchase Header, Record Purchase Header) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCreatePurchaseCrMemo(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCreatePurchaseCrMemo', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseCrMemo(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; PurchHeaderPar: Record "Purchase Header")
begin
end;
OnBeforeCheckPurchaseCrMemo(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCheckPurchaseCrMemo(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCheckPurchaseCrMemo', '', false, false)]
local procedure DoSomethingOnBeforeCheckPurchaseCrMemo(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;
OnAfterCheckPurchaseCrMemo(Record KVSEDX Purchase Header, Boolean, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnAfterCheckPurchaseCrMemo(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterCheckPurchaseCrMemo', '', false, false)]
local procedure DoSomethingOnAfterCheckPurchaseCrMemo(var KVSEDXPurchHeader: Record "KVSEDX Purchase Header"; var ErrorFoundProject: Boolean; GuiAllowed: Boolean; var Handled: Boolean)
begin
end;
OnBeforeCheckGLAccountResourceMapping(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCheckGLAccountResourceMapping(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; var EDXPurchLineVar: Record "KVSEDX Purchase Line"; var NoErrorVar: Boolean; var HandledVar: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCheckGLAccountResourceMapping', '', false, false)]
local procedure DoSomethingOnBeforeCheckGLAccountResourceMapping(EDXPurchHeaderPar: Record "KVSEDX Purchase Header"; var EDXPurchLineVar: Record "KVSEDX Purchase Line"; var NoErrorVar: Boolean; var HandledVar: Boolean)
begin
end;
OnBeforeCheckDiffPurchaseInvoiceLineSearchPOLine(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnBeforeCheckDiffPurchaseInvoiceLineSearchPOLine(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var VarHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeCheckDiffPurchaseInvoiceLineSearchPOLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckDiffPurchaseInvoiceLineSearchPOLine(var VarKVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var VarHandled: Boolean)
begin
end;
OnAfterSetFilterEDXPurchaseLineCreatePurchOrderConf(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean) :#
Summary: With this event additional filters can be added to the EDX purchase line before creating them.
[IntegrationEvent(true, false)]
local procedure OnAfterSetFilterEDXPurchaseLineCreatePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterSetFilterEDXPurchaseLineCreatePurchOrderConf', '', false, false)]
local procedure DoSomethingOnAfterSetFilterEDXPurchaseLineCreatePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean)
begin
end;
Parameters:
KVSEDXPurchaseHeader
: Current EDX Purchase HeaderKVSEDXPurchaseLine
: EDX Purchase Line with filtersHandled
: True if handled in event subscriber
OnAfterSetFilterEDXPurchaseLineCheckPurchOrderConf(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean) :#
Summary: With this event additional filters can be added to the EDX purchase line before checking them.
[IntegrationEvent(true, false)]
local procedure OnAfterSetFilterEDXPurchaseLineCheckPurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterSetFilterEDXPurchaseLineCheckPurchOrderConf', '', false, false)]
local procedure DoSomethingOnAfterSetFilterEDXPurchaseLineCheckPurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean)
begin
end;
Parameters:
KVSEDXPurchaseHeader
: Current EDX Purchase HeaderKVSEDXPurchaseLine
: EDX Purchase Line with filtersHandled
: True if handled in event subscriber
OnAfterSetFilterEDXPurchaseLineCheckDiffcePurchOrderConf(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean) :#
Summary: With this event additional filters can be added to the EDX purchase line before check their difference to purchase order lines them.
[IntegrationEvent(true, false)]
local procedure OnAfterSetFilterEDXPurchaseLineCheckDiffcePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterSetFilterEDXPurchaseLineCheckDiffcePurchOrderConf', '', false, false)]
local procedure DoSomethingOnAfterSetFilterEDXPurchaseLineCheckDiffcePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean)
begin
end;
Parameters:
KVSEDXPurchaseHeader
: Current EDX Purchase HeaderKVSEDXPurchaseLine
: EDX Purchase Line with filtersHandled
: True if handled in event subscriber
OnAfterSetFilterEDXPurchaseLineEqualLinesCheckDiffcePurchOrderConf(Record KVSEDX Purchase Header, Record KVSEDX Purchase Line, Boolean) :#
Summary: With this event additional filters can be added to the EDX purchase line before check their difference to purchase order lines them.
[IntegrationEvent(true, false)]
local procedure OnAfterSetFilterEDXPurchaseLineEqualLinesCheckDiffcePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAfterSetFilterEDXPurchaseLineEqualLinesCheckDiffcePurchOrderConf', '', false, false)]
local procedure DoSomethingOnAfterSetFilterEDXPurchaseLineEqualLinesCheckDiffcePurchOrderConf(KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var KVSEDXPurchaseLine: Record "KVSEDX Purchase Line"; var Handled: Boolean)
begin
end;
Parameters:
KVSEDXPurchaseHeader
: Current EDX Purchase HeaderKVSEDXPurchaseLine
: EDX Purchase Line with filtersHandled
: True if handled in event subscriber
OnBeforeDeletePurchaseLineCreatePurchOrderConf(Record Purchase Header, Record KVSEDX Purchase Header, Boolean) :#
Summary: The event can be used to control whether deletion should be prevented for order lines.
[IntegrationEvent(true, false)]
local procedure OnBeforeDeletePurchaseLineCreatePurchOrderConf(PurchaseHeader: Record "Purchase Header"; KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnBeforeDeletePurchaseLineCreatePurchOrderConf', '', false, false)]
local procedure DoSomethingOnBeforeDeletePurchaseLineCreatePurchOrderConf(PurchaseHeader: Record "Purchase Header"; KVSEDXPurchaseHeader: Record "KVSEDX Purchase Header"; var Handled: Boolean)
begin
end;
Parameters:
PurchaseHeader
: Current Purchase HeaderKVSEDXPurchaseHeader
: Current EDX Purchase HeaderHandled
: True if handled in event subscriber
OnAmountDifference(Record Purchase Line, Record KVSEDX Purchase Line, Boolean) :#
Summary: The event is fired when an amount difference is determined for an EDX purchase invoice line compared to the BC order line
[IntegrationEvent(true, false)]
local procedure OnAmountDifference(PurchaseLine: Record "Purchase Line"; EDXPurchaseLine: Record "KVSEDX Purchase Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSEDX Purchase Management", 'OnAmountDifference', '', false, false)]
local procedure DoSomethingOnAmountDifference(PurchaseLine: Record "Purchase Line"; EDXPurchaseLine: Record "KVSEDX Purchase Line"; var IsHandled: Boolean)
begin
end;
Parameters:
PurchaseLine
: Current Purchase LineEDXPurchaseLine
: Current EDX PurchaseLineIsHandled
: True if handled in event subscriber