Product Correlation within an invoice?
Submitted by Guest on Tue, 20/02/2018 - 17:06
Hi All,
Just wondering if anyone has any suggestions as to how I can look to see if two specific products or product types have been (or have not been) charged on the same invoice and to then see the details for these.
Eg:
- Product Type Surgery + Product type anaesthetic
OR
- Specific product (eg: vaccination or SR12 inj) without a consultation?
I think I can do it in a big data crunch in excel, but looking for a simpler solution or suggestions.
Many thanks
David
Re: Product Correlation within an invoice?
It can be done in SQL, and therefore in a JasperReport.
The following SQL finds all invoices that have both surgery and anaesthetic product types:
The following finds all invoices that have a 'Vaccination' product, but no 'Consultation' product:
Re: Product Correlation within an invoice?
Hi Tim,
Thanks for this. Much appreciated
Cheers
David