{{ invoice.sales_tax | number_with_delimiter: ',' }} not working
I'm trying to use the number_with_delimiter
from
the example here :
http://help.cashboardapp.com/kb/document-templates/template-syntax-...
I can't seem to get this to work for my tax number.
I have this line in my invoice_table_footer
<b>BTW</b> - {{ invoice.sales_tax | number_with_delimiter: ',' }}%
But it's just printing it with a .
, what am I doing
wrong ?
Also, great work with the templating system, haven't found this anywhere else yet.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Seth B on 24 Feb, 2014 09:30 PM
Hi Willem,
That code looks good to me. Is anything actually filled in for that invoice's sales tax?
PS: Shopify uses the same templating system.
2 Posted by Willem D'H... on 24 Feb, 2014 09:34 PM
Yes there is, it's at 21% you can see it in the screenshot
Support Staff 3 Posted by Seth B on 24 Feb, 2014 09:40 PM
Oh I see what you're talking about now.
Use the filter 'format_number' instead — it'll respect the preferences you've set for number display under Settings. It takes no arguments.
--
seth @ subimage llc
http://subimage.com