3.5.2 ODT Conditional substitution in table

Hi,
maybe it is a bug, or I am doing it wrong. As you can see I came quite far with my odt template, but now I am stuck and need help.

So I want to implement a conditional substitution into my documents table. I have my row.lines there and in the line_up I, tried this.

{line_up}
{line_discount_percent}[!-- IF {line_discount_percent} --] Rabatt [!-- ENDIF {line_discount_percent} --]

tried many variations. It keeps giving printing into my invoice [!-- IF --] Rabatt [!-- ENDIF --] :angry: but I want to have ā€œRabattā€ and nothing more. As you can see in the file at another area it is working, but outside the table. I need it inside. Can anyone help me.

So what am I doing wrong? Or is it reallly not posible in the table…

Thanks in advance…

PiĆØces jointes :

Why can’t I edit my message. There is is this

[!-- IF {my_var} ---] Rabatt [!-- ENDIF {my_var} --] not working inside of tables in odt documents.
So is this a bug or did anyone got a conditional substitution to work inside of a table.

Thanks

Hi there Striebig, I know this post is old already, but had you any luck with this feature? I’m having the same problem here. Also tried many variations…

Thanks in advance.

Hi!

I’m in France and I got the same problem.
Have you find a solution ?

I’d like to put lines without price in my table so i add services with description and no price but in the generated odt, the price is generated with the value of 0.
I thought that substitution could help but i didn’t find the solution.
I think that when many balise [!-- xyz --] are nested it doesn’t work.

Hi there rorotoche, I think I don’t understand your problem. If you DON’T put the price ODT tag in the document, it’s not going to generate itself in it. You are probably inserting something in there.

I have just tested in my config using the following tag lines and it doesn’t generate any price in there by itself.

[!-- BEGIN row.lines --]{line_product_label} {line_desc} .- €[!-- END row.lines --]

Hope it helps,

Luciano.