New event in Purchase Header for Vendor Invoice No. and Vendor Cr. Memo No.
Describe the request
Can we have 2 events, OnBeforeVendorInvoiceNoFindPostedDocumentWithSameExternalDocNo("Vendor Invoice No.",IsHandled) and OnBeforeVendorCrMemoNoFindPostedDocumentWithSameExternalDocNo("Vendor Cr. Memo No.",IsHandled) before standard logic on "Vendor Invoice No." and "Vendor Cr. Memo No." in Purchase Header as shown in screenshot below.
Additional context
Need to create a custom message / notification for duplicate vendor invoice number, vendor credit memo number so need to bypass standard notification logic. Current workaround is OnAfterValidate of these fields triggers but that leads to double calls to functions. Internal work item: AB#567485
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 32545.