Skip to content

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnGetGetAlreadyAssignedAmountForSecurityDepositElse', '', false, false)]
local procedure DoSomethingOnGetGetAlreadyAssignedAmountForSecurityDepositElse(DepositCode: Code[20]; SourceRecord: Variant; SourceTableID: Integer; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var Amount: Decimal; var PercentageOfAmount: Decimal; var FixedAmount: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnBeforeBufferAvailableDepositRecords', '', false, false)]
local procedure DoSomethingOnBeforeBufferAvailableDepositRecords(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer; InvoiceAmount: Decimal; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var IsHandled: Boolean)
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnBufferAvailableDepositRecordsAfterSetFilterAvailableSecurityDeposits', '', false, false)]
local procedure DoSomethingOnBufferAvailableDepositRecordsAfterSetFilterAvailableSecurityDeposits(SourceRecord: Variant; SourceTableID: Integer; InvoiceAmount: Decimal; SourceAccountType: Enum "KVSADVSourceAccountType"; IsAdvanceInvoice: Boolean; var SecurityDeposit: Record "KVSADVSecurityDeposit")
begin
end;

OnSaveDepositsElse(Record KVSADVAdvancePlanDeposit, Variant, Integer) :#

[IntegrationEvent(false, false)]
local procedure OnSaveDepositsElse(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnSaveDepositsElse', '', false, false)]
local procedure DoSomethingOnSaveDepositsElse(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; SourceRecord: Variant; SourceTableID: Integer)
begin
end;

OnAfterSaveDepositsAdvancePlanningEntry(Record KVSADVAdvancePlanDeposit, Record KVSADVAdvance Planning Entry) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsAdvancePlanningEntry(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnAfterSaveDepositsAdvancePlanningEntry', '', false, false)]
local procedure DoSomethingOnAfterSaveDepositsAdvancePlanningEntry(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry")
begin
end;

OnGetBaseInvoiceAmountForDepositsElse(Variant, Integer, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnGetBaseInvoiceAmountForDepositsElse(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnGetBaseInvoiceAmountForDepositsElse', '', false, false)]
local procedure DoSomethingOnGetBaseInvoiceAmountForDepositsElse(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnTransferDepositsFromTemplateToAdvancePlanLineBeforeInsertDeposit', '', false, false)]
local procedure DoSomethingOnTransferDepositsFromTemplateToAdvancePlanLineBeforeInsertDeposit(var AdvancePlanDeposit: Record "KVSADVAdvancePlanDeposit"; TemplateDeposit: Record "KVSADVAdvPlanTemplateDeposit"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; InvoiceAmount: Decimal)
begin
end;

OnBeforeGetBaseInvoiceAmountForDeposits(Variant, Integer, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetBaseInvoiceAmountForDeposits(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnBeforeGetBaseInvoiceAmountForDeposits', '', false, false)]
local procedure DoSomethingOnBeforeGetBaseInvoiceAmountForDeposits(SourceRecord: Variant; SourceTableID: Integer; var InvoiceAmount: Decimal; var IsHandled: Boolean)
begin
end;

OnAfterSaveDepositsAdvancePlanTemplateLine(Record KVSADVAdvancePlanDeposit, Record KVSADVAdvPlanTemplateLine) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSaveDepositsAdvancePlanTemplateLine(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvPlanTemplateLine: Record "KVSADVAdvPlanTemplateLine"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVDepositMgtBase", 'OnAfterSaveDepositsAdvancePlanTemplateLine', '', false, false)]
local procedure DoSomethingOnAfterSaveDepositsAdvancePlanTemplateLine(var TempAdvanceDepositBuffer: Record "KVSADVAdvancePlanDeposit" temporary; AdvPlanTemplateLine: Record "KVSADVAdvPlanTemplateLine")
begin
end;