Hello everyone, I want to ask how to show to quant...
# advancedpdf
m
Hello everyone, I want to ask how to show to quantity into description? I want to display it in the advance pdf
k
in the Adv pdf template you would need to do something like
${item.description?replace("${record.quantity}", item.quantity)}
check out https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_replace
1
m
I tried
${item.description?replace("${record.quantity}", item.quantity)},
it showed an error : The content of elements must consist of well-formed character data or markup. Please contact your administrator. I tried
${item.description?replace("${record.quantity}", "item.quantity")},
it showed an error : Attribute name "item.quantity" associated with an element type "item.quantitybitem.quantityritem.quantity" must be followed by the ' = ' character. Please contact your administrator. I tried
${item.description?replace("${record.quantity}", "${item.quantity}")}
it showed an error : The content of elements must consist of well-formed character data or markup.
Also I tried to change the item description directly but still can't get quantity
I find the solution :
${item.description?replace('total', '${item.quantity}')}
thanks for the idea