Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Money values not rendered correctly #46

Closed
mauthi opened this issue Mar 30, 2018 · 4 comments
Closed

Money values not rendered correctly #46

mauthi opened this issue Mar 30, 2018 · 4 comments

Comments

@mauthi
Copy link
Contributor

mauthi commented Mar 30, 2018

This is a bug.

Description

I have the column defined as the following:

{
            "label": "Amount",
            "name": "amount",
            "data": "amount",
            "money": {
                "symbol": "€",
                "format": "%s %v",
                "precision": 2,
                "thousand": ".",
                "decimal": ","
            },
            "meta": [ "searchable", "sortable", "total" ]
        },

Value in database: 150.00
Output: € 15.000,00
screenshot 2018-03-30 10 57 20

Steps to Reproduce

see above

Expected behavior

Output: € 150,00

Actual behavior

Output: € 15.000,00

@aocneanu
Copy link
Member

You provided waaay to little info.

copy paste from your code in the table template

image

db

image

output

image

@aocneanu
Copy link
Member

I managed to replicate.

@mauthi
Copy link
Contributor Author

mauthi commented Mar 30, 2018 via email

@aocneanu
Copy link
Member

Nope, I'm on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants