Copy of Product Title as Description

Hey there,
when converting order to invoice, there is a problem. If the product description is empty, it copies the title as description when converting to invoice.

Thisway there is a duplicate when showing {line_product_label}{line_desc} in my odt template.

Is there a tag to stop that?

Best regards
Ben

Hi

Try

[!-- IF {my_var} --]
Print this text if {my_var} is true (can be any value but null/0/empty string)
[!-- ELSE {my_var} --]
Or print this if it’s false (null/0/empty string)
[!-- ENDIF {my_var} --]

Refer to : Create an ODT document template - Dolibarr ERP CRM Wiki

thanks
yesbee

Hi, nice thank you. Is it also possible to check if, {my_var1} = {my_var2}?

Thank you very much…
I have to check if {line_product_label} = {line_desc}

Best regard
Ben