Zero € or negativ € items
V
Victor
If I add an item that has zero or a negative currency it will just show the item but not the price.
Sometimes I find this useful to show a client what I'm doing but not charging (e.g. travel costs...).
Also this eliminates the possibility to grant the client a discount if I cant deduct -...€ from the invoice.
(It might be just my template, that doesn't show negative currency...)
Robert
Maybe not an issue with Cakedesk but a hint from my side.
I would show anything on an invoice or proposal with 0 amounts. That leads to some confusion and "smart customers" that only wants these things ;)
I try to add these points as a subposition and give the main position an amount with no sub-amounts.
Max
Hi Victor! It is possible in Cakedesk! Are you using a custom template?
Make sure that in
item.ejs
you're using item.total.amount !==0
instead of item.total.amount > 0
. The same if your template uses a column-width-calculations.ejs
file.I hope that helps!
V
Victor
Hi Max,
thanks for the quick reply.
You're totally right - it's just an template issue.
If I follow your instructions it displays negative currency, but not zero currency.
I tried a workaround by deleting the whole statement and just using "formatMoneyValue(item.unitPrice)" to display the amount.
This way it shows negative and zero currency. But I didn't test it properly yet - so it could cause some bugs that I'm not aware of right now.
Max
Victor You're right, my snippet still hides the 0-amounts. Your version looks alright to me, I don't think it will cause any issues. If you do run into problems, just reach out please :)