Commit Graph

14531 Commits

Author SHA1 Message Date
Geert Janssens
5c48dc277c Bug #670002 - updates to comments format for gnc-fq-check and
gnc-fq-helper utilities.
Patch by Dmitry Smirnov

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22025 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-15 11:22:43 +00:00
Geert Janssens
c16dcef320 Fix "'txn' may be used uninitialized in this function" warning
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22021 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-13 15:47:43 +00:00
Geert Janssens
93535c9557 Bug 632931: Advanced Portfolio: total gains does not include income
- new column layout as suggested on bugzilla. Total return is now an amount
  (not a percentage), and includes income as well as capital gains. New
  column "Rate of return" gives the percentage.
- changed default value for "Ignore brokerage fees when calculating
  returns", the default is now to NOT ignore the fees.

Patch by Sebastien Alborini <salborini@gmail.com>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22018 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-13 15:02:24 +00:00
Geert Janssens
7729673280 Bug #669494 - Swedish account plan provided (BAS 2012)
Additionally this commit adds some required changes to get the
Swedish account plans to actually show up in GnuCash (both BAS and the
earlier committed Swedish small business account plan)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22012 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 20:29:01 +00:00
Geert Janssens
06a78707b2 Fix a GtkWarning in the Account Hierarchy Assistant which occurs if the
Example Account file doesn't contain a long description.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22011 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 20:28:50 +00:00
Geert Janssens
a63e86c733 Bug #584819 - Company name is not shown by default on some reports
Patch by Chris Dennis

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22010 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 18:43:13 +00:00
Cristian Marchi
2d4c0ed2e7 Fix a typo.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22007 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 10:20:31 +00:00
Cristian Marchi
d5b014c19d Fix translatable strings code for tax invoice report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22006 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 10:07:27 +00:00
Geert Janssens
5175fce457 Win32: tag builds when a tag is not x.y.z (like 2.4.10-1) fail to upload
due to a typo in the build scripts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22005 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 09:44:40 +00:00
Cristian Marchi
d242a54c58 Fix translatable strings code for some reports. Patch provided by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22004 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 09:15:05 +00:00
Geert Janssens
b6135110ec Keep the lot list sorted during payment processing to ensure the oldest
open document is processed first.
In the process, I renamed two helper functions (one of which I had to
extend to work with payment lots).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22002 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:35:15 +00:00
Geert Janssens
6d76a40653 Remove some obsolete (and now malfunctioning) code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22001 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:35:05 +00:00
Geert Janssens
de91d24722 Rework interaction between payments and invoices part 2.
This commit deals with paying invoices.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22000 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:55 +00:00
Geert Janssens
6467765d7b Small fixes in comments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21999 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:45 +00:00
Geert Janssens
37b3e98a83 Improve open lot selection when posting an invoice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21998 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:36 +00:00
Geert Janssens
a96a6da00a Optimization: don't sort lot list if it will only be traversed to calculate a sum
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21997 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:28 +00:00
Geert Janssens
1a49332e40 Rework interaction between payments and invoices.
This commit deals with invoice posting and unposting only.
Before invoices and payments shared the same lot (meaning a payment was
added to an existing invoice lot or vice versa).
Now payments and lots have their own separate lots and payments are
linked to invoices via linking transactions. This opens the way to "pay"
invoices with credit notes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21996 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:18 +00:00
Geert Janssens
85731d3678 Refactor code to avoid duplication
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21995 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:34:02 +00:00
Geert Janssens
82e76ff58b Fix credit card charges for credited vouchers ("credit notes for
employees")

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21994 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:53 +00:00
Geert Janssens
7d6bc3fac8 Hide some now internal-only functions from the public GncEntry interface
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21993 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:43 +00:00
Geert Janssens
6f89b85349 Make invoice totals always document values. These functions are only
used for displaying.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21992 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:34 +00:00
Geert Janssens
d8d7e90f13 Modify Tax Invoice report to work properly with credit notes
Note that contrary to the other invoice reports the invoice title is not
automatically set to "Credit Note", because on the tax invoice report
that title is a user settable option.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21991 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:25 +00:00
Geert Janssens
45d0b1d19b Introduce two convenience functions to simplify quantity handling for invoice/credit note entries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21990 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:15 +00:00
Geert Janssens
4a9933211a Modify fancy invoice to work with credit notes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21989 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:33:06 +00:00
Geert Janssens
cd2cecc088 Modify gncInvoice to use the new entry value getters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21988 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:56 +00:00
Geert Janssens
daca5e3e88 Update invoice reports to use the new entry value getters.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21987 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:47 +00:00
Geert Janssens
2197c038fd Introduce entry getters that return the balance value as opposed to
internal value and document value.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21986 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:38 +00:00
Geert Janssens
3c8ae9506c Rework entry value getters
Make it clear when the values are rounded or not and that the values are
as on the document (opposed to how they impact the balance).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21985 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:27 +00:00
Geert Janssens
a748f123dd Use better variable name to avoid confusion with is_cn
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21984 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:16 +00:00
Geert Janssens
3f6629d853 Small cleanups:
- improve comments, fix spelling
- fix some static code analysis warnings
- expand and remove a macro that wasn't adding much other than reduced
code readability

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21983 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:32:07 +00:00
Geert Janssens
820b2bbebf Rework payment dialog for credit notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21982 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 15:31:57 +00:00
Geert Janssens
6e5e7b3a5e Add function to set a feature as used and use it for a first feature:
Credit Notes.
Other changes in this commit:
* The feature code moved to core-utils, because the engine can't use
app-utils.
* I remove the gettext wrapper around the feature description. As
mentioned on the mailing list, by definition unknown features can't have
translated descriptions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21981 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 14:40:52 +00:00
Christian Stimming
f5a1d18d65 Win32 build: Update gtk to 2.4.10 [21977] and update other packages to Nov 2011 versions as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21980 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-10 09:19:47 +00:00
Geert Janssens
4119c0f2da Move the features tests to its own source files.
This allows for
- other engine consumers to use the features test as well (think
CuteCash, python bindings,...)
- a central point for developers to check for feature definitions
- a central point to manage all feature related code

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21978 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-09 17:17:59 +00:00
Geert Janssens
54d2786216 Restore missing customer|vendor in easy invoice.
This got broken in r21552

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21931 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-03 13:49:15 +00:00
Mike Evans
ec79f4286c Restore missing customer|vendor in printable invoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21930 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-03 13:16:23 +00:00
Phil Longstaff
fc0bbaa449 Add more order gobject properties and convert sql backend to use them for loading/saving.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21922 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-31 01:17:20 +00:00
Phil Longstaff
d9a86d9f37 Add more properties to employee object and convert sql backend to use them to save/load objects
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21921 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-31 00:00:15 +00:00
Cristian Marchi
5724c2f1b7 Bug#667105: Fix grammatical error in some accounts file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21920 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 13:38:32 +00:00
Cristian Marchi
b6672a3e89 Bug #667276: Fix Korean accounts files. Patch submitted by Eulgyoon Lim.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21919 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 13:35:12 +00:00
John Ralls
53c7d0c8d1 [r21886][Bug #667900] No clipboard copy and paste
Forward-port of r21886, done in the 2.4 branch to quickly resolve bug
#667900 and to give windows users a nightly build to test with.

Extends that change by also converting the GDK_SELECTION_PRIMARY
operations to use GtkClipboard instead of GtkSelection.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21918 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 01:54:01 +00:00
John Ralls
4376c08601 Fix compile error
td isn't declared unless  HAVE_KTOBLZCHECK_H is true, so we can't use it
outside of the #if block.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21917 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-30 00:28:06 +00:00
Christian Stimming
1fcb6398d3 xml-backend: Fix an uninitialized variable
Patch by Johannes Schmid.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21914 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 20:26:10 +00:00
Christian Stimming
821331ae5a Disable "changed" callback on transaction amount field temporarily, as it does not yet seem to work correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21913 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 20:25:58 +00:00
J. Alex Aycinena
f6a3b152fd Add to the includes in Makefile.am, which were implicitly included by until taken out in r21880; this gets make check complete
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21910 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 06:32:09 +00:00
J. Alex Aycinena
7c03e237b2 Update xml file backend to recognize a newer version file on load attempt, not load, and alert user of need to upgrade Gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21908 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 01:12:30 +00:00
Christian Stimming
c2458bfc68 reports: Make report Budget Flow 100% translatable
Patch by Aurimas Fišeras

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21906 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:32:10 +00:00
Christian Stimming
6a3f8175ff Bug #668196: Fix installation of python bindings
With this patch, files are correctly installed together.

Patch by Vincent Untz.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21905 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:16:38 +00:00
Christian Stimming
4e7af62136 Re-indentation of source code.
As usual, re-indentation was done using astyle-1.24 using the following options:

    astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21904 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:12:37 +00:00
Christian Stimming
a9c51ffc1c Bug #668693: aqbanking: Improve transaction UI
* Use expander to show/hide templates
* Disable execute button as long as field values are incorrect
* Use icons and tooltips in entries to indicate that an incorrect value was inserted

Patch by Johannes Schmid.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21903 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:12:26 +00:00