Announcement

Collapse
No announcement yet.

AP 1.33.5: printing quotes, numberFormat not working for numers greater than 1000?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AP 1.33.5: printing quotes, numberFormat not working for numers greater than 1000?

    Hi,

    I'm using

    {{numberFormat listPrice decimals=2 decimalPoint=',' thousandsSeparator='.'}}

    to translate decimal and thousands separators to italian number format. I see a strange behaviour: it works when number is <1000 but if greater it logs:

    [2019-01-29 12:35:20] Espo.NOTICE: E_NOTICE: A non well formed numeric value encountered {"code":8,"message":"A non well formed numeric value encountered","file":"/var/wwwtest/z-test/data/cache/templates/5c50488845eb76.08905786.php","line":31,"context":{ "context":["1,120.00"],"options":{"decimals":2,"decimalPoint":",","thous andsSeparator":"."},"number":"1,120.00","decimals" :2,"decimalPoint":",","thousandsSeparator":"."}} []

    I'd like to check php template file in cache ... how can I temporarily disable template cache from being cleaned.

    any ideas?
    thanks,
    Michele

  • #2
    Hi Michele,

    Try:
    {{numberFormat listPrice_RAW decimals=2 decimalPoint=',' thousandsSeparator='.'}}

    It's stated in documentation: https://github.com/espocrm/documenta...ber-formatting

    Comment


    • #3
      Originally posted by yurikuzn View Post
      Hi Michele,

      Try:
      {{numberFormat listPrice_RAW decimals=2 decimalPoint=',' thousandsSeparator='.'}}

      It's stated in documentation: https://github.com/espocrm/documenta...ber-formatting
      Thanks Yuri, that way it works.
      Sorry, I didn't recall that point of the doc.

      Michele

      Comment

      Working...
      X