Commit Graph
100 Commits
Author SHA1 Message Date
Geert Janssens f19c9ab34f Win32 automated build: add note about Windows' restriction on updating
files that are in use in every file that can be affected.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22317 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-16 09:37:19 +00:00
Geert Janssens a9ec2d8a75 Win32: call proper script to autobuild from git
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22316 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-16 09:37:07 +00:00
Geert Janssens f47e25948a Win32: fix log file name generated by automated build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22315 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-15 09:55:29 +00:00
Geert Janssens 18b51f9090 Make weekly build truly weekly again
This was temporarily changed to daily during the 2.4.10 release
timeframe to stomp out some release bugs. That should no longer be
necessary.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22314 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-15 09:55:20 +00:00
Geert Janssens d57c931199 Small optimizations to the previous commit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22313 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-15 09:55:09 +00:00
Geert Janssens f6119b2a39 Bug #463969 - Allow Selection of Multiple Transactions During Reconcile
Bug #628402 - Ctrl-F in Reconcile doesn't invoke search, but (F)inishes
the reconciliation

Author: Robert Fewell <14ubobit@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22312 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-15 09:54:59 +00:00
Geert Janssens 0835f8b730 Win32: more fixes for git based tag build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22311 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-15 08:37:34 +00:00
Geert Janssens d38357f7a4 Win32: fix tag build for git
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22310 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-14 16:04:54 +00:00
Geert Janssens 95b1bbc3a2 Win32 nightly build: build trunk from git by default.
Additionally, update the README file to explain how the start from
scratch with a git repository.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22309 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-14 15:14:25 +00:00
Geert Janssens 311e2b4a4d Win32 build: remove UPDATE_SOURCES parameter
Developers should manually choose when and how to update their checked
out repository. Automated builders can simply write a short wrapper
script around the install the does the update for them. The
daily_build_git.sh and daily_build.sh scripts are fine examples.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22308 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-14 15:14:12 +00:00
Geert Janssens e074ec9955 Win32: more automated build from git fixes
- use consistent naming for the final installer executable
- Default to no for UPDATE_SOURCES

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22306 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-12 19:36:50 +00:00
Geert Janssens 464e11d1c7 Win32: bugfix in the git scripts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22305 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-11 16:29:56 +00:00
Geert Janssens 50f62a5516 First attempt at rewriting the win32 automated build scripts for git
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22304 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-11 14:24:45 +00:00
Geert Janssens 028212f8a2 Win32: fix UPDATE_SOURCES with a git repo
IMPORTANT: the update mechanism from git has been kept deliberately
           simple because svn updates don't really match well to
           git's distributed repository concept.

It assumes you are working as a non-committer (see
http://wiki.gnucash.org/wiki/Git for what that means) and will
simply try to pull the current branch from the upstream
repository. I don't know of any currently active committer that works
from Windows, so to start that should be sufficient.

Setting up git-update instead of git pull requires more thorough
changes in the Windows build system:
- it requires at least perl 5.8 (our default msys-dtk only install perl
  5.6)
- the environment variable GITPERLLIB should be set to the perl library
  that comes with the installed git.
- git-update should be installed somewhere

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22303 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-11 14:24:33 +00:00
Geert Janssens cf885bdb4d Update POTFILES.in after recent file additions/removals
And remove the new register related c files from POTFILES.skip or we risk forgetting to translate
them when the new register becomes production ready

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22302 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-10 18:41:10 +00:00
Geert Janssens c4a63b2538 Register2: small improvements
- Fix make check warnings reported by Frank H. Ellenberger
- Wrap code in ifdef's so it can easily be disabled.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22301 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-10 16:06:21 +00:00
Geert Janssens f37c6fab09 Bug #677859 - Allow space to (un)reconcile in the reconcile window
This got lost in the conversion from clists to gtktreeview
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22296 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-08 16:25:21 +00:00
Geert Janssens 5143c3c005 Bug #677859 - Remove depreciated CList functions
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22292 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 18:24:13 +00:00
Geert Janssens 7358bcc62d Bug #672161 - New CSV account and transaction importer
Final patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22291 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:25:12 +00:00
Geert Janssens c5e2adcb7a Refactor safe_strcmp into the glib standard g_strcmp0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22290 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:24:55 +00:00
Geert Janssens a54e7149bf Initial code for a new register.
This is very incomplete, but at the same time well isolated from the
rest of the code, so it is easy to disable should it not get functional
and stable before the next major release.
I decided to include it in trunk to give it more visibility and prevent
bitrot in the patch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22289 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-07 17:24:33 +00:00
Geert Janssens 1ef66b2ce0 Bug #680887 - RELAX NG schema for 2.4.11 XML file format
Contributed by Baptiste Carvello
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22287 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-05 13:28:29 +00:00
Geert Janssens 0182bc6fd4 Adapt payment dialog for credit notes.
To deal with all possible combinations, a user must set a debit or
credit amount for the payment. In most cases the right amount is
prefilled by selecting documents from the list.
In the process, this changes gets rid of some confusing sign reversal
logic in the payment code (gncOwner.c).

WARNING FOR SCRIPTERS: if you have written python or scheme code that
relies on gncOwnerApplyPayment, be careful: you now need to pass a
signed amount to the function instead of an absolute value, because a
payment could be for both an invoice/bill or a credit note. No more sign
reversals happen internally based on the owner being a vendor or a
customer.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22286 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:09:04 +00:00
Geert Janssens 185881ad0b Payment dialog - amend r22263
Properly fix selection of documents when first loading the dialog

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22285 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:55 +00:00
Geert Janssens 34b23e3282 Avoid windows with saved positions to reopen off-screen if possible
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22284 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:43 +00:00
Geert Janssens dfd355d194 Cleanups in save/restore window position and sizes
- remove depreciated check on GtkObject flags (no longer required imo)
- save position and size on window destruction consistently
- add save and restore to some additional assistants (not all so far)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22283 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 16:08:31 +00:00
Geert Janssens 95e7587ec9 Double click on parent account expands/collapses child account list
instead of opening the account's register. The account's register can
still be opened normally using the menu option or right-click popup
menu.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22278 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-02 13:31:57 +00:00
Geert Janssens 3f5105198d Remove unused, depreciated functions
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22277 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:32 +00:00
Geert Janssens cb992f0423 Remove depreciated Option functions - part 3
There were some more option menu functions in dialog-utils that I could
not find being used any where and this patch removes them.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22276 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:19 +00:00
Geert Janssens c2365214d4 Remove depreciated Option functions - part 2
This patch removes the option menu functions from gnc-date-edit which
come under the setting of time option. I do not think this bit is used
but can be seen if you find a GNCDateEdit and set the second option to
TRUE.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22275 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:10 +00:00
Geert Janssens 1286a896a6 Remove depreciated Option functions - part 1
The option menu's that appear in dialog options rely on per item tool
tips that GtkComboBox did not have. From a comment in the code, this was
highlighted on bug http://bugzilla.gnome.org/show_bug.cgi?id=303717
which implies this is now fixed but I could not see a way of adding them
so I created my own basic combo with per item tooltips.

This basic combo uses an external list store to reduce the functions
needed and can be seen when changing report settings. It look like it
does the job OK but may be I have missed something. 

I have added comments in the code in areas that would need to be changed
if GtkComboBox ever has per item tool tips.

Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22274 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:53:58 +00:00
Geert Janssens 439fd6ec25 Properly calculate amount to pay when post-to account is not the first
in the list when opening the payment dialog.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22263 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-09 17:54:23 +00:00
Geert Janssens 5210dea832 Modify one tip of the day to illustrate the use of \n in tips
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22261 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-07 16:06:36 +00:00
Geert Janssens c79f5161e4 Rewrite the tip-of-the-day parsing logic
Since commit 22246, an empty tip of the day appears in the list of tips.
This is due to the way the file is parsed.
This commit rewrites the parsing logic to avoid such problems. As an
added bonus, you can now add newlines in tips by using '\n' in the
string.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22260 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-07 16:04:19 +00:00
Geert Janssens 91a6fb5be5 Wrong parameter is used to load from and save to kvp
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22252 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-29 14:45:12 +00:00
Geert Janssens 1c39c2cffb Bug #494861 - Business reports lose a/p & a/r account options
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22250 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-29 14:28:48 +00:00
Geert Janssens b21a649717 Bug #678848 - Customer/Vendor reports off-by-one on start date
Additionally removes a superfluous module load
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22248 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-28 16:13:11 +00:00
Geert Janssens e0e41d221f [PATCH] Fix tip-of-the-day with gcc-4.7
When making the text file tips-of-the-day, GnuCash expects 'gcc -E' to
preserve at least one of the whitespace lines between entries. However, this
relies on behavior of 'gcc -E' that isn't actually part of the spec, and is
a historical accident. And it changed in gcc-4.7, such that all the
whitespace is removed.

Work around this by explicitly adding a newline in the sed expression.

Pre gcc-4.7 there will be two newlines between tips, but this has no impact
on the tip displaying code.

Patch by Bill Nottingham
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22246 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 20:33:03 +00:00
Geert Janssens 0efa576a18 Bug #677572 - 3-part check format
Created by Andrew Hunt

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22245 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 17:43:26 +00:00
Geert Janssens fe043bf731 Bug #631611 - Check printing fails because fonts are too tiny on Windows
Lesson learned: don't use cairo_identity_matrix on a cairo_t managed by
GtkPrintContext. It kills a number of transformations that were already
configured by GtkPrintContext. On Windows this breaks proper scaling.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22243 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 15:52:03 +00:00
Geert Janssens 58277b4cdd Some small code cleanups in check printing code
- Remove useless typdef, use GtkPrintOperation directly instead
- Position_combobox is read twice, remove second call

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22242 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-27 15:51:51 +00:00
Geert Janssens b71d01975d Invoice report - display Job info in new line
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22235 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-23 14:42:35 +00:00
Geert Janssens 4b0b7c51f4 Bug #675201 - slight bugfix to prior enchancement post for example
scripts
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22231 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-22 15:12:25 +00:00
Geert Janssens 867db62422 Bug #678214 - GnuCash fails to open some post-processed XML files
Patch by Daniel Harding
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22229 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-22 14:36:50 +00:00
Geert Janssens 1fb8800b44 Bug #671323 - Scheduled monthly transactions lose "except on weekends"
setting when using MySQL

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22224 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-21 15:13:09 +00:00
Geert Janssens f841832eaf Revert some unintended testfile changes that accidentally slipped in in
r22216

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22219 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:43:57 +00:00
Geert Janssens 7af123cd60 Fix Account Report menu option when used on A/R or A/P registers.
This has been broken since r20766

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22218 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:24:21 +00:00
Geert Janssens d7729b3140 Bug #677859 - Depreciated functions in Gtk+2.24
Replaces functions related to widget visibility.
Additionally there are some more replacements in the area's handled in
the previous two commits.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22217 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:24:06 +00:00
Geert Janssens 0bc041acf8 Bug #677859 - Depreciated functions in Gtk+2.24
Replaces a number of widget references that are now part of gobject.
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22216 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:23:45 +00:00
Geert Janssens 79e6da77da Bug #677859 - Depreciated functions in Gtk+2.24
GtkComboBox related fixes
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22215 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-13 15:23:25 +00:00
Geert Janssens 4d81214bf2 Fix credit note duplication. It was not possible to duplicate a credit
note as an invoice (aka voiding a credit note).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22211 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:52:45 +00:00
Geert Janssens ed6cdb175c Cosmetic: move include to source file. It's not used in the header file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22210 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-06 13:52:34 +00:00
Geert Janssens e1956c80c7 Allow to change document type when duplicating an invoice.
This allows to quickly create a canceling credit note for an invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22176 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 21:37:27 +00:00
Geert Janssens f098ae2e39 Bug #674273 - fixes and enhancements to example simple_business_create.py
Patch by Jamie Campbell, with minimal correction to match the new ApplyPayment functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22175 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:39:25 +00:00
Geert Janssens e7a2a8fbcb Add gnc{Owner,Invoice}ApplyPayment functions.
Most payment use cases don't need to know the internal lot juggling mechanism behind it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22174 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:39:09 +00:00
Geert Janssens dbcd08db01 Add getter/setter for fake Employee name propery.
This is done to get a more consistent owner interface and simplifies the python bindings

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22173 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:38:57 +00:00
Geert Janssens 572a4fb52c Remove some unused function declarations
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22172 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:38:39 +00:00
Geert Janssens 26fd475dd2 Rearrange install-fq-mods.cmd to avoid duplicate code and make it easier to understand
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22170 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 21:19:34 +00:00
Geert Janssens d2357b256a Bug #670355 - Automated install of Perl with Finance-Quote
With these changes install-fq-mods.cmd will automatically download and install
Strawberry perl if now perl version if found on the system.
Patches by Dave Roberts

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22169 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 21:19:24 +00:00
Geert Janssens 7dfb8145dd Remove empty lines from AC_CONFIG_SOURCES as this will cause the Windows build to fail
when using a git repo as source

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22168 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 18:03:41 +00:00
Geert Janssens fa7bd291c7 Further tweaks to enable git on the windows build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22167 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 16:18:29 +00:00
Geert Janssens 4faec91f26 Bug #674276 - fixes and enhancements to example test_imbalance_transaction.py
a) added usage information
b) put most everything into exception handling to prevent lock linger when a
problem occurs
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22166 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:37:17 +00:00
Geert Janssens f18688e2da Bug #673877 - fixes and enhancements to example script account_analysis.py
a) added usage information when not enough arguments added
b) put the majority of code into an exception handling block so that if
something goes wrong the session is closed.  Prior to this change a problem
would result in a lingering lock.
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22165 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:37:07 +00:00
Geert Janssens b5a56207ba Bug #673855 - fixes and enhancements to example script new_book_with_opening_balances.py
1) Fixed typo for "new book" session creation in_new=True -> is_new=True
2) Added usage information echo when script is invoked without correct number
of parameters
3) Put most of the operations into an exception handling block.  When an
exception occurs, sessions which were opened are closed.  Prior to this, any
error would result in a lingering lock.
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22164 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:36:55 +00:00
Geert Janssens 4f603c718d Fix crash/invalid memory access when unposting an invoice.
This is triggered when glib is configured with G_SLICE=always-malloc

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22104 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-20 10:08:37 +00:00
Geert Janssens 44fa792a7e Fix make dist for Swedish accounts files
Reported by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22080 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-14 17:24:20 +00:00
Geert Janssens c2a557604a Use correct list iterator instead of list pointer.
(Bug pointed out by Christian Stimming)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22079 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-13 21:22:58 +00:00
Geert Janssens ab5bd505f0 Payment dialog ui tweaks. Make it slightly larger by default and enable sorting on the document list
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22050 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-17 19:13:03 +00:00
Geert Janssens f7a1b07c15 Add an additional test that hopefully will shed more light on bug
666855.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22026 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-15 15:23:29 +00:00
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
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
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
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