akaunting / laravel-money

Currency formatting and conversion package for Laravel
https://akaunting.com
MIT License
732 stars 101 forks source link

Missing variable. #73

Closed RonJeremyR6 closed 1 year ago

RonJeremyR6 commented 1 year ago

I miss a variable where you can set the comma or dott before it goes into the money function. For example: When I retrieve a float number from my database, it consists of a dot, like: 40.5 When I use EUR: 'EUR' => [ 'name' => 'Euro', 'decimal_mark' => ',', 'thousands_separator' => '.', ], I get the result: 405,00 EUR. Now I don't want to replace the dots to commas first from my database values. If there was a variable like: 'decimal_mark_db' => '.' and the money function handles it, that would be great.

denisdulici commented 1 year ago

Unfortunately, that's not possible.