Skip to content

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAddDefectsOnPurchaseInvoice', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAddDefectsOnPurchaseInvoice(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • PurchaseHeader: The current purchase header
  • PurchaseLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAddDefectsToCurrentPurchaseCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • PurchaseHeader:
  • KVSPSAREDefectEntry:

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAddDefectsToCurrentSalesCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • SalesHeader:
  • KVSPSAREDefectEntry:

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAddDefectToPurchaseHeader', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAddDefectToPurchaseHeader(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • PurchaseHeader:
  • KVSPSAREDefectEntry:
  • 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAddDefectToSalesHeader', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAddDefectToSalesHeader(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • SalesHeader:
  • KVSPSAREDefectEntry:
  • 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain")
begin
end;

Parameters:

  • CurrDocumentHeader: The current purchase header
  • KVSADVAdvanceChain: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • PurchRcptLine: The current line of the purchase receipt
  • PurchLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentPurchaseCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterChooseDefectsAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • PurchaseHeader:
  • KVSPSAREDefectEntry:

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterChooseDefectsAddDefectsToCurrentSalesCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterChooseDefectsAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • SalesHeader:
  • KVSPSAREDefectEntry:

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterFillPurchaseLineFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterFillPurchaseLineFromDefect(var PurchaseLine: Record "Purchase Line"; KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterFillSalesLineFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterFillSalesLineFromDefect(var SalesLine: Record "Sales Line"; DefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • SalesLine:
  • KVSPSAREDefectEntry:

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterFilterFieldAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterFilterFieldAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain")
begin
end;

Parameters:

  • CurrDocumentHeader: The current purchase header
  • KVSADVAdvanceChain: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterFindDefectsForPurchaseLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterFindDefectsForPurchaseLine(PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • PurchaseLine: The current purchase line.
  • PurchaseHeader: The current purchase header
  • KVSPSAREDefectEntry: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterOpenDefectManagementAtOrderLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterOpenDefectManagementAtOrderLine(PurchaseLine: Record "Purchase Line")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterOpenPurchaseCreditMemoFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterOpenPurchaseCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; PurchaseHeader: Record "Purchase Header")
begin
end;

Parameters:

  • KVSPSAREDefectEntry:
  • 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterOpenSalesCreditMemoFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterOpenSalesCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; SalesHeader: Record "Sales Header")
begin
end;

Parameters:

  • KVSPSAREDefectEntry:
  • 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSelectOrderLineforDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSetFilterAddDefectsOnPurchaseInvoice', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSetFilterAddDefectsOnPurchaseInvoice(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • PurchaseHeader: The current purchase header
  • PurchaseLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain")
begin
end;

Parameters:

  • CurrDocumentHeader: The current purchase header
  • PurchaseLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSetFilterAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

Parameters:

  • PurchRcptLine: The current line of the purchase receipt
  • PurchLine: 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSetFilterCheckIfDefectIsResolved', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSetFilterCheckIfDefectIsResolved(DefectEntry: Record "KVSPSAREDefect Entry"; PurchCrMemoLine: Record "Purch. Cr. Memo Line"; SalesCrMemoLine: Record "Sales Cr.Memo Line")
begin
end;

Parameters:

  • KVSPSAREDefectEntry:
  • 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"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnAfterSetFilterSelectOrderLineforDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnAfterSetFilterSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry")
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAddDefectsOnPurchaseInvoice', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAddDefectsOnPurchaseInvoice(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAddDefectsToCurrentPurchaseCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAddDefectsToCurrentPurchaseCreditMemo(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAddDefectsToCurrentSalesCreditMemo', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAddDefectsToCurrentSalesCreditMemo(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAddDefectToPurchaseHeader', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAddDefectToPurchaseHeader(PurchaseHeader: Record "Purchase Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader:
  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAddDefectToSalesHeader', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAddDefectToSalesHeader(SalesHeader: Record "Sales Header"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader:
  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAutoInsertDefectsOnAfterCreateAdvanceInvoicesFromAdvancePlan(CurrPurchaseHeader: Record "Purchase Header"; KVSADVAdvanceChain: Record "KVSADVAdvanceChain"; var IsHandled: Boolean)
begin
end;

Parameters:

  • CurrDocumentHeader: The current purchase header
  • KVSADVAdvanceChain: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeAutoInsertDefectsOnAfterInsertInvoiceLineFromReceiptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchRcptLine: The current line of the purchase receipt
  • PurchLine: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeFillPurchaseLineFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeFillPurchaseLineFromDefect(PurchaseLine: Record "Purchase Line"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseLine:
  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeFillSalesLineFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeFillSalesLineFromDefect(SalesLine: Record "Sales Line"; var DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesLine:
  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeFindDefectsForPurchaseLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeFindDefectsForPurchaseLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean; var DefectsFound: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: The current purchase header
  • PurchaseLine: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeOpenDefectManagementAtOrderLine', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeOpenDefectManagementAtOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;

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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeOpenPurchaseCreditMemoFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeOpenPurchaseCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeOpenSalesCreditMemoFromDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeOpenSalesCreditMemoFromDefect(DefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSPSAREDefectEntry:
  • 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforePreventDirectPostingForPurchOrderWithDefects', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforePreventDirectPostingForPurchOrderWithDefects(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: The Purchase Order which will be posted
  • IsHandled: 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): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREDefectManagement", 'KVSPSAREOnBeforeSelectOrderLineforDefect', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeSelectOrderLineforDefect(var KVSPSAREDefectEntry: Record "KVSPSAREDefect Entry"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSPSAREDefectEntry: The current defect.
  • IsHandled: Should be set to true if the case was handled.