Commit Graph

14713 Commits

Author SHA1 Message Date
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
Christian Stimming
183aec5ec2 Bug #668693: aqbanking: Big code cleanup in transaction dialog
Patch by Johannes Schmid.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21902 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:12:12 +00:00
Christian Stimming
34100fde6f Bug #668693: aqbanking: Added API docs for transaction
Patch by Johannes Schmid.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21901 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:12:00 +00:00
Christian Stimming
1b6a3488fa Bug #668926: Fixes build on GNU/Hurd
A buffer of fixed size PATH_MAX is created, but this constant is non-existent
on GNU/Hurd, so the package FTBFS on that architecture.
The fix consists in using a dynamically (re-)allocated buffer, as recommended
on: http://www.gnu.org/software/hurd/hurd/porting/guidelines.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21900 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 22:05:50 +00:00
Phil Longstaff
2f3555c9ee Add more vendor gobject attributes and use those to save/restore to sql db
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21898 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-28 00:15:04 +00:00
Geert Janssens
1d8e85e8e7 Win32 installer: always remove previously installed versions.
This avoids problems when libraries or reports have been moved around in newer versions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21894 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-27 20:09:55 +00:00
Phil Longstaff
6ad0ab7426 Convert to using gobject attribute names to save/restore address fields.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21893 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-27 17:36:35 +00:00
J. Alex Aycinena
8a2f3a7152 Update txf.scm to reflect changes to US Income Tax Forms and Schedules for 2011.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21889 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-26 00:09:51 +00:00
Geert Janssens
9b12eaf158 Remove some stray references to libglade.
It's no longer used by GnuCash. Yay!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21880 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-23 20:45:26 +00:00
Geert Janssens
31d3b90f30 Avoid guile dependency in the python bindings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21878 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-23 19:33:31 +00:00
Geert Janssens
4627ce546c Remove the stable version numbers from the Development warning version.
Instead, a pointer to the GnuCash website is added for those who are
actually looking for a stable release.
This follows an in my opinion good suggestion from Colin Law on the
mailing list.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21877 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-22 21:26:02 +00:00
Geert Janssens
e91e669858 Bug #667581 - Migrate Invoice / Bill plugin to Builder
Add two new files that were in the original patch also.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21876 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-22 21:25:51 +00:00
Christian Stimming
e219d2cf89 Bug #668454: Make it easier to paste account/bank in online transaction dialog
Patch by Johannes Schmid (with indentation fixed by our usual astyle call):

The patch actually fixes two issues:

* Only allow digits in account/bank code field
* Filter spaces when pasting content.

This has annoyed me for a while because quite often I paste account
informations from the browser or some email into gnucash and people tend to
group the numbers like this:

BLZ: 763 510 40

The result of the paste is that the number looks like 763 510<end> because the
number of characters in the entry is limited. With the patch the spaces will be
removed and you will see

763 510 40 -> 76351040

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21874 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-22 21:09:34 +00:00
Mike Evans
7e8a36d984 Bug 667581 - Migrate Invoice / Bill plugin to Builder
Add the renamed files.  Oops, missed one, here it is.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21872 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-21 16:28:32 +00:00
Mike Evans
1eced1035c Bug 667581 - Migrate Invoice / Bill plugin to Builder
Add the renamed files.
Patch supplied by Bob Fewell. Many thanks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21871 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-21 16:22:45 +00:00
Mike Evans
f2325a979c Bug 667581 - Migrate Invoice / Bill plugin to Builder
Remove empty files renamed and updated by patch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21870 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-21 12:20:55 +00:00
Mike Evans
df94d1c936 Bug 667581 - Migrate Invoice / Bill plugin to Builder
Patch supplied by Bob Fewell.  Many thanks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21869 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-21 12:20:49 +00:00
John Ralls
2a50ac6461 Reverse the test for HAVE_DBI
ac_cv_header_dbi_dbi_h is set only if want_dbi is true, so testing for != no succeeds if dbi isn't enabled -- which is not what we want.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21867 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-20 21:06:29 +00:00
Geert Janssens
a90e5086a3 Bug #667417 - Fix build with glib 2.31.x
Patch by Vincent Untz
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21860 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-17 08:47:54 +00:00