Closed Youdaman closed 3 years ago
Also, there is no TotalDiscount field as suggested by the docs.
I see TotalDiscount is present when you call the singular getInvoice.
Hey @Youdaman - yes. This is a result of doing a GET for all invoices not fetching the line items. It would seem that that derives the boolean that tells if an invoice has discounts or not. I will flag this as an API bug but considering it isn't unique to PHP I am closing this issue. I will report back to you when the team plans to address this nuance.
Any update on this nuance @SerKnight ? As you mentioned it's not unique to PHP and I've also struck it using Node.
cc @RettBehrens
SDK you're using (please complete the following information):
Describe the bug When summaryOnly for getInvoices is set to false the IsDiscounted contains true when a line item has a discount applied.
When the summaryOnly is set to true, IsDiscounted always returns false regardless of whether there is a discount or not.
To Reproduce Steps to reproduce the behavior:
Expected behavior IsDiscounted should contain a value of true.