Commit Graph

12215 Commits

Author SHA1 Message Date
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
Phil Longstaff
7c926769c2 Replace GNCBook by QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18211 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-16 22:18:32 +00:00
Phil Longstaff
db7b310796 Fix bug 587436 – Make Bayesian Matching ON by default
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18210 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-14 22:26:10 +00:00
Phil Longstaff
cd8819cf07 Fix bug 588212 – PgSql: Pop-up dialog for overwriting db contents even with blank database
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
2009-07-14 21:33:24 +00:00
Charles Day
5318f379fd Patch by John Ralls. Integrates the gnucash menus into the MacOSX menubar.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18208 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 20:40:45 +00:00
Charles Day
afe64deb46 Patch by John Ralls. Permits binreloc to work from inside a MacOSX application bundle.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18207 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 20:39:44 +00:00
Charles Day
cd3df9ae82 Patch by John Ralls. Provides (and installs when appropriate) a special gnucash-setup-env for OSX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18206 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 20:38:44 +00:00
Charles Day
f729c3ec94 Patch by John Ralls. Adjust configure.in for Mac compilation with Quartz.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18205 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 20:34:42 +00:00
Phil Longstaff
ec40dfddbb Replace GNCBook by QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18204 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 16:44:22 +00:00
Phil Longstaff
3bc9f56800 Replace GNCBook with QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18203 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 16:43:39 +00:00
Phil Longstaff
7bec19eef9 Replace GNCBook with QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18202 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 16:43:01 +00:00
Phil Longstaff
cb9b4afbac Replace GNCBook with QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18201 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 16:42:01 +00:00
Phil Longstaff
4b9fe8e22e Replace GNCBook by QofBook. Currently, GNCBook is #define'd to be QofBook. An upcoming change will create GncBook as a subclass
of QofBook, so this needs to be cleaned up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18200 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-13 16:41:02 +00:00
Phil Longstaff
e0f11ece71 Patch by Jim Raehl
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
2009-07-11 19:46:04 +00:00
Phil Longstaff
e719da4d81 Update CSS style sheet to use font buttons rather than strings. The font weight and style can be set,
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
2009-07-11 19:09:53 +00:00
Phil Longstaff
531e3b7319 Add new stylesheet to provide css information. Allows users to specify font/style info for various
parts of the report.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18197 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-11 03:43:02 +00:00
Phil Longstaff
33224441c8 If a report defines style-text, that text will be added to the report header as css style info.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18196 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-11 01:21:08 +00:00
Christian Stimming
9ec94c8581 Updated Korean translation by yongdoria.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18195 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-10 19:58:31 +00:00
Phil Longstaff
9dbe12155b Fix crash for "save as" if sqlite3 backend not available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18194 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-09 23:00:57 +00:00
Phil Longstaff
32ee13de24 Update release number
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18190 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-07 22:07:50 +00:00
Charles Day
ac30591d8b Bug #587913: Register: Don't mark the account cell as changed if the name hasn't changed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18188 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-07 21:15:01 +00:00
Charles Day
6c1a471a72 Register: Clarify a debugging message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18187 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-07 20:09:14 +00:00
Derek Atkins
a39b4c0c0d Let the trap happen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18185 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-07 02:45:46 +00:00