KVSPSAREDefectManagement
Procedures
UpdatePurchaseLinewithDefects(Notification) :
procedure UpdatePurchaseLinewithDefects(NotificationDefect: Notification):
Events
KVSPSAREOnAfterAddDefectsOnPurchaseInvoice(Record Purchase Header, Record Purchase Line) :
Summary: Use this event to add new things to the function afterwards or to edit it
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAddDefectsOnPurchaseInvoice(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"):
Parameters:
PurchaseHeader: The current purchase headerPurchaseLine: The current purchase line.
KVSPSAREOnAfterAddDefectsToCurrentPurchaseCreditMemo(Record Purchase Header, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize what should happen to the selected defects for the purchase header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchaseHeader:DefectEntry:
KVSPSAREOnAfterAddDefectsToCurrentSalesCreditMemo(Record Sales Header, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize what should happen to the selected defects for the sales header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
SalesHeader:DefectEntry:
KVSPSAREOnAfterAddDefectToPurchaseHeader(Record Purchase Header, Record KVSPSAREDefect Entry, Record Purchase Line) :
Summary: Use this event to change the puchase lines after they are filled in
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAddDefectToPurchaseHeader(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; PurchaseLine: Record "Purchase Line"):
Parameters:
PurchaseHeader:DefectEntry:PurchaseLine:
KVSPSAREOnAfterAddDefectToSalesHeader(Record Sales Header, Record KVSPSAREDefect Entry, Record Sales Line) :
Summary: Use this event to change the sales lines after they are filled in
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAddDefectToSalesHeader(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; SalesLine: Record "Sales Line"):
Parameters:
SalesHeader:DefectEntry:SalesLine:
KVSPSAREOnAfterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(Record Purchase Header, Record KVSADVAdvanceChain) :
Summary: Use this event to add new things to the function afterwards or to edit it
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"):
Parameters:
CurrPurchaseHeader: The current purchase headerKVSADVAdvanceChain: The advance chain in the current purchase.
KVSPSAREOnAfterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(Record Purch. Rcpt. Line, Record Purchase Line, Record KVSPSAREDefect Entry) :
Summary: Use this event to add new things to the function afterwards or to edit it
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchRcptLine: The current line of the purchase receiptPurchaseLine: The current purchase line.KVSPSAREDefectEntry: The current defect.
KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentPurchaseCreditMemo(Record Purchase Header, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize which defects are used for the purchase header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchaseHeader:DefectEntry:
KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentSalesCreditMemo(Record Sales Header, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize which defects are used for the sales header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
SalesHeader:DefectEntry:
KVSPSAREOnAfterFillPurchaseLineFromDefect(Record Purchase Line, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize which fields in the purchase line should be filled by the defect management.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterFillPurchaseLineFromDefect(var PurchaseLine: Record "Purchase Line"; KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchaseLine: The current purchase line.KVSPSAREDefectEntry: The current defect.
KVSPSAREOnAfterFillSalesLineFromDefect(Record Sales Line, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize which fields in the sales line should be filled by the defect management.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterFillSalesLineFromDefect(var SalesLine: Record "Sales Line"; DefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
SalesLine:DefectEntry:
KVSPSAREOnAfterFilterFieldAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(Record Purchase Header, Record KVSADVAdvanceChain) :
Summary: Use this event to make changes that affect the "Source Table ID" field in the current advance chain.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterFilterFieldAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"):
Parameters:
CurrPurchaseHeader: The current purchase headerKVSADVAdvanceChain: The advance chain in the current purchase.
KVSPSAREOnAfterFindDefectsForPurchaseLine(Record Purchase Line, Record Purchase Header, Record KVSPSAREDefect Entry) :
Summary: Use this event to specify which filters are set for the defect management on the current purchase line.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterFindDefectsForPurchaseLine(PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchaseLine: The current purchase line.PurchaseHeader: The current purchase headerKVSPSAREDefectEntry: The current defect.
KVSPSAREOnAfterOpenDefectManagementAtOrderLine(Record Purchase Line) :
Summary: Use this event to add more information to this function.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterOpenDefectManagementAtOrderLine(PurchaseLine: Record "Purchase Line"):
Parameters:
PurchaseLine: The current purchase line.
KVSPSAREOnAfterOpenPurchaseCreditMemoFromDefect(Record KVSPSAREDefect Entry, Record Purchase Header) :
Summary: Use this event to change how the purchase header fields are filled in
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterOpenPurchaseCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; PurchaseHeader: Record "Purchase Header"):
Parameters:
DefectEntry:PurchaseHeader:
KVSPSAREOnAfterOpenSalesCreditMemoFromDefect(Record KVSPSAREDefect Entry, Record Sales Header) :
Summary: Use this event to change how the sales header fields are filled in
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterOpenSalesCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; SalesHeader: Record "Sales Header"):
Parameters:
DefectEntry:SalesHeader:
KVSPSAREOnAfterSelectOrderLineforDefect(Record KVSPSAREDefect Entry) :
Summary: Use this event to add more information from the purchase line to the current defect.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
KVSPSAREDefectEntry: The current defect.
KVSPSAREOnAfterSetFilterAddDefectsOnPurchaseInvoice(Record Purchase Header, Record Purchase Line) :
Summary: Use this event to customize the filters that find the current purchase line from the header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetFilterAddDefectsOnPurchaseInvoice(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"):
Parameters:
PurchaseHeader: The current purchase headerPurchaseLine: The current purchase line.
KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(Record Purchase Header, Record Purchase Line, Record KVSADVAdvanceChain) :
Summary: Use this event to customize the filters that find the current purchase line from the header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"):
Parameters:
CurrPurchaseHeader: The current purchase headerPurchaseLine: The current purchase line.KVSADVAdvanceChain: The advance chain in the current purchase.
KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(Record Purch. Rcpt. Line, Record Purchase Line, Record KVSPSAREDefect Entry) :
Summary: Use this event to customize the filters for inserting defects into the invoice.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
PurchRcptLine: The current line of the purchase receiptPurchaseLine: The current purchase line.KVSPSAREDefectEntry: The current defect.
KVSPSAREOnAfterSetFilterCheckIfDefectIsResolved(Record KVSPSAREDefect Entry, Record Purch. Cr. Memo Line, Record Sales Cr.Memo Line) :
Summary: Use this event to set the conditions when a defect is solved
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetFilterCheckIfDefectIsResolved(DefectEntry: Record "KVSPSAREDefect Entry"; PurchCrMemoLine: Record "Purch. Cr. Memo Line"; SalesCrMemoLine: Record "Sales Cr.Memo Line"):
Parameters:
DefectEntry:PurchCrMemoLine:SalesCrMemoLine:
KVSPSAREOnAfterSetFilterSelectOrderLineforDefect(Record KVSPSAREDefect Entry) :
Summary: Use this event to specify which filters are set for the purchase lines.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterSetFilterSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"):
Parameters:
KVSPSAREDefectEntry: The current defect.
KVSPSAREOnBeforeAddDefectsOnPurchaseInvoice(Record Purchase Header, Boolean) :
Summary: Use this event to customize how to open the defects on the current purchase line
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAddDefectsOnPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
Parameters:
PurchaseHeader: The current purchase header.IsHandled: Should be set to true if the case was handled.
KVSPSAREOnBeforeAddDefectsToCurrentPurchaseCreditMemo(Record Purchase Header, Boolean) :
Summary: Use this event to add defects to the current purchase header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
Parameters:
PurchaseHeader:IsHandled:
KVSPSAREOnBeforeAddDefectsToCurrentSalesCreditMemo(Record Sales Header, Boolean) :
Summary: Use this event to add defects to the current sales header
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
Parameters:
SalesHeader:IsHandled:
KVSPSAREOnBeforeAddDefectToPurchaseHeader(Record Purchase Header, Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to modify how to fill the purchase lines with the defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAddDefectToPurchaseHeader(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
PurchaseHeader:DefectEntry:IsHandled:
KVSPSAREOnBeforeAddDefectToSalesHeader(Record Sales Header, Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to modify how to fill the sales lines with the defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAddDefectToSalesHeader(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
SalesHeader:DefectEntry:IsHandled:
KVSPSAREOnBeforeAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(Record Purchase Header, Record KVSADVAdvanceChain, Boolean) :
Summary: Use this event to specify how to insert defects after a advance invoice is created from the advance plan.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean):
Parameters:
CurrPurchaseHeader: The current purchase headerKVSADVAdvanceChain: The advance chain in the current purchase.IsHandled: Should be set to true if the case was handled.
KVSPSAREOnBeforeAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(Record Purch. Rcpt. Line, Record Purchase Line, Boolean) :
Summary: Use this event to customize how to insert defects after the invoice line is inserted from the receipt line.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
Parameters:
PurchRcptLine: The current line of the purchase receiptPurchaseLine: The current purchase line.IsHandled: Should be set to true if the case was handled.
KVSPSAREOnBeforeFillPurchaseLineFromDefect(Record Purchase Line, Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to change wich purchase fields are get filled by the defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeFillPurchaseLineFromDefect(PurchaseLine: Record "Purchase Line"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
PurchaseLine:DefectEntry:IsHandled:
KVSPSAREOnBeforeFillSalesLineFromDefect(Record Sales Line, Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to change wich sales fields are get filled by the defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeFillSalesLineFromDefect(SalesLine: Record "Sales Line"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
SalesLine:DefectEntry:IsHandled:
KVSPSAREOnBeforeFindDefectsForPurchaseLine(Record Purchase Header, Record Purchase Line, Record KVSPSAREDefect Entry, Boolean, Boolean) :
Summary: Use this event to customize what filters should be set for finding the associated defects.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeFindDefectsForPurchaseLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean; var DefectsFound: Boolean):
Parameters:
PurchaseHeader: The current purchase headerPurchaseLine: The current purchase line.KVSPSAREDefectEntry: The current defect.IsHandled: Should be set to true if the case was handled.DefectsFound: If IsHandled is set to true, this will specify the result the function will return.
KVSPSAREOnBeforeOpenDefectManagementAtOrderLine(Record Purchase Line, Boolean) :
Summary: Use this event to customize how to open the defects on the current purchase line
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeOpenDefectManagementAtOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean):
Parameters:
PurchaseLine: The current purchase line.IsHandled: Should be set to true if the case was handled.
KVSPSAREOnBeforeOpenPurchaseCreditMemoFromDefect(Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to customize how to open a purchase credit memo from a defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeOpenPurchaseCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
DefectEntry:IsHandled:
KVSPSAREOnBeforeOpenSalesCreditMemoFromDefect(Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to customize how to open a sales credit memo from a defect
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeOpenSalesCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
DefectEntry:IsHandled:
KVSPSAREOnBeforePreventDirectPostingForPurchOrderWithDefects(Record Purchase Header, Boolean) :
Summary: Use this event to supress/modify the error resulting from directly posting a Purchase Order with Defects
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforePreventDirectPostingForPurchOrderWithDefects(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
Parameters:
PurchaseHeader: The Purchase Order which will be postedIsHandled: Set to true to surpress the default error message occuring.
KVSPSAREOnBeforeSelectOrderLineforDefect(Record KVSPSAREDefect Entry, Boolean) :
Summary: Use this event to customize how to add order lines to the current defect.
[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean):
Parameters:
KVSPSAREDefectEntry: The current defect.IsHandled: Should be set to true if the case was handled.