KVSPSAREApportionmentMgt#
Procedures#
CalcApportionmentBufferForPurchaseDocument(Record Purchase Header, Decimal, Record KVSPSAREAssignApportBuffer, Boolean) :#
procedure CalcApportionmentBufferForPurchaseDocument(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; RetrieveApportionmentPercentageFromPurchLineAmounts: Boolean):
CalcPurchaseDocumentTotalBaseAmountForApportionments(Record Purchase Header) : Decimal#
procedure CalcPurchaseDocumentTotalBaseAmountForApportionments(PurchaseHeader: Record "Purchase Header"): Decimal
CalcPurchaseLineBaseAmountForApportionments(Record Purchase Line) : Decimal#
procedure CalcPurchaseLineBaseAmountForApportionments(PurchaseLine: Record "Purchase Line"): Decimal
UpsertPurchaseDocumentLinesByApportionmentBuffer(Record Purchase Header, Decimal, Record KVSPSAREAssignApportBuffer) :#
procedure UpsertPurchaseDocumentLinesByApportionmentBuffer(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"):
Events#
KVSPSAREOnAddApportionAmountToCumEntryAdvanceDocCreationPurchAfterCalcApportionmentAmount(Record Vendor Ledger Entry, Record CV Ledger Entry Buffer, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAddApportionAmountToCumEntryAdvanceDocCreationPurchAfterCalcApportionmentAmount(VendorLedgerEntry: Record "Vendor Ledger Entry"; var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; var ApportionmentAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAddApportionAmountToCumEntryAdvanceDocCreationPurchAfterCalcApportionmentAmount', '', false, false)]
local procedure DoSomethingKVSPSAREOnAddApportionAmountToCumEntryAdvanceDocCreationPurchAfterCalcApportionmentAmount(VendorLedgerEntry: Record "Vendor Ledger Entry"; var TempCVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; var ApportionmentAmount: Decimal)
begin
end;
KVSPSAREOnAddOrUpdateApportionmentsForPurchaseLineOnAfterSetFilters(Record Purchase Header, Record Purchase Line, Record KVSPSAREAssignApportBuffer, Record Purchase Line) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAddOrUpdateApportionmentsForPurchaseLineOnAfterSetFilters(PurchaseHeader: Record "Purchase Header"; ExistingPurchaseLine: Record "Purchase Line"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer" temporary; var ApportionmentPurchaseLine: Record "Purchase Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAddOrUpdateApportionmentsForPurchaseLineOnAfterSetFilters', '', false, false)]
local procedure DoSomethingKVSPSAREOnAddOrUpdateApportionmentsForPurchaseLineOnAfterSetFilters(PurchaseHeader: Record "Purchase Header"; ExistingPurchaseLine: Record "Purchase Line"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer" temporary; var ApportionmentPurchaseLine: Record "Purchase Line")
begin
end;
KVSPSAREOnAddPurchaseLineForApportionmentBeforeInsert(Record Purchase Header, Record KVSPSAREApportionment, Record KVSPSAREAssignApportBuffer, Decimal, Record Purchase Line) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAddPurchaseLineForApportionmentBeforeInsert(var PurchaseHeader: Record "Purchase Header"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; var PurchaseLine: Record "Purchase Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAddPurchaseLineForApportionmentBeforeInsert', '', false, false)]
local procedure DoSomethingKVSPSAREOnAddPurchaseLineForApportionmentBeforeInsert(var PurchaseHeader: Record "Purchase Header"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; var PurchaseLine: Record "Purchase Line")
begin
end;
KVSPSAREOnAfterCalcPurchaseDcoumentTotalBaseAmountForApportionments(Record Purchase Header, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterCalcPurchaseDcoumentTotalBaseAmountForApportionments(PurchaseHeader: Record "Purchase Header"; var BaseAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAfterCalcPurchaseDcoumentTotalBaseAmountForApportionments', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterCalcPurchaseDcoumentTotalBaseAmountForApportionments(PurchaseHeader: Record "Purchase Header"; var BaseAmount: Decimal)
begin
end;
KVSPSAREOnAfterFillAssignApportionmentBuffer(Record KVSADVAdvanceChain, Record Purchase Header, Record KVSPSAREAssignApportBuffer) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterFillAssignApportionmentBuffer(KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var PurchaseHeader: Record "Purchase Header"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAfterFillAssignApportionmentBuffer', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterFillAssignApportionmentBuffer(KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var PurchaseHeader: Record "Purchase Header"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer")
begin
end;
KVSPSAREOnAfterShowAssignApportionmentsForPurchaseDocument(Record Purchase Header) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterShowAssignApportionmentsForPurchaseDocument(PurchaseHeader: Record "Purchase Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAfterShowAssignApportionmentsForPurchaseDocument', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterShowAssignApportionmentsForPurchaseDocument(PurchaseHeader: Record "Purchase Header")
begin
end;
KVSPSAREOnAfterUpdatePurchaseLineForApportionmentBeforeModify(Record Purchase Header, Record Purchase Line, Record KVSPSAREApportionment, Record KVSPSAREAssignApportBuffer, Decimal, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterUpdatePurchaseLineForApportionmentBeforeModify(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; CurrBaseAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAfterUpdatePurchaseLineForApportionmentBeforeModify', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterUpdatePurchaseLineForApportionmentBeforeModify(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; CurrBaseAmount: Decimal)
begin
end;
KVSPSAREOnAfterUpsertPurchaseDocumentLinesByApportionmentBuffer(Record Purchase Header, Decimal, Record KVSPSAREAssignApportBuffer) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterUpsertPurchaseDocumentLinesByApportionmentBuffer(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnAfterUpsertPurchaseDocumentLinesByApportionmentBuffer', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterUpsertPurchaseDocumentLinesByApportionmentBuffer(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer")
begin
end;
KVSPSAREOnBeforeCalcPurchaseLineBaseAmountForApportionments(Record Purchase Line, Decimal, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeCalcPurchaseLineBaseAmountForApportionments(PurchaseLine: Record "Purchase Line"; var Result: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeCalcPurchaseLineBaseAmountForApportionments', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeCalcPurchaseLineBaseAmountForApportionments(PurchaseLine: Record "Purchase Line"; var Result: Decimal; var IsHandled: Boolean)
begin
end;
KVSPSAREOnBeforeConfirmUpdateApportionmentLinesForPurchDoc(Record Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeConfirmUpdateApportionmentLinesForPurchDoc(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeConfirmUpdateApportionmentLinesForPurchDoc', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeConfirmUpdateApportionmentLinesForPurchDoc(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
KVSPSAREOnBeforeInsertApportionmentBufferForPurchaseLine(Record KVSPSAREApportionment, Record Purchase Header, Record Purchase Line, Decimal, Record KVSPSAREAssignApportBuffer) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeInsertApportionmentBufferForPurchaseLine(Apportionment: Record "KVSPSAREApportionment"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeInsertApportionmentBufferForPurchaseLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeInsertApportionmentBufferForPurchaseLine(Apportionment: Record "KVSPSAREApportionment"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer")
begin
end;
KVSPSAREOnBeforeShowAssignApportionmentsForPurchaseDocument(Record Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeShowAssignApportionmentsForPurchaseDocument(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeShowAssignApportionmentsForPurchaseDocument', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeShowAssignApportionmentsForPurchaseDocument(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
KVSPSAREOnBeforeUpdatePurchaseLineForApportionment(Record Purchase Header, Record Purchase Line, Record KVSPSAREApportionment, Record KVSPSAREAssignApportBuffer, Decimal, Decimal) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeUpdatePurchaseLineForApportionment(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; CurrBaseAmount: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeUpdatePurchaseLineForApportionment', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeUpdatePurchaseLineForApportionment(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; Apportionment: Record "KVSPSAREApportionment"; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; BaseAmount: Decimal; CurrBaseAmount: Decimal)
begin
end;
KVSPSAREOnBeforeUpsertPurchaseDocumentLinesByApportionmentBuffer(Record Purchase Header, Decimal, Record KVSPSAREAssignApportBuffer, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeUpsertPurchaseDocumentLinesByApportionmentBuffer(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnBeforeUpsertPurchaseDocumentLinesByApportionmentBuffer', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeUpsertPurchaseDocumentLinesByApportionmentBuffer(PurchaseHeader: Record "Purchase Header"; BaseAmount: Decimal; var AssignApportBuffer: Record "KVSPSAREAssignApportBuffer"; var IsHandled: Boolean)
begin
end;
KVSPSAREOnCalculateCreateNewApportionmentLine(Record Purchase Line, Record Purchase Line, Record Purchase Header, Boolean) :#
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnCalculateCreateNewApportionmentLine(CurrentPurchaseLine: Record "Purchase Line"; PreviousPurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var CreateNewApportionmentLine: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREApportionmentMgt", 'KVSPSAREOnCalculateCreateNewApportionmentLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnCalculateCreateNewApportionmentLine(CurrentPurchaseLine: Record "Purchase Line"; PreviousPurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var CreateNewApportionmentLine: Boolean)
begin
end;