Table of Contents

KVSPSAREWarrantyMgt

Events

KVSPSAREOnAfterCalculateWarrantyEndDate(Record Purchase Header) :

Summary: This event is triggered after the Warranty End Date for a Purchase Document has been calculated. Use this event to modify the calculated date

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterCalculateWarrantyEndDate(var PurchaseHeader: Record "Purchase Header"): 

Parameters:

  • PurchaseHeader: The updated Purchase Document

KVSPSAREOnAfterDeleteWarrantyFromPurchaseOrderWithoutPosting(Record Purchase Header, Record KVSPSAREWarranty) :

Summary: This event is triggered after an obsolete warranty entry has been deleted for a deleted Purchase Order. Use this event for additional clean-ups.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnAfterDeleteWarrantyFromPurchaseOrderWithoutPosting(var PurchHeader: Record "Purchase Header"; Warranty: Record "KVSPSAREWarranty"): 

Parameters:

  • PurchHeader: The deleted Purchase Document
  • Warranty: The deleted warranty entry

KVSPSAREOnBeforeCheckWarrantyFields(Record Purchase Header, Boolean) :

Summary: This event is triggered before the warranty fields of a Purchase Header requiring a warranty are checked. Use this event to deactivate this check or make additional preparations.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeCheckWarrantyFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 

Parameters:

  • PurchaseHeader: The Purchase Document being checked
  • IsHandled: Set to true to skip the check

KVSPSAREOnBeforeUpdatePurchaseOrderAcceptanceDateFromPurchaseInvoice(Record Purch. Inv. Header, Boolean) :

Summary: This event is triggered before the update of the acceptance date of a purchase order during posting of a related purchase invoice. If is handled is set to true, the update will be skipped.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeUpdatePurchaseOrderAcceptanceDateFromPurchaseInvoice(PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean): 

Parameters:

  • PurchInvHeader: The Posted Purchase Invoice Document
  • IsHandled: Set to true to skip the update

KVSPSAREOnCreateNewWarrantyEntryFromPurchaseHeaderBeforeModify(Record Purchase Header, Code[20], Record KVSPSAREWarranty) :

Summary: This event is triggered after a warranty entry has been created from a Purchase Order. Use this event to transfer additional data to the warranty entry.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnCreateNewWarrantyEntryFromPurchaseHeaderBeforeModify(PurchHeader: Record "Purchase Header"; PurchInvNo: Code[20]; var Warranty: Record "KVSPSAREWarranty"): 

Parameters:

  • PurchHeader: The Purchase Order
  • PurchInvNo: The No. of an existing Invoice for this Order if existant
  • Warranty: The newly created Warranty Entry

KVSPSAREOnCreateNewWarrantyEntryFromPurchInvHeaderBeforeModify(Record Purch. Inv. Header, Record KVSPSAREWarranty) :

Summary: This event is triggered after a warranty entry has been created from a posted Purchase Invoice. Use this event to transfer additional data to the warranty entry.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnCreateNewWarrantyEntryFromPurchInvHeaderBeforeModify(PurchInvHeader: Record "Purch. Inv. Header"; var Warranty: Record "KVSPSAREWarranty"): 

Parameters:

  • PurchInvHeader: The Purchase Invoice
  • Warranty: The newly created Warranty Entry