Table of Contents

KVSADVDepositMgtBase

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

Procedures

GetBaseInvoiceAmountForDeposits(Variant, Integer) : Decimal

procedure GetBaseInvoiceAmountForDeposits(SourceRecord: Variant; SourceTableID: Integer): Decimal

BufferAvailableDepositRecords(Record KVSADVAdvancePlanDeposit, Variant, Integer, Decimal, Enum KVSADVSourceAccountType, Boolean) :

procedure BufferAvailableDepositRecords(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer; InvoiceAmount: Decimal; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean): 

SaveDeposits(Record KVSADVAdvancePlanDeposit, Variant, Integer) :

procedure SaveDeposits(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer): 

Events

OnGetGetAlreadyAssignedAmountForSecurityDepositElse(Code[20], Variant, Integer, Enum KVSADVSourceAccountType, Boolean, Decimal, Decimal, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnGetGetAlreadyAssignedAmountForSecurityDepositElse(DepositCode: Code[20]; SourceRecord: Variant; SourceTableID: Integer; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var Amount: Decimal; var PercentageOfAmount: Decimal; var FixedAmount: Boolean): 

OnBeforeBufferAvailableDepositRecords(Record KVSADVAdvancePlanDeposit, Variant, Integer, Decimal, Enum KVSADVSourceAccountType, Boolean, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnBeforeBufferAvailableDepositRecords(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer; InvoiceAmount: Decimal; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var IsHandled: Boolean): 

OnBufferAvailableDepositRecordsAfterSetFilterAvailableSecurityDeposits(Variant, Integer, Decimal, Enum KVSADVSourceAccountType, Boolean, Record KVSADVSecurityDeposit) :

[IntegrationEvent(false, false)]
local procedure OnBufferAvailableDepositRecordsAfterSetFilterAvailableSecurityDeposits(SourceRecord: Variant; SourceTableID: Integer; InvoiceAmount: Decimal; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var SecurityDeposit: Record "KVSADVSecurityDeposit"): 

OnSaveDepositsElse(Record KVSADVAdvancePlanDeposit, Variant, Integer) :

[IntegrationEvent(false, false)]
local procedure OnSaveDepositsElse(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer): 

OnAfterSaveDepositsAdvancePlanningEntry(Record KVSADVAdvancePlanDeposit, Record KVSADVAdvance Planning Entry) :

[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsAdvancePlanningEntry(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): 

OnGetBaseInvoiceAmountForDepositsElse(Variant, Integer, Decimal) :

[IntegrationEvent(false, false)]
local procedure OnGetBaseInvoiceAmountForDepositsElse(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal): 

OnTransferDepositsFromTemplateToAdvancePlanLineBeforeInsertDeposit(Record KVSADVAdvancePlanDeposit, Record KVSADVAdvPlanTemplateDeposit, Record KVSADVAdvance Planning Entry, Decimal) :

[IntegrationEvent(false, false)]
local procedure OnTransferDepositsFromTemplateToAdvancePlanLineBeforeInsertDeposit(var AdvancePlanDeposit: Record "KVSADVAdvancePlanDeposit"; TemplateDeposit: Record "KVSADVAdvPlanTemplateDeposit"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; InvoiceAmount: Decimal): 

OnBeforeGetBaseInvoiceAmountForDeposits(Variant, Integer, Decimal, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnBeforeGetBaseInvoiceAmountForDeposits(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal; var IsHandled: Boolean): 

OnAfterSaveDepositsAdvancePlanTemplateLine(Record KVSADVAdvancePlanDeposit, Record KVSADVAdvPlanTemplateLine) :

[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsAdvancePlanTemplateLine(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvPlanTemplateLine: Record "KVSADVAdvPlanTemplateLine"):