Features

Zero € or negativ € items

vor 3 JahrenAusstehend

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...)

4 Kommentare

  1. Robertvor 3 Jahren

    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.

  2. Maxvor 3 Jahren

    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!

    • img/zi24g14o3d6ebg7ngqz3ww7o
    • img/hwedqf5yqa5iik49wjhu259m
    1. Victorvor 3 Jahren

      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.

      • img/7km24337yo3y21fboodvv01y
    2. Maxvor 3 Jahren

      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 :)