Jump to content

RockMoney - Provides tools for storing and using monetary values in an easy, yet powerful way.


bernhard
 Share

Recommended Posts

On 10/20/2024 at 9:49 PM, bernhard said:

What is your question? Are you asking about the inner workings of the module? The db storage? How the money library works?

No, nothing of that. I was just a bit surprised you don't save currency values in cents (for Euro and Dollar and similar for other currencies) and had the need for this.

As a drop-in solution, for already existing projects with tons of products/items, this seems perfect.

  • Like 1
Link to comment
Share on other sites

Well, you get all kind of weird rounding issues if you do that. Of course you could round() all results, but that is tedious and I'm not sure if that's 100% bulletproof:

RBBYUqs.png

 

 

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
On 10/22/2024 at 11:57 PM, wbmnfktr said:

No, nothing of that. I was just a bit surprised you don't save currency values in cents (for Euro and Dollar and similar for other currencies) and had the need for this.

As a drop-in solution, for already existing projects with tons of products/items, this seems perfect.

As far as I understood from the documentation, the module is based on the well-known library https://github.com/moneyphp/money. This library is used by a lot of people who have to calculate finances. Yes, this library stores finance values in integer variables. That is, in cents. You are right. Why, are there other solutions?

Today @bernhard made it easy for us to integrate this library into ProcessWire. Many thanks to him.

What are modules written for? To speed up development. This module will speed up development? Yes, it will. That's what we need.

I once spent a lot of time and effort to integrate PDF formatting into a project. And then I took the RockPDF module and did in a couple of hours what had taken me a month before.

Thanks to @bernhard for his modules, which are beautiful.

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...