decimal point and thousands separator

58 views
Skip to first unread message

scanner...@gmail.com

unread,
Jun 2, 2016, 3:14:03 PM6/2/16
to FAQ - Invoice Templates by Invoicebus https://invoicebus.com/templates
Hello Stefan,

I bought the invoicebus invoice templates last year, but have only just started to try using/implementing them. I have found my way to this google group because of your helpful how-tos and links. I have a few questions and requests and will make a separate post for each item just to keep them short.

Following on from this post about "decimal point" https://groups.google.com/forum/#!topic/html-invoice-generator/DzxTE3ZxfV8 I would like to talk about the thousands separator.

Here in Europe, we often use the "," for the decimal point and a non-breaking-narrow-space as the thousands separator. In fact, even in the UK, we use the decimal separator "." with this NBNS.  Many invoices and nearly every annual report or financial statement now follows this "standard".  There is a discussion here: http://stackoverflow.com/questions/8677805/formatting-numbers-decimal-places-thousands-separators-etc-with-css that explains the format in a little more detail.

Would it be possible to implement this NBNS in both the "." and "," decimal formats on the invoicebus templates? It requires a modification to generator.js line 1122 or thereabouts.

Much appreciated,

David





Stefan Chachovski

unread,
Jun 3, 2016, 11:54:43 AM6/3/16
to FAQ - Invoice Templates by Invoicebus https://invoicebus.com/templates, scanner...@gmail.com
Hello David,

Thanks for writing in! Yes, this could be a nice feature and we'll definitely consider it putting in our feature request pipeline. Probably we need to develop more sophisticated regEx in order to make the appropriate replacements for NBNS.

However, the priority of this kind of feature is quite low because it pulls additional development and testing in Invoicebus. That's because the templates need to be fully compatible with the bus. For example, if we add an additional number format in the generator.js, we also need to add the format in the Invoicebus service. Otherwise, the templates will become incompatible with Invoicebus.

I hope you understand.

Best,
Stefan

Dimitar Stojanov

unread,
Oct 20, 2016, 8:43:17 AM10/20/16
to FAQ - Invoice Templates by Invoicebus https://invoicebus.com/templates, scanner...@gmail.com
Hi David,

The number formats with Narrow No-break Space are added to the templates, so there 2 new formats 1 234.56 and 1 234,56 for your convenience. Note that Invoicebus don't support this formats jet, so if the invoice is saved online to Invoicebus they will be saved without space as a thousand separator.

All the best,
Dimitar@IB
Reply all
Reply to author
Forward
0 new messages