You are on page 1of 2

1.

Payables Responsibility > Invoice > Entry >Open Invoice Workbench

Form Menu >Diagnostics >Custom Code> Personalize

Add Description : Prevent Duplicate Invoice Number for same Supplier and Org

Select Trigger Event : WHEN-VALIDATE-RECORD

Select Trigger Object : INV_SUM_FOLDER

Condition: 0<(select count(*) from ap_invoices_all where invoice_num =:INV_SUM_FOLDER.INVOICE_NUM and vendor_id =:INV_SUM_FOLDER.VENDOR_ID
and org_id = :INV_SUM_FOLDER.org_id and (:system.record_status = 'INSERT' OR (:system.record_status ='CHANGED' AND rowid <>
:INV_SUM_FOLDER.ROW_ID)))

Processing Mode: Both

Validate the Query

2.Click on Action Tab

Message Type: Error

Note: Message_Type “Error” will show error and NOT allow to save Duplicate Invoice Numbers. You can keep Message_type as “Show” if you want to alert
users but still allow them to save Duplicate Numbers.

Message Text : You have entered duplicate Invoice Number for same Supplier. Please Use Different Invoice Number

Validate the Message

Enable The Personalization


3.Verify the Personalization by Entering Duplicate Numbers

You might also like