Patch: Repeating virtual transaction
Moderator: Renato
Patch: Repeating virtual transaction
Hello,
One thing that I miss in MMEX is a way to create a repeating (monthly) transaction that is kind of virtual, I mean, there is a number of transactions that occur in a month that are variable in number and in value; like how much do we spend in food, or in fuel, etc. If we take a close look we can calculate an average for that and place a repeating transaction in the end of the month. For me that is a 'virtual' transaction, because it's just created to help me forecast the future in the Cash Flow report.
The problem is that if I create a monthly transaction at the 30th of the month and today is the 28th, in the cash flow that virtual transaction is going to be counted in (with just 2 days left in the month). What I would like is MMEX to calculate a weighted value of that virtual transaction and use the whole value in the next months.
Is it possible to do it with MMEX by now? I think not, so I'm going to mess a little bit the code to add this feature (at least for me, my customized MMEX version). I don't know if is there anyone with a clever idea to do this, but I was thinking about creating a new repeat type - 'monthly (virtual)'. It's more a hack and probably it's not very elegant; suggestions are very welcome!
Cheers,
Henrique
One thing that I miss in MMEX is a way to create a repeating (monthly) transaction that is kind of virtual, I mean, there is a number of transactions that occur in a month that are variable in number and in value; like how much do we spend in food, or in fuel, etc. If we take a close look we can calculate an average for that and place a repeating transaction in the end of the month. For me that is a 'virtual' transaction, because it's just created to help me forecast the future in the Cash Flow report.
The problem is that if I create a monthly transaction at the 30th of the month and today is the 28th, in the cash flow that virtual transaction is going to be counted in (with just 2 days left in the month). What I would like is MMEX to calculate a weighted value of that virtual transaction and use the whole value in the next months.
Is it possible to do it with MMEX by now? I think not, so I'm going to mess a little bit the code to add this feature (at least for me, my customized MMEX version). I don't know if is there anyone with a clever idea to do this, but I was thinking about creating a new repeat type - 'monthly (virtual)'. It's more a hack and probably it's not very elegant; suggestions are very welcome!
Cheers,
Henrique
Last edited by hmaac on Tue Oct 13, 2009 10:45 pm, edited 1 time in total.
Re: Repeating virtual transaction
Ok,
I changed the code to do what I talked about. Now MMEX is working exactly like I wanted (just missing the Cash Flow Report in a Calendar view - next step )
As I said, if anybody is interested, just say so. By the way, is it possible to create a branch in SVN where I could commit my stuff so MMEX developers could checkout this and take a look?
Cheers,
Henrique
I changed the code to do what I talked about. Now MMEX is working exactly like I wanted (just missing the Cash Flow Report in a Calendar view - next step )
As I said, if anybody is interested, just say so. By the way, is it possible to create a branch in SVN where I could commit my stuff so MMEX developers could checkout this and take a look?
Cheers,
Henrique
-
- Super MMEX User
- Posts: 102
- Joined: Tue May 05, 2009 8:21 am
- Are you a spam bot?: No
- Location: Granbury, TX
Re: Repeating virtual transaction
If you would, post a patch file of the changes that you made.
Re: Repeating virtual transaction
Hi,
Just need to debug a little since I found a bug. The moment I finish with the bug I'll post here the patch.
Cheers,
Henrique
Just need to debug a little since I found a bug. The moment I finish with the bug I'll post here the patch.
Cheers,
Henrique
Re: Repeating virtual transaction
Hello again,
Here goes the patch attached. It's based on the HEAD version (Rev.597).
Cheers,
Henrique
PS - It's also included in the patch the change regarding the Cash Flow Forecast thread
Here goes the patch attached. It's based on the HEAD version (Rev.597).
Cheers,
Henrique
PS - It's also included in the patch the change regarding the Cash Flow Forecast thread
- Attachments
-
- patch597_Henrique.rar
- (36.5 KiB) Downloaded 521 times
-
- Super MMEX User
- Posts: 102
- Joined: Tue May 05, 2009 8:21 am
- Are you a spam bot?: No
- Location: Granbury, TX
Re: Patch: Repeating virtual transaction
Nikolay or Vadim,
Could you take a look at this patch?
Could you take a look at this patch?
-
- MMEX Developer
- Posts: 1535
- Joined: Sat Dec 06, 2008 2:27 pm
- Are you a spam bot?: No
- Location: Sankt-Petersburg, Russia
Re: Patch: Repeating virtual transaction
The patch seems outdated.
Could you please update it?
Could you please update it?
Re: Patch: Repeating virtual transaction
Hi,
Here goes the patch updated, with just the source (and .po files) version and another one with also the makefiles.
Regards,
Henrique
Here goes the patch updated, with just the source (and .po files) version and another one with also the makefiles.
Regards,
Henrique
- Attachments
-
- cashflow_vtransaction_677_all.zip
- (8.1 KiB) Downloaded 514 times
-
- cashflow_vtransaction_677_source.zip
- (7.65 KiB) Downloaded 510 times
-
- Super MMEX User
- Posts: 102
- Joined: Tue May 05, 2009 8:21 am
- Are you a spam bot?: No
- Location: Granbury, TX
Re: Patch: Repeating virtual transaction
I don't know if I am doing something wrong or what, but this is what I get when I try patching with either of these files:
I have the exact same setup as SVN branch 0.9.5, but it can't find the file. Should I be using trunk?
Code: Select all
$ patch -p0 < /Users/wesleyrellis/Downloads/cashflow_vtransaction_677.patch --dry-run
(Stripping trailing CRs from patch.)
patching file src/filtercashflowdialog.cpp
(Stripping trailing CRs from patch.)
patching file src/filtercashflowdialog.h
(Stripping trailing CRs from patch.)
can't find file to patch at input line 349
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: runtime/en/english-uk.po
|===================================================================
|--- runtime/en/english-uk.po (revision 594)
|+++ runtime/en/english-uk.po (working copy)
--------------------------
File to patch:
Re: Patch: Repeating virtual transaction
Yes,
It's based on the trunk version, so I think that should be it.
It's based on the trunk version, so I think that should be it.