Jump to content

Recommended Posts

Hello There

I am thinking  on a possibility   to edit   annual   income   report   to  add   budget. lets   say:

-   Now   I have   one year   income, so   I   want to modify   default   WHMCS   to add   on same   graphic   annual   income report   a   predefined   budget  for  2020,   so I will   be comparing   every   month   my performance   (if   on end of each month   if I   am   up  ⬆️or   below  ⬇️ pre-defined   budget).

-   I have   to insert   budget amount  $ (JAN  ,   FEV, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC for   2020)

I am not sure   if   all modifications   can   be done   only editing   annual_income_report.php

image.png.f33b46cbb0cff6e7d2d6e9173846080b.png

Or if   a module developing   is needed?

This is   a print   I created   on picture  editing   just to   show intended   idea.

image.thumb.png.461d6ddb12881a3c51e82cec6d42d9e8.png

 

If there  is   not enough   space   on currently     annual_income_report.php  to   fit   4   inputs   graphs   (3   years+budget),   I could   sacrifice   oldest   years    and  have only   3 graphs   instead   of 4. Also   Budget  could   be inserted   on same   year   graph.   Example   below.

image.thumb.png.09d5a586ba39e0bda4b158b1d1ba9345.png

There is any   similar module   ready to use   out-there?  Have you   ever   done similar   work. Perhaps   I have to   ask moderator   to   forward   this thread   to service   and offer  request, but for now   is just to   get input   if it can be done or how complexity   it will be.

Thank you!

 

Link to comment
Share on other sites

20 hours ago, zitu4life said:

I am thinking  on a possibility   to edit   annual   income   report   to  add   budget. lets   say:

you would duplicate the report first and then edit the duplicated file, not the original.

21 hours ago, zitu4life said:

I am not sure   if   all modifications   can   be done   only editing   annual_income_report.php

I would have thought that after the report had created the results array from existing data, you were just adding 12 months of fake values (budget) in the same format to the array... these budget figures can't be read from the database (unless you have a custom table for them), so they'd have to be defined in the report.

21 hours ago, zitu4life said:

Or if   a module developing   is needed?

you shouldn't need a module for this.. though the only report module I can think of would be MG's Report Generator, but whether that would even work with this, I don't know as you're not running a specific query on real data, you're just adding fake values to an exisitng result.

21 hours ago, zitu4life said:

If there  is   not enough   space   on currently     annual_income_report.php  to   fit   4   inputs   graphs   (3   years+budget),   I could   sacrifice   oldest   years    and  have only   3 graphs   instead   of 4. Also   Budget  could   be inserted   on same   year   graph.   Example   below.

you can expand the report/graph to more than the current 3 years - it can go as far back as your data exists...

13VAGAg.png

21 hours ago, zitu4life said:

There is any   similar module   ready to use   out-there?

it wouldn't be a module, but a custom report - off-hand, I can't think of an existing report that does what you want.

21 hours ago, zitu4life said:

Have you ever done similar work.

🙂

21 hours ago, zitu4life said:

if it can be done or how complexity it will be.

it could be done... though whether a report is the right vehicle for this i'm not sure (possibly if you need to see the output visually as a graph), but if it were just numerically, a widget would be another option.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated