Hello is there a way to do this? On an Invoice Im ...
# advancedpdf
i
Hello is there a way to do this? On an Invoice Im setting the auqntity ordered to 4 decimals with
<#assign orderedString = tranLine.quantityordered?string["0.0000"]>
but the client wants that only if the decimal part is idfferent from zero show decimals if they are all zero then the qty shouldnt have them like
55.6 -> 55.6000 55 -> 55
j
I've done this in crystal reports previously by truncating into an integer and then the decimal part is original - truncated. The trick is aligning all the decimal points (as a single invoice might have 55, 55.1, 55.123 on it) Hoping that might be of some use, I've never tried to do it in advanced pdf
l
I was going to ask the opposite 😛 I have the exact opposite with "${invoice.amount?string("0.###")}
I will try your solution for my problem ! Thanks !