Skip to content

KVSADVDepositMgtPurchase#

Summary: This Codeunit handles all purchase-specific logic to create and handle Security Deposits

Procedures#

UpsertDocumentLineForDeposit(Record Purchase Header, Integer, Integer, Code[20], Decimal, Record Purchase Line, Integer, Boolean) :#

procedure UpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; var CreatedDocumentLine: Record "Purchase Line"; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean): 

Events#

OnAfterSaveDepositsDocumentHeader(Record KVSADVAdvancePlanDeposit, Record Purchase Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsDocumentHeader(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; DocumentHeader: Record "Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAfterSaveDepositsDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterSaveDepositsDocumentHeader(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; DocumentHeader: Record "Purchase Header")
begin
end;

OnAddDocumentLineForDepositBeforeModify(Record Purchase Header, Record KVSADVSecurityDeposit, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnAddDocumentLineForDepositBeforeModify(DocumentHeader: Record "Purchase Header"; SecurityDeposit: Record "KVSADVSecurityDeposit"; var DocumentLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAddDocumentLineForDepositBeforeModify', '', false, false)]
local procedure DoSomethingOnAddDocumentLineForDepositBeforeModify(DocumentHeader: Record "Purchase Header"; SecurityDeposit: Record "KVSADVSecurityDeposit"; var DocumentLine: Record "Purchase Line")
begin
end;

OnAfterInsertDepositHeaderBeforeModify(Record Purchase Header, Record Purch. Inv. Header, Record Purch. Inv. Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterInsertDepositHeaderBeforeModify(var DepositInvHeader: Record "Purchase Header"; PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAfterInsertDepositHeaderBeforeModify', '', false, false)]
local procedure DoSomethingOnAfterInsertDepositHeaderBeforeModify(var DepositInvHeader: Record "Purchase Header"; PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line")
begin
end;

OnAfterCreateDepositInvoiceLineBeforeInsert(Record Purch. Inv. Header, Record Purch. Inv. Line, Record Purchase Header, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCreateDepositInvoiceLineBeforeInsert(PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"; var DepositInvHeader: Record "Purchase Header"; DepositInvLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAfterCreateDepositInvoiceLineBeforeInsert', '', false, false)]
local procedure DoSomethingOnAfterCreateDepositInvoiceLineBeforeInsert(PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"; var DepositInvHeader: Record "Purchase Header"; DepositInvLine: Record "Purchase Line")
begin
end;

OnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader(Record Purchase Header, Record KVSADVAdvancePlanDeposit, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader(DocumentHeader: Record "Purchase Header"; var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; var DocumentLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterSetFilterForPrevExistingDepositLinesOnSaveDepositsDocumentHeader(DocumentHeader: Record "Purchase Header"; var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; var DocumentLine: Record "Purchase Line")
begin
end;

OnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit(Record Purchase Header, Integer, Integer, Code[20], Decimal, Integer, Boolean, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean; var DocumentLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit', '', false, false)]
local procedure DoSomethingOnAfterSetFilterForPrevExistingDepositLineOnUpsertDocumentLineForDeposit(DocumentHeader: Record "Purchase Header"; AdvanceChainNo: Integer; AdvancePlanEntryNo: Integer; DepositCode: Code[20]; DepositAmount: Decimal; ForceStartFromLineNo: Integer; AddAmountToExistingLine: Boolean; var DocumentLine: Record "Purchase Line")
begin
end;

OnBeforeInsertDepositInvoiceHeader(Record Purch. Inv. Header, Record Purch. Inv. Line, Record KVSADVSecurityDeposit, Record Purchase Header) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDepositInvoiceHeader(PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"; Deposit: Record "KVSADVSecurityDeposit"; var DepositInvHeader: Record "Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtPurchase", 'OnBeforeInsertDepositInvoiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeInsertDepositInvoiceHeader(PostedInvHeader: Record "Purch. Inv. Header"; PostedInvLine: Record "Purch. Inv. Line"; Deposit: Record "KVSADVSecurityDeposit"; var DepositInvHeader: Record "Purchase Header")
begin
end;