KVSPSAREQuickEditPostPurchInv
Procedures
SetRecordToEdit(Record Purch. Inv. Header) :
Summary: Sets the Purchase Invoice to show in the page
procedure SetRecordToEdit(var PurchInvHeader: Record "Purch. Inv. Header"):
Parameters:
PurchInvHeader: The Purchase Invoice to show
Events
KVSPSAREOnAfterCalcTotalAmountDepositAndApportionment(Record Purch. Inv. Header, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal, Decimal) :
Summary: This event is triggered after the amounts for the currently edited purchase document have been calculated. Use this event to modify any of these values.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterCalcTotalAmountDepositAndApportionment(PurchInvHeader: Record "Purch. Inv. Header"; var InvoiceAmountActual: Decimal; var InvoiceAmountShortage: Decimal; var CurrAmountDeposits: Decimal; var CumAmountDeposits: Decimal; var PaidAmountDeposits: Decimal; var CurrAmountDefects: Decimal; var CumAmountDefects: Decimal; var PaidAmountDefects: Decimal; var CurrAmountApportionments: Decimal; var CumAmountApportionments: Decimal; var PaidAmountApportionments: Decimal; var CurrAmountInvoice: Decimal; var CumAmountInvoice: Decimal; var PaidAmountInvoice: Decimal):
Parameters:
PurchInvHeader: The Purchase Document currently being enabledInvoiceAmountActual: The calculated actual invoice amountInvoiceAmountShortage: The calculated invoice shortage amountCurrAmountDeposits: The calculated current deposit amountCumAmountDeposits: The calculated cumulated deposit amountPaidAmountDeposits: The calculated already paid deposit amountCurrAmountDefects: The calculated current defect amountCumAmountDefects: The calculated cumulated defect amountPaidAmountDefects: The calculated already paid defect amountCurrAmountApportionments: The calculated current apportionment amountCumAmountApportionments: The calculated cumulated apportionment amountPaidAmountApportionments: The calculated already paid apportionment amountCurrAmountInvoice: The calculated current invoice amountCumAmountInvoice: The calculated cumulated invoice amountPaidAmountInvoice: The calculated already paid invoice amount
KVSPSAREOnAfterGetPreviouslyPostedAmounts(Record Purch. Inv. Header, Integer, Enum KVSPSAREAdvanceLineType, Boolean, Record Purch. Inv. Header, Decimal) :
Summary: This event is triggered after the previously posted amounts for various types have been calculated. Use this event to modify the calculated amounts.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterGetPreviouslyPostedAmounts(PurchInvHeader: Record "Purch. Inv. Header"; AdvanceChainNo: Integer; CalculationType: Enum "KVSPSAREAdvanceLineType"; FilterForDefects: Boolean; var PrevPostedPurchInvHeader: Record "Purch. Inv. Header"; var Result: Decimal):
Parameters:
PurchInvHeader: The Purchase Document being editedAdvanceChainNo: The Advance Chain related to the Purchase DocumentCalculationType: The type of data which is currently calculatedFilterForDefects: Specifies whether defects need to be consideredPrevPostedPurchInvHeader: The filtered list of all Purchase Invoices relevant for the calculationResult: The calculated Amount
KVSPSAREOnAfterSetRecordToEdit(Record Purch. Inv. Header) :
Summary: This event is triggered after the record to edit has been set for this page. Use this event to store additional data.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetRecordToEdit(var PurchInvHeader: Record "Purch. Inv. Header"):
Parameters:
PurchInvHeader: The Purchase Document to edit
KVSPSAREOnBeforeCalcDocumentTypeCaption(Record Purch. Inv. Header, Text) :
Summary: This event is triggered after the caption shown at the top of the page has been calculated. Use this event to set a diferent caption
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeCalcDocumentTypeCaption(PurchInvHeader: Record "Purch. Inv. Header"; var Caption: Text):
Parameters:
PurchInvHeader: The Purchase Document being editedCaption: The caption to show at the top of the page
KVSPSAREOnBeforeFillProjectRelatedInformation(Record Purch. Inv. Header, List, List, Boolean) :
KVSPSAREOnBeforeGetProjectRelatedInformation(Record Purch. Inv. Header, Boolean) :
Summary: This event is triggered before the project information related to the purchase header is retrieved on the card. Use this event to suppress the retrieval and visibility of project related information.
Parameters:
PurchInvHeader: The Purchase Document being editedIsHandled: When set to true, the retrieval of project related information is skipped
KVSPSAREOnBeforeShowProjectRelatedInformation(Record Purch. Inv. Header, List, List, Option, Boolean, Boolean) :
Protected Variables
GlobalPrimaryInvoiceLine
Type: Record Purch. Inv. Line
GlobalCommentRequired
Type: Boolean
GlobalIsAdvanceInvoice
Type: Boolean
GlobalShowPreviousPayments
Type: Boolean
GlobalOrderNo
Type: Code[20]
GlobalSingleJobNo
Type: Code[20]
GlobalSingleWorkPackageNo
Type: Code[20]
GlobalCumAmountApportionments
Type: Decimal
GlobalCumAmountDefects
Type: Decimal
GlobalCumAmountDeposits
Type: Decimal
GlobalCumAmountInvoice
Type: Decimal
GlobalCurrAmountApportionments
Type: Decimal
GlobalCurrAmountDefects
Type: Decimal
GlobalCurrAmountDeposits
Type: Decimal
GlobalCurrAmountInvoice
Type: Decimal
GlobalPaidAmountApportionments
Type: Decimal
GlobalPaidAmountDefects
Type: Decimal
GlobalPaidAmountDeposits
Type: Decimal
GlobalPaidAmountInvoice
Type: Decimal
GlobalCumulatedInvoiceAmount
Type: Decimal
GlobalFinalReduction
Type: Decimal
GlobalInvoiceAmountActual
Type: Decimal
GlobalInvoiceAmountShortage
Type: Decimal
GlobalOrderAmount
Type: Decimal
GlobalPaymentCorrection
Type: Decimal
GlobalPaymentDiscountAmount
Type: Decimal
GlobalPaymentDiscountAmountInclVAT
Type: Decimal
GlobalPaymentDiscountPercentage
Type: Decimal
GlobalPreviousPayments
Type: Decimal
GlobalPreviousPaymentsAfterFinalReduction
Type: Decimal
GlobalGLSGuarNecessaryPercentage
Type: Decimal
GlobalImportedAmountExclVAT
Type: Decimal
GlobalImportedAmountInclVAT
Type: Decimal
GlobalVESGuarNecessaryPercentage
Type: Decimal
GlobalOriginalFinalReduction
Type: Decimal
GlobalOriginalPaymentDiscountPercentage
Type: Decimal
GlobalVATAmount
Type: Decimal
GlobalVATAmountBase
Type: Decimal
GlobalJobCount
Type: Integer
GlobalWorkPackageCount
Type: Integer
GlobalSingleJobDescription
Type: Text
GlobalSingleWorkPackageDescription
Type: Text