Re: Backup

2019-12-22 Thread Thomas Baumgart
Hi Ron,

On Montag, 23. Dezember 2019 01:54:35 CET Ron Bannister wrote:

> Where does one find the backup file?

KMyMoney supports two methods of backup:

a) a manual backup which you can reach via File/Backup and
b) an automatic backup which keeps the n latest copies of your file

For method a) the user supplies the path and filename. For method b)
the base name of the backup files is taken from the name of the original
data file and a suffix is appended. This suffix consists of a dot, a
number and a tilde. Method b) needs to be activated in the settings
and writes a backup each time the file is saved.

> How does one restore one's information from backup?

The file format of the backups is the same as in the original. So it's
a matter of opening the file. Rename or copy the file to your liking.

Hope that answers the question.


-- 

Regards

Thomas Baumgart

https://www.signal.org/   Signal, the better WhatsApp
-
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
-


signature.asc
Description: This is a digitally signed message part.


Backup

2019-12-22 Thread Ron Bannister

Where does one find the backup file?


How does one restore one's information from backup?


Re: Where to find this code

2019-12-22 Thread jvapr27
Hi Thomas, 

Thanks for the help. 

> The spot you found is not negating the value of each expense, but
> simply
> negates the value contained in the grid if the underlying account for
> the cell
> is an expense account. So I wonder if that would be the spot to
> achieve what
> you are trying. 

Right. I am thinking of using the same flag(whether the user wants to
chart the expneses downwards - negative scale) to determine if the
Transfers should also be ploted the same way. I need to test this but
personally, it makes sense to either plot both expenses and tranfers
negatively or neither. 

Basically, I took the Netflow report and created a "Cash flow" report
because the existing Cashflow shows a list of transactions instead of a
report showing the total cash flow for the period. Having the
transactions is nice but only when trying to dig deeper into where my
money went or where it came from. I believe the Netflow was intended to
be similar to a Statement of Cash Flow a.k.a Cash flow report. At least
I managed to get it close by having it show the transfers. Now I just
want to visualize it but without the graph going into the (x,-y) scale.


> KReportChartView::drawPivotChart receives all values in the parameter
> 'grid'.
> You may want to look into the construction of the grid to find the
> spot where
> the values of the transfers are inserted.

I do not want to change the data itself, just the way transfers and
negatives are displayed on the chart. I did trace it back to where the
data is inserted.. but I don't want to change it there as I am afraid
it may have reprecussions on the mathematical calculations being done
in other places. I really only want to change the visual side of
things. But I am glad you mentioned it because I did not even look to
see where the grid was coming in from. It was helpful to read through
that code too. 

Although I am focusing on the chart right now.. eventually I want to,
with community support, implement a flag to show values as positive or
negatives vs Debit and Credits. I know a lot of people would get
confused with the Debits and Credits reporting but I feel it would be
nice to have that feature if some of the users wanted it. 

For now.. i will keep studying the code and trying to make small
changes on my workstation until I get the hang of it. 

Thanks for the help so far! Much appreciated!

JV




On Sun, 2019-12-22 at 08:51 +0100, Thomas Baumgart wrote:
> Jesus,
> 
> On Samstag, 21. Dezember 2019 18:28:05 CET Jesus Varela wrote:
> 
> > Dev team,
> > 
> > I am trying to become more familiar with the code and am looking
> > for the
> > code that would control whether transfers are graphed and displayed
> > as
> > negative numbers in the reports. I want to display absolute values
> > on
> > charts and tables.
> 
> Not sure which report you want to modify, but there is e.g. a method
> called
> PivotTable::coloredAmount(). It is responsible to render the color
> for HTML
> reports. The callee of this method provides the value.
> 
> > I figured I would use this personal desire to get acquainted with
> > the code.
> > Any hints would be appreciated. I found the kreportchartview.cpp
> > and in
> > there is a variable to figure out if expenses should be negative or
> > not,
> > but I do not see anything for transfers. If it is there, I will
> > keep
> > looking. If I am on the wrong file, please let me know if you know
> > where I
> > should be looking.
> 
> KReportChartView::drawPivotChart receives all values in the parameter
> 'grid'.
> You may want to look into the construction of the grid to find the
> spot where
> the values of the transfers are inserted.
> 
> The spot you found is not negating the value of each expense, but
> simply
> negates the value contained in the grid if the underlying account for
> the cell
> is an expense account. So I wonder if that would be the spot to
> achieve what
> you are trying. 
> 
> > Just trying to make sure I am understanding the structure. I
> > haven't used
> > c++ in a long time.
> > 
> > Thanks in advance for any assistance.
> 
> Hope that helps. The reporting section is not my area of expertise.
> 
>