RE: Item Comments on Quotes / Invoices with prices - how to remove?
And for WORD layouts, you'll have to create new XML-items.
You'll have to check in your OnAfterGetRecord (line), if the value is 0 then make the text empty.
if not zero, then convert the decimal value to a text.
so basicaly
if decimalValue = 0 then
TextValue := ''
else
TextValue := format(DecimalValue);
and add a column on the line to show the TextValue.
that you then use in the word layout instead of the standard xml field.