PDF Invoice Template: Line Quantity and Line discount error

Hi, I’m trying to make a PDF invoice template, but I realize that the fields:
Line items Products-> $aos_products_quotes_product_qty
Line items Discount amount-> $aos_products_quotes_product_discount_amount

Only shows the first digit, I mean: if the line have 25 units, the PDF print only the first digit: “2”

Can any one help me?
Thanks.
SuiteCRM version 7.3.1

This should have been fixed in the latest version of SuiteCRM. If you have bugs, visit our github repo and search within closed (or open) issues.

https://github.com/salesagility/SuiteCRM

Hello Friends

I Update to suitecrm 7.7.6 but the problem persists. In detail view the field quantity is ok, but when I print the PDF of a invoice, the field Quantity not print correctly.

Can you Help me?

Thank you

I have a similar wrong result when using SuiteCRM 7.7.9, but there is a small difference: in my case the template gives the 2 first digits of the number, so if I need to show a quantity of “261”, the resulting PDF shows only “26”.
I tried converting the data type from “DECIMAL (26,6)” to “INTEGER(11)” to be sure the problem was not originated by decimal-point handling, but the error is still the same.
Anyone can help us, please?

Hi, any updates on this ?

i have similiar problem with 7.10.7 if i use . as thousand separator and decimal value to 0, print invoice to pdf qty values only shows the first qty example 8.000 it will only print 8 but if i change thousand separator to , it will print correctyl. please help if there is any update on this

Bump On this topics if any one have clue about this error, already upgraded to 7.10.10 but problem still presist.

Please search GitHub for similar issues, and if you can’t find it there, open a new issue giving all the details about your system. If it isn’t on GitHiub, it probably won’t get fixed.

Thanks for reporting.

I just change line 154 into file \modules\AOS_PDF_Templates\templateParser.php

with this:

            //$value = rtrim(rtrim(format_number($value), '0'), $sep[1]);
			$value = format_number($value);

There should be am Issue for this on Github, and this proposed fix could be put in there.