Find Duplicated AP Bills (Internal)

The script below can be used to find any AP Bill with a duplicated invoice number

 

select Vendor_Code,

b.Invoice_Number, Count(b.Invoice_Number) as "Number of Bills with Duplicate Invoice Number"

from AP_Vendor a, AP_Invoice b

where a.Vendor_Id = b.Vendor_Id

Group by a.vendor_code, b.invoice_Number  

having count(b.invoice_number) >1

Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted for approval.