Re: Modularizing the Dashboard

Hi,

While testing the Dashboard with the Banking and GL I have noticed that the Income is negative and the Costs are positive. I think it should be the other way around..as in the old Dashboard.

Re: Modularizing the Dashboard

Hello again,

After being testing and evaluating, I came up with that we will have problems using the JS client-side graphics engine.
We will have problems uploading the locally created graphics to the server for printing in PDF etc., so I ended up with upgrading our own class.graphic.inc file. It can now handle the vector graphics used in various JS client Libraries. But it handle it from the server side. The class.graphic.inc also supports multiple series, not just 2 as before. And of course it handles all the 'old' graphics, like PNG, JPG and GIF too. Everything is updated to handle the modern graphics as Beziers Curves like Spline, Half donuts. Writing text inside donuts and so fort. The reason for keeping these graphic engines is that when printing to PDF we use the PNG variant. If we should print the new SVG routines we would have to update the TCPDF to a newer version and add half a GB to our project, and this is not my cup of tea!
The updated graphic class can also be used to short SVG graphics inside the html using the member class SVG inside the class.graphic.inc file. I have some examples that I will show you later.

Please have a look at it on the site:

http://frontaccounting.co.uk/fa248
user: admin
pass: 98765

The demo will be up for a week.

In the mean time Janusz has been updated several of the Mantis bugs, so we can be up-to-date with the bug-fixing.

We are still planning for 2.5, but it is important to be rather bug-free before we concentrate on that.
This new graphic class can be used in the existing 2.4 version. There are no required database updates for that. So it could be included in the upcoming 2.4.9. Would that be ok?

@rafat.
Please have a look at the RTL version. In my opinion it seems ok, but as you know, I'm not an expert.

/Joe

Re: Modularizing the Dashboard

Thanks @joe
It seems OK. Is it possible to have access to the changed files so I test them locally in my environment.?

Re: Modularizing the Dashboard

I will send it to your forum email.

/Joe

Re: Modularizing the Dashboard

OK Thanks..

Re: Modularizing the Dashboard

@joe
This is very nice.. I really like it. The English Version seems perfect (to me at least). When we consider RTL then one needs to change the theme to cater for the RTL requirements/restrictions.

https://frontaccounting.com/punbb/viewtopic.php?id=8220

Thanks to @poncho1234 I was able to tweek the default theme CSS to get RTL to an acceptable level of presentation. I am sure that within this forum there are excellent guys who are able to produce an RTL Default theme that is acceptable, using a flag if the language is RTL (BTW for me its Arabic).

But.. for the new dashboard... thumbs up.

Good job.

Re: Modularizing the Dashboard

@rafat
Yes, you are right. The problem is that the CSS conditions are not easy to implement. In my point of view the Browsers should fix this when we have ordered it to have the dir='rtl'. The Browsers do the best they can, but this is not good enough.

I have got really interested in solving this, and I hope all of you developers will help me. I will also dig further to get better design for the rtl languages. I will also try to fix many of the popular themes to behave both ltr and rtl.
Thanks for testing.

Joe

Re: Modularizing the Dashboard

version 2.4.10 dashboard chart not working properly on my live server, everything is working fine in local host,

Locahost:  https://ibb.co/qr09KR3
live server : https://ibb.co/GkvbSxS

Post's attachments

comparisions.zip 29.7 kb, 6 downloads since 2021-10-19 

You don't have the permssions to download the attachments of this post.