#1 2021-11-06 20:36:47

tbo
Member
Registered: 2015-04-20
Posts: 335

Strange problem with currency type

mORMot2, commit 2dec5ba
Interface based services

I have an absolutely strange problem with currency. Today I installed the latest version of mORMot. All displayed currency fields are too large by a factor of 1000. Not 40€ is displayed, but 40.000€. Since I install the latest version of mORMot every few days, the problem cannot have been present for long. All parts of the program are affected. Can anyone else verify the issues with currency?

Concrete: On the client side I use mORMot2, commit 2dec5ba. If I use the same version for the server, the error occurs! If I use the mORMot2 version from 21.10.2021 for the server (only for the server), everything runs fine.

With best regards
Thomas

Offline

#2 2021-11-06 20:58:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Strange problem with currency type

What is the JSON transmitted in-between?

Offline

#3 2021-11-06 21:37:21

tbo
Member
Registered: 2015-04-20
Posts: 335

Re: Strange problem with currency type

ab wrote:

What is the JSON transmitted in-between?

What the value is! Or am I misunderstanding the question? What other reason could there be? The server with the current mORMot2 version returns 40000, the one with the version from 21.10.2021 and older returns 40. Only the change of mORMot2 version of the server breaks my program.

With best regards
Thomas

Offline

#4 2021-11-07 12:34:49

tbo
Member
Registered: 2015-04-20
Posts: 335

Re: Strange problem with currency type

GitHub commit 2312 (3625ff08f60ba3eb27acbca9dfa699946ee62dcf) breaks all!
In this commit, changes were made in handling of the type currency.

I am surprised that problems seem to occur often only in context with my source code and not with others. I think I have to think about this.

With best regards
Thomas

Offline

#5 2021-11-07 16:17:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Strange problem with currency type

You are right.
I will fix it tonight.

We made a lot of refactoring lately because we are about to stabilize thé featureset and publish the first official release.

Offline

#6 2021-11-07 21:49:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Strange problem with currency type

My plane was canceled so I did have to take two other planes, two countries, and I guess I will fix it tomorrow after my conference at EKON.

Offline

#7 2021-11-08 08:29:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Strange problem with currency type

OK I tried to fix it during Marco's session. wink
Please check my last commit.

EKON is 25 years old this year.
What a stability and achievement!

Offline

#8 2021-11-08 10:37:38

tbo
Member
Registered: 2015-04-20
Posts: 335

Re: Strange problem with currency type

ab wrote:

OK I tried to fix it during Marco's session. wink
Please check my last commit.

All passed on a short test (server and client). Thanks for the fix. Have a great time at EKON.

With best regards
Thomas

Offline

#9 2021-11-10 00:59:15

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: Strange problem with currency type

ab wrote:

EKON is 25 years old this year.
What a stability and achievement!

What was your session about?


EDIT: I found it:

- mORMot Cryptography
- Server-Side REST Notifications with mORMot
- High Performance MicroServices

Last edited by Junior/RO (2021-11-10 01:01:30)

Offline

Board footer

Powered by FluxBB