Commit Graph

13543 Commits

Author SHA1 Message Date
Cristian Marchi
c039773b51 Fix a typo.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20139 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 19:54:47 +00:00
Cristian Marchi
73c9e62ad7 Update Italian translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20138 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 19:09:42 +00:00
Geert Janssens
5802a37dbd Bug #629501 Nonexistent field in error message
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20137 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 14:23:20 +00:00
Geert Janssens
6fd224e598 Bug #467311 Print invoice button should be restored to View invoice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20136 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 11:52:28 +00:00
Geert Janssens
3a3308877d Bug #352057 button to create a new invoice when viewing an old one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20135 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 11:52:19 +00:00
Geert Janssens
db2194abc9 Add icons for Duplicate Invoice functionality
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20134 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 11:52:09 +00:00
Geert Janssens
86ba21c60e Whitespace cleanups
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20133 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 11:51:59 +00:00
Geert Janssens
d757ccc2f3 This patch adds a new option under Edit -> Preferences -> Date/Time
that looks like this:

 Date Completion
 When a date is entered without year, it should be taken:
 (*) In the current calendar year
 ( ) In a sliding 12-month window starting this many months before the
     current month:  [ 6 ]

Patch by Peter Selinger with minor modifications

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20132 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-21 11:51:40 +00:00
Christian Stimming
a90cd5fdf8 Bug #535774: Fix label for employee option on "Employee Report"
Patch by Bert Claesen:

The attached patch (against r20122) tries to solve bug #535774 and:

*Introduces Option naming consistent with report title (e.g. Customer Report
shows Customer in the Option screen)
*Removes the printf() default string in case no arguments where given
*Moves the docname up to a higher level for easy of overview

Cases default to a GNC-OWNER-VENDOR.

Note on the patch:
*As indicated in the comments, two functions are nearly identical, where in the
Vendor report the use of Vendor/Company is mixed. This can easily be moved into
one function as the footprint is the same.

cstim: I've clarified which ones of the functions returns translated vs.
untranslated strings, too.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20131 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-20 20:20:45 +00:00
Christian Stimming
2bab2d6f02 Remove old obsolete unused file from python wrappers.
Apparently this is unused since r17284.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20130 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-20 20:15:02 +00:00
Christian Stimming
f16a4e3a83 639980: Add EntryList and _gncEntry objects to list typemap.
Patch by bstpierre.org

Fix python failing getting invoice entry data.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20129 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-20 20:14:51 +00:00
Christian Stimming
0c425e1914 Bug #639906: Adding __str__ and __unicode__ methods to GncNumeric
Patch by Christoph Holtermann:

1) I decided to let the methods return "Division by Zero" for denom()==0.
2) As proposed in
http://stackoverflow.com/questions/1307014/python-str-versus-unicode i created
both __str__ and __unicode__.
3) I use format to fix the decimal places to 2. It would be nice if the number
would be configurable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20128 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-20 20:14:40 +00:00
Christian Stimming
f8d09913d0 Bug 637346: A small python doc enhancement, basically mentioning the wiki-page
Patch by Christoph Holtermann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20127 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-20 20:14:28 +00:00
Mike Alexander
0dee9da11b Fix a bug introduced in 20042 which caused lists of Scheme strings passed to C code to be garbage.
This caused online price quotes to fail for anything other than a currency.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20126 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:21:14 +00:00
Mike Alexander
6181f334f3 Make sure ENTER is balanced by LEAVE in gnc_commodity_set_quote_tz.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20125 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:18:00 +00:00
Mike Alexander
2f4e33a86f Make it possible to include trading accounts in the Income Statement and Profit and Loss reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20124 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-19 04:17:06 +00:00
John Ralls
8be9b0a9ad Enhanced database version handling.
* Add a macro GNC_RESAVE_VERSION which holds an svn revision number. 
* When fully saving a database put this number in versions with 
  table_name Gnucash-Resave.
* On database load, compare the current GNC_RESAVE_VERSION with the 
  Gnucash revision and Gnucash-Resave revision saved when the database 
  was created. 
* If the current GNC_RESAVE_VERSION > the saved Gnucash 
  version, then emit ERR_SQL_DB_TOO_OLD.
* If GNC_RESAVE_VERSION < the saved Gnucash-Resave, emit ERR_SQL_DB_TOO_NEW.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20123 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-18 23:42:48 +00:00
John Ralls
56f1e28e36 Minor fixes to g_test: Adjust MODULEPATH so that the boundary path delimiters go at invocation; add DEFAULT_INCLUDES to the test_foo_CFLAGS; include the required NULL third arg to g_test_init()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20121 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-18 18:16:58 +00:00
John Ralls
f8a0864175 Provide for safely overwriting a sql database by moving the existing
tables out of the way, writing new tables, and then dropping the old 
tables once everything has been saved.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20119 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-18 00:36:08 +00:00
Christian Stimming
a2cddf7678 Win32: Add missing link libraries to bi_import plugin. Necessary for win32 linking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20118 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-17 21:27:54 +00:00
John Ralls
a3bf3033b2 Bug #638225: Author Jim Radford. KVP lists are ordered so should not be sorted
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20117 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-17 16:55:39 +00:00
Christian Stimming
c870169c3c Additionally, make the "Duplicate Invoice" feature available as menu item and toolbar button when viewing an invoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20116 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-16 21:10:05 +00:00
Christian Stimming
9675bc0ef4 Implement "Duplicate Invoice" feature, where a new invoice is created as a copy of an old one with new date and new ID.
This patch makes this feature available as button "Duplicate" in the search window.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20115 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-16 21:09:53 +00:00
Christian Stimming
2d80ece799 Win32 build: Aqbanking has a patch now, but doesn't need autotools called.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20114 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-16 19:33:20 +00:00
Christian Stimming
b7cf646a2f Remove *.i files from doxygen input again because at least my doxygen-1.6.3 hangs on gnucash_core.i.
This is a follow-up to r19956, bug #637346.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20112 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 21:51:43 +00:00
Christian Stimming
c4a65e6e63 Make reconcile+update import action of r20021 bug#373415 enabled by default because it's so useful.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20111 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 21:05:26 +00:00
Christian Stimming
34613bc9c9 Bug #639498: Fix aqbanking-4.2.4 issue with "execute online transfer" on WinXP.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20108 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 20:33:28 +00:00
John Ralls
886cf5b4e5 Fix qof/test compilation errors, provide guard for glib_testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20107 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 19:11:42 +00:00
Christian Stimming
dc4ec4a8ea Remove the old "import-export/hbci" module because it is no longer supported.
The newer "import-export/aqbanking" has been in use since aqbanking-3.0.0.
As it turned out, we require aqbanking-4.0.0 now anyway, which was
release 2009-05-30. Consequently, the old module isn't being maintained
by us and so needs to be removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20106 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 09:52:53 +00:00
Christian Stimming
cdb4014700 Bug #638689: Require libaqbanking >= 4.0.0 because earlier versions are not supported correctly by our code anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20105 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 09:52:41 +00:00
Christian Stimming
eae03c2003 Disable usage of qof/test for now because is does not yet compile.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20104 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-15 09:52:27 +00:00
John Ralls
886da7638d Add a read-only attribute to QofBook and check of same to
qof_instance_begin_edit. Add qof_session_safe_save. Add unit tests for 
these changes.

QofBook read-only attribute is to prevent starting an edit when the 
version of Gnucash which created a dataset is newer than the one 
currently running. This is to prevent writing records of an old format 
into an existing data set. The user can use File>Save As to create a new 
QofSession which will write a completely new dataset in the current 
format. This is an important safety feature for future versions of 
Gnucash which will not bring all of a dataset into memory, instead 
loading only what is immediately needed.

Safe-save is the Qof access to allow writing out a dataset to an 
existing server database (i.e., postgresql or mysql) while maintaining 
the ability to both transaction-protect saving individual records while 
maintaining the ability to rollback the entire save if something goes 
wrong.

The unit test framework is added to enable testing these components. 
More tests will be added in a later commit.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20103 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 23:25:27 +00:00
John Ralls
d8733bf204 Provide glib unit testing template files to make it easier to add unit testing to modules
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20102 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 22:03:56 +00:00
Geert Janssens
19d75d552b Bug 639322 part 3: provide users with a sensible first time "Save As..." path on Windows
While $HOME is fine on linux, on Windows the most sensible location is "My Documents"
(or its translated equivalent).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20101 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:47:44 +00:00
Geert Janssens
6fb1dd93ee Bug 639322 part 2b: display an error message if a user attempts to export to somewhere in gnc_dotgnucash_dir
and add a hint for translators to the error message string

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20100 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:47:35 +00:00
Geert Janssens
ff4ff5a752 Bug 639322 part 2: display an error message if a user attempts to save beneath gnc_dotgnucash_dir
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20099 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:47:27 +00:00
Geert Janssens
ff6c190003 Bug 639322 part 1: add extension .gcm to future state files
Old state files are still read (if no new equivalent exists yet)
but will never be written to again.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20098 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:47:14 +00:00
Geert Janssens
35f32b3b70 Remove unused variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20097 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:47:04 +00:00
Geert Janssens
20860fba9f Remove obsolete compatibility code in the state file processing.
No version GnuCash 2.2.x version will produce state files with
spaces in their key names, and we don't need to worry about older
compatibility (migrating from 2.0.x should always happen via 2.2.x).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20096 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:46:56 +00:00
Geert Janssens
d87afa65b4 Fix some spelling errors in doxigen documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20095 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:46:47 +00:00
Cristian Marchi
ea5f93b49e Remove the word "days" because it is also located after the near field.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20094 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-14 21:10:18 +00:00
Frank H. Ellenberger
d47c7c5ec0 Improve the for translators problematic format string from gnc_entry_ledger_verify_acc_cell_ok
This version uses 2 separate sentences,
mentions currencies and
gives a clue for the account type.
Add enable basic doxygen output.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20089 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 23:12:41 +00:00
Christian Stimming
15bc162e7c Bug #639365: Revert r18546 so that the bills-due dialog displays only bills but not invoices.
The INVOICE_TYPE string unfortunately is
stored in translated form due to the usage of gncInvoiceGetType()
for user-visible strings as well. Hence, as an exception we
must also search for the translated here even though it's an
internal flag.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20087 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 19:05:59 +00:00
Frank H. Ellenberger
7f25a62f33 Add python in section optional of README.dependencies
Additional: explain alternatives and optional parts

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20086 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 17:25:26 +00:00
Derek Atkins
22799c48d7 Revert r20082 (re-enable plugins)
Get the bi_import plugin building on Windows by including missing libc functions

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20085 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 16:52:59 +00:00
Frank H. Ellenberger
b367ec1bb7 Bug 638842 - Estonia adopted the Euro on 01.01.2011
Thanks to Toomas Tamm

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20083 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 02:47:29 +00:00
Phil Longstaff
4e25946061 Disable building the plugins directory until windows build issues can be fixed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20082 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-13 02:47:03 +00:00
Christian Stimming
6f533fd6fe Add function for creating a new copy of an existing GncInvoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20081 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-12 20:40:51 +00:00
Christian Stimming
45749ffcbc Fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20079 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-12 20:04:25 +00:00
Christian Stimming
7c276dabd8 Bug #636907: Improve "Close when finished" handling in "Online Banking Connection Window"
Patch by Manfred Usselmann:

This patch adds a toggle action to the online banking menu, which allows to
open and close the online banking log window. In addition it adds an option to
the online banking preferences to keep the log window open after the transfer
has finished.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20078 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-12 19:47:34 +00:00