templateParser.php

While applying a %age based discount, all the calculations in the forms work fine. In the pdf template, when you have a Percentage based discount, the value for product_discount_amount_usdollar is negative in the DB, but in the PDF file it shows as -1.

From a previous post on templateParser, when you comment out this line at Line 65, the amount is displayed fine.

modules/AOS_PDF_Templates/templateParser.php

  • Comment out line 65: $value=currency_format_number($value,$params = array(‘currency_symbol’ => false));

Even though this has fixed the issue, I don’t fully comprehend the impact of this change!!

Thanks in advance for your help.