Skip to content

KVSADVPurchOrderAdvanceChain#

Implements KVSADViAdvanceChainInterface, KVSADViAdvanceChainInterfaceClosInvoiceFromAdvPlan, KVSADViAdvanceChainCreatePlanningEntriesByLines, KVSADViApplyAdvancePlanTemplate, KVSADViAdvChNonDedVATPercent.

Procedures#

FillAdvanceChainFieldsFromSourceAccount(Record KVSADVAdvanceChain) :#

procedure FillAdvanceChainFieldsFromSourceAccount(var AdvanceChain: Record "KVSADVAdvanceChain"): 

FillAdvanceChainFieldsFromSourceDocument(Record KVSADVAdvanceChain) :#

procedure FillAdvanceChainFieldsFromSourceDocument(var AdvanceChain: Record "KVSADVAdvanceChain"): 

GetBaseAmount(Record KVSADVAdvanceChain) : Decimal#

procedure GetBaseAmount(AdvanceChain: Record "KVSADVAdvanceChain"): Decimal

GetNonDeductibleVATPercent(Record KVSADVAdvanceChain) : Decimal#

procedure GetNonDeductibleVATPercent(AdvanceChain: Record "KVSADVAdvanceChain"): Decimal

GetNonDeductibleVATPercentForSourceDocumentLine(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) : Decimal#

procedure GetNonDeductibleVATPercentForSourceDocumentLine(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): Decimal

IsJobNoEditableInAdvPlanningEntries(Record KVSADVAdvanceChain) : Boolean#

procedure IsJobNoEditableInAdvPlanningEntries(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

IsJobTaskNoEditableInAdvPlanningEntries(Record KVSADVAdvanceChain) : Boolean#

procedure IsJobTaskNoEditableInAdvPlanningEntries(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

GetFieldNoOfAdvanceChainEntryNo() : Integer#

procedure GetFieldNoOfAdvanceChainEntryNo(): Integer

CheckMandatoryFieldsForAdvanceChainSupportAreFilled(RecordRef) : Boolean#

procedure CheckMandatoryFieldsForAdvanceChainSupportAreFilled(RecRef: RecordRef): Boolean

ShowSourceDocument(Record KVSADVAdvanceChain) :#

procedure ShowSourceDocument(AdvanceChain: Record "KVSADVAdvanceChain"): 

ClearAdvanceChainNoInSourceDocument(Record KVSADVAdvanceChain) :#

procedure ClearAdvanceChainNoInSourceDocument(AdvanceChain: Record "KVSADVAdvanceChain"): 

IsClosingInvoiceCreationFromAdvancePlanSupported(Record KVSADVAdvanceChain) : Boolean#

procedure IsClosingInvoiceCreationFromAdvancePlanSupported(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

IsDocumentLineTypeAndNoForClosingInvoiceManuallyAssignableInAdvancePlan(Record KVSADVAdvanceChain) : Boolean#

procedure IsDocumentLineTypeAndNoForClosingInvoiceManuallyAssignableInAdvancePlan(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

CreateClosingInvoiceFromAdvancePlan(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) :#

procedure CreateClosingInvoiceFromAdvancePlan(AdvanceChain: Record "KVSADVAdvanceChain"; var SelectedAdvPlanningEntries: Record "KVSADVAdvance Planning Entry"): 

IsCreatePlanningEntriesByLinesSupported(Record KVSADVAdvanceChain) : Boolean#

procedure IsCreatePlanningEntriesByLinesSupported(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

CreatePlanningEntriesByLines(Record KVSADVAdvanceChain) :#

procedure CreatePlanningEntriesByLines(AdvanceChain: Record "KVSADVAdvanceChain"): 

CreatePlanningEntryByTemporaryDocumentLine(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Record Purchase Line, Integer) :#

procedure CreatePlanningEntryByTemporaryDocumentLine(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntryTemplate: Record "KVSADVAdvance Planning Entry"; var TempDocumentLines: Record "Purchase Line"; var NextEntryNo: Integer): 

GetBaseAmountForSourceDocumentLine(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) : Decimal#

procedure GetBaseAmountForSourceDocumentLine(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): Decimal

IsUseQuantityShareInAdvanceInvoiceSupported(Record KVSADVAdvanceChain) : Boolean#

procedure IsUseQuantityShareInAdvanceInvoiceSupported(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

GetBaseQuantityFromAdvancePlanningEntry(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry) : Decimal#

procedure GetBaseQuantityFromAdvancePlanningEntry(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"): Decimal

IsAdvancePlanTemplateSupported(Record KVSADVAdvanceChain) : Boolean#

procedure IsAdvancePlanTemplateSupported(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

IsAutomaticAdvancePlanTemplateApplicationSupported(Record KVSADVAdvanceChain) : Boolean#

procedure IsAutomaticAdvancePlanTemplateApplicationSupported(AdvanceChain: Record "KVSADVAdvanceChain"): Boolean

GetBaseDateForAdvancePlanTemplate(Record KVSADVAdvanceChain) : Date#

procedure GetBaseDateForAdvancePlanTemplate(AdvanceChain: Record "KVSADVAdvanceChain"): Date

Events#

OnAfterFillAdvanceChainFieldsFromSourceAccount(Record KVSADVAdvanceChain, Record Purchase Header, Record Vendor) :#

[IntegrationEvent(false, false)]
local procedure OnAfterFillAdvanceChainFieldsFromSourceAccount(var AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; CVAccount: Record "Vendor"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterFillAdvanceChainFieldsFromSourceAccount', '', false, false)]
local procedure DoSomethingOnAfterFillAdvanceChainFieldsFromSourceAccount(var AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; CVAccount: Record "Vendor")
begin
end;

OnAfterCalcBaseAmount(Record KVSADVAdvanceChain, Record Purchase Header, Record Purchase Line, Record Purchase Header Archive, Record Purchase Line Archive, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCalcBaseAmount(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; var TempDocumentLine: Record "Purchase Line" temporary; DocHeaderArchive: Record "Purchase Header Archive"; DocLineArchive: Record "Purchase Line Archive"; var Amount: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterCalcBaseAmount', '', false, false)]
local procedure DoSomethingOnAfterCalcBaseAmount(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; var TempDocumentLine: Record "Purchase Line" temporary; DocHeaderArchive: Record "Purchase Header Archive"; DocLineArchive: Record "Purchase Line Archive"; var Amount: Decimal)
begin
end;

OnAfterCheckMandatoryFieldsForAdvanceChainSupportAreFilled(Record Purchase Header, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCheckMandatoryFieldsForAdvanceChainSupportAreFilled(DocumentHeader: Record "Purchase Header"; var Result: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterCheckMandatoryFieldsForAdvanceChainSupportAreFilled', '', false, false)]
local procedure DoSomethingOnAfterCheckMandatoryFieldsForAdvanceChainSupportAreFilled(DocumentHeader: Record "Purchase Header"; var Result: Boolean)
begin
end;

OnAfterCreatePlanningEntryByTemporaryDocumentLine(Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Record Purchase Line, Record KVSADVAdvance Planning Entry) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePlanningEntryByTemporaryDocumentLine(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntryTemplate: Record "KVSADVAdvance Planning Entry"; var TempDocumentLines: Record "Purchase Line" temporary; var AdvancePlanningEntries: Record "KVSADVAdvance Planning Entry"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterCreatePlanningEntryByTemporaryDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterCreatePlanningEntryByTemporaryDocumentLine(AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntryTemplate: Record "KVSADVAdvance Planning Entry"; var TempDocumentLines: Record "Purchase Line" temporary; var AdvancePlanningEntries: Record "KVSADVAdvance Planning Entry")
begin
end;

OnGetGetBaseAmountAfterFilterTempDocumentLines(Record KVSADVAdvanceChain, Record Purchase Header, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnGetGetBaseAmountAfterFilterTempDocumentLines(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; var TempDocumentLine: Record "Purchase Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnGetGetBaseAmountAfterFilterTempDocumentLines', '', false, false)]
local procedure DoSomethingOnGetGetBaseAmountAfterFilterTempDocumentLines(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; var TempDocumentLine: Record "Purchase Line" temporary)
begin
end;

OnGetGetBaseAmountAfterFilterDocumentLineArchive(Record KVSADVAdvanceChain, Record Purchase Header Archive, Record Purchase Line Archive) :#

[IntegrationEvent(false, false)]
local procedure OnGetGetBaseAmountAfterFilterDocumentLineArchive(AdvanceChain: Record "KVSADVAdvanceChain"; DocHeaderArchive: Record "Purchase Header Archive"; var DocLineArchive: Record "Purchase Line Archive"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnGetGetBaseAmountAfterFilterDocumentLineArchive', '', false, false)]
local procedure DoSomethingOnGetGetBaseAmountAfterFilterDocumentLineArchive(AdvanceChain: Record "KVSADVAdvanceChain"; DocHeaderArchive: Record "Purchase Header Archive"; var DocLineArchive: Record "Purchase Line Archive")
begin
end;

OnAfterGetNonDeductibleVATPercent(Record KVSADVAdvanceChain, Record Purchase Header, Record Purchase Line, Record Purchase Header Archive, Record Purchase Line Archive, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterGetNonDeductibleVATPercent(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; TempDocumentLine: Record "Purchase Line" temporary; DocHeaderArchive: Record "Purchase Header Archive"; DocLineArchive: Record "Purchase Line Archive"; var NonDeductibleVATPercent: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterGetNonDeductibleVATPercent', '', false, false)]
local procedure DoSomethingOnAfterGetNonDeductibleVATPercent(AdvanceChain: Record "KVSADVAdvanceChain"; DocumentHeader: Record "Purchase Header"; TempDocumentLine: Record "Purchase Line" temporary; DocHeaderArchive: Record "Purchase Header Archive"; DocLineArchive: Record "Purchase Line Archive"; var NonDeductibleVATPercent: Decimal)
begin
end;

OnGetNonDeductibleVATPercentAfterFilterTempDocumentLines(Record KVSADVAdvanceChain, Record Purchase Header, Record Purchase Line) :#

[IntegrationEvent(false, false)]
local procedure OnGetNonDeductibleVATPercentAfterFilterTempDocumentLines(AdvanceChain: Record "KVSADVAdvanceChain"; PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnGetNonDeductibleVATPercentAfterFilterTempDocumentLines', '', false, false)]
local procedure DoSomethingOnGetNonDeductibleVATPercentAfterFilterTempDocumentLines(AdvanceChain: Record "KVSADVAdvanceChain"; PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary)
begin
end;

OnGetGetNonDeductibleVATPercenttAfterFilterDocumentLineArchive(Record KVSADVAdvanceChain, Record Purchase Header Archive, Record Purchase Line Archive) :#

[IntegrationEvent(false, false)]
local procedure OnGetGetNonDeductibleVATPercenttAfterFilterDocumentLineArchive(AdvanceChain: Record "KVSADVAdvanceChain"; PurchaseHeaderArchive: Record "Purchase Header Archive"; var PurchaseLineArchive: Record "Purchase Line Archive"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnGetGetNonDeductibleVATPercenttAfterFilterDocumentLineArchive', '', false, false)]
local procedure DoSomethingOnGetGetNonDeductibleVATPercenttAfterFilterDocumentLineArchive(AdvanceChain: Record "KVSADVAdvanceChain"; PurchaseHeaderArchive: Record "Purchase Header Archive"; var PurchaseLineArchive: Record "Purchase Line Archive")
begin
end;

OnAfterGetNonDeductibleVATPercentByDocumentLine(Record Purchase Line, Record KVSADVAdvanceChain, Record KVSADVAdvance Planning Entry, Decimal) :#

[IntegrationEvent(false, false)]
local procedure OnAfterGetNonDeductibleVATPercentByDocumentLine(DocumentLine: Record "Purchase Line"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var NonDeductibleVATPercent: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVPurchOrderAdvanceChain", 'OnAfterGetNonDeductibleVATPercentByDocumentLine', '', false, false)]
local procedure DoSomethingOnAfterGetNonDeductibleVATPercentByDocumentLine(DocumentLine: Record "Purchase Line"; AdvanceChain: Record "KVSADVAdvanceChain"; AdvancePlanningEntry: Record "KVSADVAdvance Planning Entry"; var NonDeductibleVATPercent: Decimal)
begin
end;