I added a code to display the discount (percentage and amount) in the default quote template in “public”, I’ll try to add this function in all other templates (invoice, pdf, etc.), but I’m not an expert, so I hope this is a correct way.
now I can’t do it (I’m reading with a smartphone), but I’ll post the screenshot as soon as possible.
Just a question, please. I read your thread about the release 2.
Well, do you think it’s possible to add a discounts adminis totration in the same mode of adding tax?
In this case the item in menu will be a generic “Add Item” and a user can add tax or discount or coupon or everything…
The options would be only:
plus or minus sign;
amount or percentage choise:
order to apply (e.g. discount before than tax, etc.)
In this way the management should be more flexible and easy…
There is a little problem with this solution. If I add a discount amount of €100 per subtotal €300, it results this percentage: 33,333333333%. How can I fix this? I’d like to view only 33,33%.
If anyone’s interested, I’ve hacked together some code that will display a per-item discount column, but only if one or more items have a discount (the column is hidden if no items have a discount:
First, add the following in the thead section of the invoice-items table between the price and total entries:
Finally, change the $item->item_subtotal entry to $item->item_total, and everything should be working. There’s probably a more elegant way to achieve the same thing, but this one is working for me.
(Incidentally, many thanks to the developers for creating such a flexible and easy-to-edit invoice template system. For me, it’s what really makes this software work for me.)
Btw. in Invoice and Quote section there is an option to add discount per item and also add discount on a total amount. Will this show discount per item and also discount per total amount?
yes, definately much needed disply basic items like discount and notes in quotes and invoices.
please upload your template so we can use.
thanks for hard work
There is a little problem with the discount option. The discount should be calculated before all taxes, or an user should be able to choose whether to apply it before or after.
Anyone? Kovah? The invoice and quote pdf have full price of items and the final price that has the amount with discount. It is not with the tax law, at least in my country, to have that kind of a invoice where there is a discount included but is not seen from paper (pdf) The discount function has no meaning in this way…
EDIT: you should include raults post in invoice and quote templates and that is it!
Where is your code, I need this despartly, and where do i put it in the default quote template? I just need a general discount not a per item discount…Thank you