Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant