NOTE: with this change, the format of the tables has changed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18248 57a11ea4-9604-0410-9ed3-97b8803252fd
2) When loading from db, don't make template root account child of main root account
NOTE: This change will invalidate any db files stored in sqlite3/mysql/pgsql. Save your file to
XML, rebuild, load from XML and save in new format.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18247 57a11ea4-9604-0410-9ed3-97b8803252fd
<hidden> and <placeholder> tags in the XML file. The values are still stored in the slots as
well for backward compatibility.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18246 57a11ea4-9604-0410-9ed3-97b8803252fd
THIS REQUIRES THAT YOUR DATABASE BE DELETED AND RECREATED - You can back it up to an XML file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18244 57a11ea4-9604-0410-9ed3-97b8803252fd
completely new db was being saved or if the object was a new object. This didn't handle the case
where a currency (all of which are created at startup time) is used for the first time in an
existing file. In this case, the commodity would *not* be stored. This was an attempt to avoid
testing each time to see whether the commodity needed to be stored or not. For now, the test
every time is re-instated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18239 57a11ea4-9604-0410-9ed3-97b8803252fd
example, all months after the current one to be combined into a single one to save space.
At this point, this ability is not visible to the user. I first need to figure out how to find
the current period in a budget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18236 57a11ea4-9604-0410-9ed3-97b8803252fd
the period, the budget values for all child accounts are added. If the chart of accounts is
set up so that only leaf accounts have transactions, this allows budget values to be assigned
either to all children and not the parent (they will be summed) or the parent.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18228 57a11ea4-9604-0410-9ed3-97b8803252fd
This patch contains those cases where a cast was unavoidable.
Patch by J. Alex Aycinena. Detailed explanation follows:
1 - src/register/register-gnome/gnucash-item-edit.c
The variable 'sel' is set with 'gtk_selection_data_get_text' which
returns a 'guchar *'; 'sel' is then used by functions
'gtk_editable_insert_text' and 'strlen' which require 'gchar *', so
there is no alternative but to cast.
2 - src/backend/xml/gnc-budget-xml-v2.c
The functions 'xmlNewNode'and 'xmlSetProp' require arguments that are
of type 'const xmlChar *' but the arguments are string literals (char
*). Can string literals be set up as type 'const xmlChar *'? The
patchfile has them being cast. BAD_CAST is defined for this purpose.
3 - src/backend/xml/gnc-schedxaction-xml-v2.c
Like above, the function 'xmlNewNode' requires arguments that are of
type 'const xmlChar *' but the arguments are string literals (char *).
In the three other changes the type 'const xmlChar *' needs to be
changed to 'char *' to be used by 'strcmp'.
4 - src/backend/xml/gnc-recurrence-xml-v2.c
Like above for the functions 'xmlNewNode'and 'xmlSetProp'.
5 - src/html/gnc-html-graph-gog-webkit.c
The function 'g_base64_encode' requires type 'guchar *' for the
argument and changing the variable to this caused other problems so
used casting instead.
6 - src/libqof/backend/file/qsf-xml-map.c (6 occurances)
The first occurance was solved by changing the type declaration, but
the other 5 required casting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18226 57a11ea4-9604-0410-9ed3-97b8803252fd
This patch chooses the correct char type to resolve the type conflict.
Patch by J. Alex Aycinena.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18225 57a11ea4-9604-0410-9ed3-97b8803252fd
New check box added below account list to toggle excluding hidden accounts from the report.
Default is to exclude.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18216 57a11ea4-9604-0410-9ed3-97b8803252fd
When you ask for the tables in a postgres db, postgres returns 7 tables which are in the information
schema. These tables need to be filtered out when gnucash checks whether the db is empty or not.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18209 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix bug 587853/585939. When parsing file: or xml: uri, handle file: and file://, xml: and xml://
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18199 57a11ea4-9604-0410-9ed3-97b8803252fd
but colour and background colour cannot yet be set. Also, alignment is fixed by the stylesheet.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18198 57a11ea4-9604-0410-9ed3-97b8803252fd