Professional Documents
Culture Documents
Add Description : Prevent Duplicate Invoice Number for same Supplier and Org
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)))
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