[ASTPPCOM-857] Error balances change language Created: 27/Dec/21  Updated: 09/Feb/22  Resolved: 03/Jan/22

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Danilo Borges Assignee: Ashish Gohil
Resolution: Done Votes: 1
Labels: new_bug
Remaining Estimate: Not Specified
Time Spent: 2h
Original Estimate: Not Specified

Attachments: PNG File astpp.png    
Reproducibility: always
Category: UI
Edition: Community

 Description   

Friends, when I’m using the English language, all the values on the Dashboard and customer balance are correct:
Dashboard Example: Debit 0.0900 BRL
Customer balance example: 686.9100

But if I change it to Portuguese it changes to:
Dashboard Example: Debit 9.0000 BRL
Customer balance example: 68691.000

In fact, it’s any language it gives the decimal error, only English shows the decimals correctly!

I also tested it on cents 7 and the same error occurs. And when I try to delete a client in Portuguese, the screen goes blank and only the number 1 appears, then I have to go back, change it to English and then I can delete the client!

 

I also found out that the error is only for the default user, when creating a new user the user balance problem is solved, but the problem remains in the dashboard as shown in the image.

 

After a lot of work I discovered the error in ASTPP, when we change the translation and click Update Languages it only changes the file /opt/ASTPP/web_interface/astpp/language/pt_BR/LC_MESSAGES/messages.po but the translation will only work if the file with the extension .mo is also generated (messages.mo) it is generated from messages.po , and I don’t know why astpp only changes the messages.po file

 



 Comments   
Comment by Neetu Nogia [ 30/Dec/21 ]

Dear Danilo Borges

Goodday,

Can you please let us know your ASTPP community version and build version so we can check accordingly.

Thank You

Comment by Danilo Borges [ 30/Dec/21 ]

Hi, last ASTPP 5 on github

Thanks

Comment by Ashish Gohil [ 31/Dec/21 ]

Hello Danilo Borges,

This issue is resolved, you can take changes from below PR

https://github.com/iNextrix/ASTPP/pull/645

Thanks and regards

Ashish Gohil

Comment by Danilo Borges [ 31/Dec/21 ]

OK, Tested and approved!

Thanks and regards

Comment by Prashant Kumar [ 09/Feb/22 ]

Verified.
> working fine.

Generated at Sat Feb 10 07:20:53 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.