PDF Template, logical or alebric operations?

Hello

There is a way to do algebric or logic operations in PDF template?

this type of things :

{if $aos_products_quotes_discount =="Amount"} Amount {else} %

or

{MULT($aos_products_quotes_product_qty,$aos_products_quotes_product_unit_price}

I don’t think this feature exists.

If you can code, you can try changing something here:

https://github.com/salesagility/SuiteCRM/blob/084f2f3f1f805cea2603323b1924f998ebffe0e9/modules/EmailTemplates/EmailTemplate.php#L416

… but I’m not sure that’s the best place, I just made a quick search.

Given Suite’s “SugarCRM ancestry”, I found this thread on the Sugar forum. Check out a couple of the responses on this post, which may point you in the right direction…

https://community.sugarcrm.com/thread/19955

Note: This is a calculation inside SuiteCRM, not just a PDF template. Therefore, the variable’s name would then need to be edited into your PDF template.