Commit Graph

12187 Commits

Author SHA1 Message Date
Phil Longstaff
f4998e9186 Fix bug 392357: Allow port specification for a database connection. For both mysql and pgsql,
the port number can be specified after the host, separated by a colon.  The URI spec is:

    mysql://hostname[:port]:dbname:username:password

where [:port] indicates that it is optional.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18271 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-22 20:17:37 +00:00
Phil Longstaff
5ea1310b7e Fix compilation problem - add GPOINTER_TO_UINT() cast
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18270 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-22 19:09:39 +00:00
Phil Longstaff
36ca18b274 Avoid CRIT message when loading root account which has NULL commodity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18269 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-22 18:56:23 +00:00
Christian Stimming
eb1796ea7b Partly reverting r18246: Disable writing of "hidden" and "placeholder" flags as XML tags.
Don't write new XML tags in version 2.3.x and 2.4.x because it
would mean 2.2.x cannot read those files again. But we can
enable writing these tags in 2.5.x or late in 2.4.x.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18268 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-21 20:39:54 +00:00
Cristian Marchi
c1679a1b1a Updated Japanese translation by KUSANO Takayuki
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18264 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-18 17:50:15 +00:00
Phil Longstaff
cf8b473d0a Fix win32 report directory startup problem on win32.
In order to help keep the various places run-time environment is created in sync, add a
comment to each place suggesting that environment changes should be reflected in all 4
places.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18263 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-18 16:49:40 +00:00
Phil Longstaff
513a610d0b Fix win32 gnucash.cmd creation to handle ability for reports to be dropped into the
installed report\standard-reports folder.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18260 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-18 00:11:03 +00:00
Phil Longstaff
deb37b99d1 Update release number to 2.3.4
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18258 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 22:56:08 +00:00
Phil Longstaff
f7b36d6821 Fix tests so that 'make check' will pass
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18257 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 22:17:23 +00:00
Phil Longstaff
3d09267a28 Rename functions from "file" to "xml" (e.g. xml_begin_session()) since this is the xml backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18256 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 19:43:37 +00:00
Christian Stimming
6c742233bf Updated Dutch translation by Erwin Poeze, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18255 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 19:10:41 +00:00
Phil Longstaff
3c716e5c18 Fix CRIT messages when loading budgets
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18254 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 17:09:28 +00:00
Phil Longstaff
7405f2485d Reports are now automatically picked up at startup time. Each file in the directory
share/gnucash/guile-modules/gnucash/report/standard-reports is assumed to be an SCM file which
defines a module which generates a report.

The business reports have not yet been converted.  A new element 'standard-reports' needs to be
added to the module definition.  I assume the business-reports.scm file sets up some resources
that the business reports use (e.g. the Business submenu under Reports).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18253 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-16 00:50:33 +00:00
Phil Longstaff
b83d32f83f Fix bug 591614: Saving to postgresql causes zombie scheduled transactions.
SX end date was not being stored.  It is now stored.

NOTE: This is a change in the db table schema.  You need to save your data to XML, then resave
to the database.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18252 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-15 21:09:47 +00:00
Phil Longstaff
f4d7272312 Ensure template root account is stored even if no scheduled transactions. Otherwise, when it
comes time to store the template account before the root, the account has a dangling parent guid.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18251 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-15 21:08:39 +00:00
Phil Longstaff
5f6813ed1e Add budget amounts table. This table contains 1 record per budget per account per period which
has an amount set.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18250 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-15 19:02:27 +00:00
Christian Stimming
afbe529777 Updated Danish translation, by Joe Hansen, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18249 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-15 08:56:19 +00:00
Phil Longstaff
a4ae2b6609 Save timespec values into 'timestamp' in mysql and pgsql.
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
2009-08-14 01:58:36 +00:00
Phil Longstaff
ae4199adfc 1) Use 'date' type on pgsql/mysql to save date values.
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
2009-08-14 00:29:52 +00:00
Phil Longstaff
e1318e0c1e Store account "hidden" and "placeholder" flags as booleans in the account record and with new
<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
2009-08-13 00:05:37 +00:00
Phil Longstaff
7998d0571d Placeholder was defined as a property but not properly registered with glib. Add it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18245 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-12 00:06:27 +00:00
Phil Longstaff
c1488da872 Add autoincrementing int primary column 'id' to recurrences, slots and taxtable_entries tables.
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
2009-08-11 23:51:37 +00:00
Phil Longstaff
b3ce7cd096 For versions table, use table name as primary key, and disallow NULL values for both fields
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18243 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-09 22:28:34 +00:00
Phil Longstaff
dd412f4d77 Store account in db even if commodity=NULL
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18242 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-09 22:26:01 +00:00
Phil Longstaff
5af21c133b Handle creation of autoinc columns correctly
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18241 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-09 22:25:22 +00:00
Phil Longstaff
f9822bd334 Save and restore root account to SQL dbs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18240 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-09 17:26:16 +00:00
Phil Longstaff
6356b0dcbf Fix bug 589418: commodities were not being stored properly. The old code used an INSERT if a
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
2009-08-08 16:19:57 +00:00
Charles Day
dc998a7408 GNCDateEdit: Fix r18237 by including localtime_r.h if necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18238 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-05 20:52:46 +00:00
Charles Day
fbb485c7ee Use localtime_r() instead of localtime() in GNCDateEdit. From audit of r17459.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18237 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-03 22:21:15 +00:00
Phil Longstaff
1217ce3b4d Add some machinery to the budget report to allow columns to be accumulated. This allows, for
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
2009-08-03 15:52:02 +00:00
Christian Stimming
9922c588da Updated Dutch translation by Erwin Poeze. Submitted through the Translation Project (indeed this update came just shortly after the previous commit)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18235 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 20:18:52 +00:00
Christian Stimming
91ccdb1f14 Updated Dutch translation by Erwin Poeze. Copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18234 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 19:39:57 +00:00
Phil Longstaff
7f402b4fb8 For income accounts, reverse sign of "difference" column so that positive values are good (more
than budget).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18233 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 18:50:15 +00:00
Phil Longstaff
1fc2b2067e Fix wrapping problems in budget cells (account labels and negative values)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18232 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 16:51:53 +00:00
Phil Longstaff
2e09bf1126 Add support to display negative values in red. Modify the budget report appropriately.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18231 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 13:36:29 +00:00
Phil Longstaff
ba946a9913 Change --enable-webkit configure option to --with-html-engine=XXX where XXX is "gtkhtml" (default)
or "webkit".



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18230 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 03:00:28 +00:00
Phil Longstaff
81ae680010 Center budget report period dates properly over the columns for that period
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18229 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-02 02:42:50 +00:00
Phil Longstaff
f09ebe955f Add an option to the budget report. If enabled, and an account does not have a budget value for
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
2009-08-02 01:08:06 +00:00
Christian Stimming
b85c21a2c2 Merge latest pot template into all .po translation files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18227 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-26 20:34:01 +00:00
Christian Stimming
d7a88892f1 Fix more signed vs. unsigned char pointer type conflicts.
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
2009-07-24 20:07:26 +00:00
Christian Stimming
0e72f8e066 Fix some signed vs. unsigned char pointer type conflicts.
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
2009-07-24 20:07:14 +00:00
Phil Longstaff
16abce8a29 Update version number to 2.3.3
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18222 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-20 23:17:11 +00:00
Christian Stimming
480e533c03 Add Korean translation of account charts by Jin-Hwan Jeong.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18219 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-19 20:23:21 +00:00
Phil Longstaff
6066b5613b Fix bug 585899 - environment variable GNC_DEFAULT_DATABASE can be used to set the default
database name for the Save As dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18218 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-19 20:16:44 +00:00
Phil Longstaff
787d8f6a39 Fix up some more reports to use cell tags which allow CSS style manipulation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18217 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-18 18:40:00 +00:00
Phil Longstaff
9afa0a2807 Fix bug 363339 – Exclude hidden accounts from reports
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
2009-07-18 16:12:02 +00:00
Phil Longstaff
e1d1e35332 Change some more cells to tagged cells for css
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18215 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-18 01:54:08 +00:00
Phil Longstaff
3a5149fb32 Fix some bugs converting from font name to css font style info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18214 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-18 01:53:15 +00:00
Phil Longstaff
fe0c1f1f85 Fix budget report so that it uses stylesheet tags so that fonts can be controlled
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18213 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-17 22:36:53 +00:00
Christian Stimming
9d962c9774 Updated Korean translation by yongdoria
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18212 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-17 18:11:15 +00:00