Closed nekohayo closed 2 years ago
@nekohayo This functionality mirrors what we also do in version 4. I think this is the first time we have had this come up as an issue.
@hillelcoren thoughts?
To be clear, I'm using v4 on your SaaS on a day-to-day basis, I just went through the extra mile of testing the v5 demo to check if it was already fixed (and it doesn't seem to be, from what I can tell, hence this bug report)
In v5 we've added the ability to configure the total/subtotal fields, they can be set on Settings > Invoice Design > Total Fields (it's the last tab). The app supports adding multiple subtotal fields.
@hillelcoren
Which "subtotal" would this relate to? ie subtotal - discount = ?
I assumed the app would determine the subtotal value based on where it's located in the list?
@nekohayo
We'll use the variable $net_subtotal to hold the subtotal without the discount amount. This will be available in the next release.
What version of Invoice Ninja are you running? ie v4.5.25 / v5.0.30 v4 (your paid SaaS version)
What environment are you running? InvoiceNinja's official SaaS version
Have you searched existing issues? Yes
Have you reported this to Slack/forum before posting? No
Describe the bug InvoiceNinja does not show the updated subtotal after global-per-invoice discounts are applied, making the resulting invoices hard to understand, or possibly illegal in various jurisdictions, even.
Steps To Reproduce
The results are:
That's problematic. Most people I've shown this to have been utterly confused by the absence of a real, net, post-discount subtotal before taxes. I'm suspecting this might be illegal in Canada or some of its provinces (or at it's gotta be illegal it at least some countries in the world!)
Expected behavior
Based on v4's invoice layout, this is what I would expect something like:
Additional context
I've also briefly attempted testing this on v5 on your public demo site, and somehow it's even more confusing while still not giving me the required information in the expected order:
I mean, what's this "Net" thing that comes before "Subtotal" and discount, yet is equal to the subtotal in all cases? Why isn't there one of them after the discount to indicate the discounted subtotal / net subtotal (or whatever you'd call the "total regular-priced amounts, minus global discount, before global sales taxes, before final total"? I don't get why you have net and subtotal up there if they are always equal, and to me it would feel much more natural if the order was, "Gross, discount, net, taxes, total"...