Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Trying to make sense of gendoc conditionals #1193

Open
partnerwerk opened this issue Nov 24, 2021 · 0 comments
Open

Trying to make sense of gendoc conditionals #1193

partnerwerk opened this issue Nov 24, 2021 · 0 comments

Comments

@partnerwerk
Copy link

In a gendoc template for invoices I want to add a line that only shows up when we have a discount.
When I use the following I do not succeed.

{ifexists InventoryDetails.discount_amount != 0.000000}
{InventoryDetails.discount_percent} %
{/ifexists}

I tried various forms of comparisons ( > 0, !=0, !=NULL but either the line is shown independently of having a discount in the invoice or not, or it is not shown at all.

Do you have a hint what I could do?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant