API/Query to find Earned discount on an invoice
Hi,
Is there an api or query to find out the earned discount amount of an invoice on a given date? Our client needs a report that lists out discount eligible customers along with the invoice and discount amount as of a given date.
Regards,
Malay.