Commit Graph

13164 Commits

Author SHA1 Message Date
Geert Janssens
645be3a163 Bug #504954 - Wrong calculation of TAX
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19475 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-26 16:35:12 +00:00
Geert Janssens
63573c9080 Translatable string fixes by Yasuaki Taniguchi
One is on the price editor. Namespace: is not marked translatable.

Another is about a tip for account editor window. The label
"Edit->Income tax Options" was
changed to "Edit->Tax Report Options" but an old msgid remains on tip.

The last is on the Tax Table. The label "_Edit" is not marked
translatable but it should be.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19474 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-26 11:17:52 +00:00
Christian Stimming
64c0790c29 Replace misleading "Passiva" in accounts/de_DE/* by "Fremdkapital" with description "alle Verbindlichkeiten"
Patch by Frank H. Ellenberger.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19471 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-25 12:24:59 +00:00
Christian Stimming
e0e1fba675 Add functions to calculate the cash-flow numbers that will be generated by a Scheduled Transaction. Unfinished, though.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19470 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-24 20:23:27 +00:00
Christian Stimming
dfee800c87 I18n: Replace untranslatable sub-strings by the correct full strings.
The implementation is a hacky workaround, but at least better than
having weird translations as in the current state. Note: Even
though new strings are introduced, they are not yet used in order
not to break the string freeze here. The new strings need to
be activated once the 2.4.0 string freeze is lifted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19469 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-24 20:23:12 +00:00
Cristian Marchi
628a2b1b05 Updated Dutch translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19468 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-24 12:42:36 +00:00
Christian Stimming
fd2bbf47c4 Add aqbanking5 extensions of GWEN_GUI object.
We need to locally store a reference to that particular GWEN_GUI
object that was used in Extend because we have more than one such
object in use inside gnucash (currently). If accidentally the wrong
one would be used in Unextend, a crash occurs.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19465 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-22 20:48:55 +00:00
Christian Stimming
238086f863 Fix erroneous place of "Bildung" account in hierarchy: Was moved to top-level due to double parent tag.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19464 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-22 19:13:00 +00:00
Christian Stimming
3553df6441 Add new function gnc_sx_get_num_occur_daterange and unittests for this in test-sx.c.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19463 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-22 11:10:25 +00:00
Christian Stimming
de83edb352 And more const-correctnes in SchedXaction.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19462 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-22 11:10:12 +00:00
John Ralls
b5fd6ecee2 [Bug 560052] Force use of internal strptime to work around bug in the Leopard libc.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19461 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 23:52:27 +00:00
Christian Stimming
f3dfae15c9 Make sx-instance-model more const-correct. Improve documentation.
Fix minor memory leak in gnc_sx_get_current_instances(void) - was not
free'ing the GDate of now.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19459 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 20:57:31 +00:00
Christian Stimming
5cacefebc2 Impove const-correctness of SchedXaction.h functions; improve documentation.
Also, replace "void *" by pointers to the actual type.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19458 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 20:57:19 +00:00
Christian Stimming
492c69f070 Unify label with src/gnome/gnc-plugin-page-register.c:379.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19456 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 19:30:06 +00:00
Geert Janssens
d273e7288d Move business-reports to the reports module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19454 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 17:02:42 +00:00
Geert Janssens
72e3e084b1 Automatically map pre-2.3.15 report option names to their new 2.3.15 equivalents.
This will ensure that users won't lose the settings they stored in saved reports
and open report windows when switching from 2.2.x to 2.4.

Note that this only works in one direction, from 2.2.x to 2.4. If a user switches
back to 2.2.x, the open report windows will lose many settings, almost resetting
them to their default state. Saved reports won't have this problem as they are
copied to a new file during the migration.

In detail:
For open reports:
pre-2.3.15 -> 2.3.15+ : options for open reports will be migrated
2.3.15+ -> pre-2.3.15 : options for open reports will be migrated

For saved reports:
2.2.x -> 2.3.15+      : all options will be migrated, if saved-reports-2.4
                        does not yet exist
pre-2.3.15 -> 2.3.15+ : options for saved reports won't be migrated but reports
                        continue to work. It would be best to save the reports again,
                        but my scheme-fu is not good enough to let the code do that
                        automatically. Alternatively users should remove the file
                        saved-reports-2.4 to recreate it on the next run, based on
                        saved-reports-2.0.
2.3.15+ -> 2.2.x      : options are unaffected, sine 2.2.x and 2.15 use different
                        saved reports files
2.3.15+ -> pre-2.3.15 : reports saved in 2.3.15 will lose their options, older reports
                        are unaffected. But returning to 2.3.15+, the options will
                        continue to work.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19451 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-21 15:16:42 +00:00
Geert Janssens
7b8fbd7835 Bug #627325 - Update Subversion URL, patch by Yasuaki Taniguchi
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19448 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-19 08:43:33 +00:00
Christian Stimming
1a557bcff5 Aqbanking: Enable gwengui-gtk2 implementation and fix setup wizard.
Setup wizard was missing OnlineInit/OnlineFini calls around it; with
them and the newest gwenhywfar, the setup wizard is now working again
in a gtk2 implementation.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19447 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-18 20:32:42 +00:00
Christian Stimming
0af1c605c2 Add lookup of linker flags of libgwenhyfar-gui-gtk2.
It is still disabled until more testing has been done, though.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19446 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 21:30:17 +00:00
Christian Stimming
0f7bed2537 Add instantiation of gwengui-gtk2 object in gnucash, which enables the setup wizard again, but it doesn't fully work yet.
In particular, a quick test runs into significant UI work which is
still needed, and also occasional crashes might occur. Hence, the
gwengui-gtk2 parts have to be enabled manually by un-commenting
USING_GWENHYWFAR_GTK2_GUI.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19445 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 21:05:40 +00:00
Christian Stimming
61c0f6d15a Minor simplification of aqbanking version number check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19444 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 20:16:32 +00:00
Christian Stimming
95e41e1235 Check for upgrading an older aqbanking configuration to its current version.
This way, an older configuration is now updated automatically.

Patch by Bill Nottingham, confirmed by Martin Preuss, adapted to aqbanking5 by myself.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19443 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 20:16:18 +00:00
Christian Stimming
5e68bc0093 Bug #625193: Move newly introduced search-by-id functions into src/engine.
Patch by Mike Evans.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19442 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 19:52:24 +00:00
Christian Stimming
864311e8a3 update po/de.po after r19435 msgmerge
1. 2 dirty and 2 new strings
2. partial spell verification
 entity -> Entität
 small typos

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19441 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 19:50:13 +00:00
Christian Stimming
eee03f03c9 correct syntax error in po/glossary/de.po
" must be quoted in strings.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19440 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 19:49:59 +00:00
Cristian Marchi
7a4178bb5d Updated Latvian translation of business account chart by Valdis Vītoliņš.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19439 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 12:02:00 +00:00
Cristian Marchi
3aedfb1109 Updated Latvian translation by Valdis Vītoliņš.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19438 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-17 11:57:23 +00:00
Phil Longstaff
ffa7f72dbc Update release number to 2.3.15
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19436 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-15 18:27:06 +00:00
Christian Stimming
9d7b03615f Update po files with up-to-date pot template.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19435 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-15 09:20:18 +00:00
Christian Stimming
35ba93ed48 Remove unused file from both SVN and POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19434 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-15 09:05:05 +00:00
Phil Longstaff
d1af4c3091 Get library from correct directory - fixes "make check"
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19433 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-15 00:03:13 +00:00
Christian Stimming
ef26cb58ea Bug #626459: Change Transaction Report default account selection to none
I think in the specific case of the
"Transaction Report" this is the better choice. The error message
will be clear enough ("No accounts selected. Click here to Edit report
options"), and it will probably meet the user expectation that some account
needs to be selected anyway before something can be seen.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19432 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:57:26 +00:00
Christian Stimming
5fbfa23dbb Bug #625193: Added 'search by ID' in python binding for invoices, customers and bills.
Patch by Mike E and Mark Jenkins:

When creating or appending to invoices, customers and bills, searching by ID is
likely more useful than by GUID.  I've added this functionality to the Python
bindings.

Search by ID using the python code:
tmp = gnucash.gnucash_core_c.search_invoice_on_id(ID,book.instance)
if tmp:
  invoice =  gnucash.gnucash_business.Invoice(instance=tmp)

Use the invoice object as in sample_scripts/simple_invoice_insert.py

I support this patch, but I've made a few improvments of my own.

I switched up the arguments in search_customer_on_id, search_invoice_on_id,
search_bill_on_id to have Book first and ID second. The reason for this was to
make these functions more consistent with the other functions where a search is
done through a book on a particular attribute.

Also added some specific python bindings support to allow this to be used as
methods of Book: Book.CustomerLookupByID, Book.InvoiceLookupByID,
Book.BillLoookupByID.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19431 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:48:18 +00:00
Christian Stimming
f8df02cdb4 Bug #624721: Show backtrace for errors in eguile templates
Patch by Matthijs Kooijman:

The current eguile template implementation catches errors that occur while
evaluating an eguile template. However, only the error is shown, not a
backtrace (so no location of the error either).

The attached patch modifies the error handling to also capture the stack
backtrace, using a lazy exception handler (e.g., capture the stack before
unwinding the stack to the real exception handler).

To extract only the relevant part of the stack (e.g., the part inside the
eguile template, not the tens of stack frames leading up to the report
rendering), a stack dump is made just before evaluating the eguile template (so
a sort of "diff" can be made).

For more details, see the extensive comments in the patch itself.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19430 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:48:05 +00:00
Christian Stimming
044873ee08 Bug #616613: Automatically append the extension if user forgot append them.
Patch by "Bob":

The enclosed patch simply tests for a period in the file name,
if one exists it leaves it alone,
if not, it adds one plus a default extension.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19429 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:47:53 +00:00
Christian Stimming
0d9917127f Bug #626403: Fix inconsistent formatting between stylesheets (Webkit vs. gtkhtml)
Patch by Alex Aycinena:

The 'default' stylesheet formats the balance sheet, cash flow, income statement
and transaction reports properly under webkit but not under gtkhtml.

The 'easy', 'footer', and 'technicolor' stylesheets are the reverse; that is,
they format the balance sheet, cash flow, income statement and transaction
reports properly under gtkhtml but not under webkit, except that the 'footer'
stylesheet also has some formatting problems with gtkhtml as well.

The attached patch file corrects these problems. Specifically:

- styles that are missing in the 'footer' stylesheet (compared to 'easy') are
added

- the function 'gnc-html-engine-supports-css' is used in the 'default', 'easy',
'footer' and 'technicolor' stylesheets to provide styles for either webkit or
gtkhtml

- the taxtxf.scm report file is simplified to take advantage of these changes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19428 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:14:37 +00:00
Christian Stimming
0c41000c7a de.po: correction of "Income Tax Identity"
This term is used in the first dialog of "Ta_x Report Options".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19427 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:11:23 +00:00
Geert Janssens
fee5739d3d Dummy commit to test mailing list hooks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19426 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 16:02:53 +00:00
Geert Janssens
ccb3635820 Fix typo in comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19425 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 09:30:10 +00:00
Geert Janssens
1575bb6cde Allow negative tax percentages.
This allows to model some tax rules for trade between European countries.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19424 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 09:29:30 +00:00
Geert Janssens
cf899c042c Convert glade files to gtk+2.10, last batch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19423 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-13 14:37:56 +00:00
Christian Stimming
100ba4a4e7 Fix stupid compiler error.
(Should compile first, then commit, not the other way round.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19422 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-12 20:20:10 +00:00
Christian Stimming
d743401986 Add error message if the unimplemented aqbanking setup button is pressed.
Please see http://lists.gnucash.org/pipermail/gnucash-devel/2010-August/029188.html
and http://lists.gnucash.org/pipermail/gnucash-devel/2010-August/029189.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19421 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-12 20:18:44 +00:00
Christian Stimming
0197ca7d42 Copy OpenOffice.org python macro for import of the gnucash file to here because its original download location is hard to reach.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19420 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-12 19:59:57 +00:00
Cristian Marchi
449708bf1c Updated Italian translation by Cristian Marchi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19416 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-10 13:34:37 +00:00
Geert Janssens
64efd1f35c Fix compiler warning
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19415 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-08 14:58:00 +00:00
Cristian Marchi
f03c70d4d6 Updated Japanese translation by Yasuaki Taniguchi, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19414 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-08 09:01:25 +00:00
Phil Longstaff
bbe16a6853 Bug #625697: Prior patch, Changeset 19376, broke reports for non-default stylesheets
Patch by Frank Ellenberger


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19413 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-07 16:47:50 +00:00
Geert Janssens
0adcc00ad9 Fix compiler error reported by Herbert Thoma
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19410 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-06 14:22:37 +00:00
Geert Janssens
2c3c4bc0cb Replace a gkt+2.18 function to be gtk+2.10 compatible
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19409 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-06 08:28:23 +00:00