Commit Graph
826 Commits
Author SHA1 Message Date
Mike Evans 5c7784abf1 Bug #635439: Patch to autoset owner in the payment dialog
Patch by Matthijs Kooijman <matthijs@stdin.nl>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19861 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 15:13:26 +00:00
Mike Evans bc3f36698f Revert "Bug #635439: Patch to autoset owner in the payment dialog"
This reverts commit 232ae4064952cb65e9703d61778cb1531d2e4f56.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19860 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 13:45:43 +00:00
Christian Stimming 5cad4d5a19 Remove superfluous whitespace at end of string. Incidentally, this way the string already exists and no broken translation results.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19856 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:37:57 +00:00
Christian Stimming 8f7e2aeb39 Bug #635439: Fix "Pay invoice" while the invoice dialog is open.
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    If you use "Pay invoice", normally a new payment dialog is opened which
    is completely filled in. However, when there was already a dialog open,
    it was reused but only the owner would be filled in. This patch makes
    sure that the invoice and amount are filled in as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19854 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:17:41 +00:00
Christian Stimming 8129860609 Bug #635439: Patch to autoset owner in the payment dialog
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    In the payment dialog, set the owner when an invoice is selected

    Before, you would always need to select an owner manually. If you would
    just select an invoice (which was possible, since the invoice selection
    is not disabled when no owner has been selected yet), pressing OK would
    error out because no owner was selected.

    This patch makes sure that when an invoice is selected, but no owner is
    selected yet, the right owner is filled into the owner selection box
    automatically.

    This also happens when the wrong owner is selected, which can happen
    because the invoice autocompletion is not limited to invoices from the
    selected owner, but always completes all invoices. This could cause
    weird behaviour: Select an owner, then use completion to select an
    invoice by another owner and press ok. This would cause the amount for
    the invoice by the other owner to be charged against the first owner.
    This patch prevents that by replacing the first owner by the other owner
    in the dialog.

    This patch also changes gnc_invoice_set_owner to no longer reset the
    invoice selection to NULL. Instead, this is now handled by

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19853 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:17:29 +00:00
Christian Stimming ec6412f3c9 Bug #634357: Further menu ui cleanup: Reserve File New/Open menu only the file-related items anymore.
The menu items under "File" should relate only to the file (database),
not to anything within a file. The open/new for all other things (budget,
invoice, account) have been moved somewhere else.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19806 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-14 13:05:43 +00:00
John Ralls b334c7ffb2 Bug 634392: New sql database raises clobber warning
A fairly extensive change, because I changed may_clobber from a global 
qof function (which passed through qofbackend and fetched up in the 
actual backends) to a local static in the individual backends which 
raise a new qof_backend_error, QOF_ABCKEND_STORE_EXISTS. This was 
necessary to reorder the existence check before the lock, because with 
the sql backends, locking creates the database... which then would 
return may_clobber as true, even though it really wasn't.

New parameter "force" added to session_begin() functions, and 
"create_if_nonexistant" is renamed to simply "create". The reason for 
the latter is that the file/database is created regardless of whether it 
already exists; that's what the clobber check is about. The new "force" 
parameter is set to true the second time through, after the user has 
responded to the clobber dialog indicating that the data should be 
destroyed.

Many of the extraneous changes are just adding the new parameter to the 
session_begin() calls.

gnc-file changes to handle the error in favor of calling the 
no-longer-existing qof_check_may_clobber_data() call after 
session_begin().

Two minor changes to gnc_file_do_save_as: gnc_add_history and 
gnc_hook_run are now called on new_session instead of old_session; this 
ensures that the new file/database is used at the next startup of 
gnucash. Second, the filename/url is filtered before displaying the 
"may_clobber" dialog box to prevent displaying plaintext database 
passwords.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19798 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-11 06:12:20 +00:00
John Ralls 88b0e265b6 Fix business-core tests so that all pass
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19754 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-04 17:31:18 +00:00
Geert Janssens 31315b7f5c Preferences window improvements:
* Accounting Period: reorder options so the dates are on top
* Business: reorder options to clarify which options are general and which apply to invoices or bills only
* Business: remove obscure "Number of lines" option
* Register defaults: remove obscure "Number of lines" option
* General: remove "Show splash screen" option

While removing the "Number of lines" options, I have also removed most of the code that used this option. The number of lines was used to calculate the default window size in various places in the code. The code now simply uses sensible defaults for that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19733 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-30 14:55:23 +00:00
Christian Stimming 22bd33afd2 Bug #629524: Fix redundant string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19707 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-25 18:16:14 +00:00
Geert Janssens a0c19b4c71 Bug #502853 - Incorrent tax rounding in invoice (rounding of .5)
This patch changes the default rounding behaviour in GnuCash from
"Round to nearest even" to "Round away to infinity". See the bugreport
for more details on these different rounding methods.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19695 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-23 10:38:48 +00:00
John Ralls decd290b5f Remove lbgncmod-backend-xml as an additional library in business/business-core/test/Makefile.am. libgncmod-backend-xml.so is a loadable module, not a shared library, and it shouldn't be dynamically linked. While this will do no harm on Linux, it fails on OSX/Darwin.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19668 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-17 19:48:13 +00:00
Christian Stimming a57ed88ee0 Re-indentation of source code.
This 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@19627 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-03 12:27:44 +00:00
Christian Stimming 382d6733d7 Add a function gncBusinessGetList() that existed previously until r6680 so that a list of all customers can be obtained.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19624 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-10-02 14:59:21 +00:00
Christian Stimming a4bb22b23c Clarify Derek's code to be licensed "GPL v2 or later" as he has confirmed in private email.
All of his other code has been licensed this way all along anyway.

After this change, all source code files are licensed under both
GPL version 2 and GPL version 3, which gives us enough flexibility in case any
requirements might switch to GPL v3-only. But currently we are for sure both.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19546 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-09-04 20:00:15 +00:00
Geert Janssens 081b91fd64 Refactoring: replace all GNC_RND_* and GNC_DENOM_* occurences with their GNC_HOW_RND_* and GNC_HOW_DENOM_* equivalents
And then remove the deprecated definitions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19476 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-26 17:22:06 +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
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 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 e1b1654f73 Bug #556713: Fix inconsistency in report options
The attached patch should fix the remaining outstanding issues of this bug.
Applying this patch now would break string freeze.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19366 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-14 20:21:40 +00:00
Christian Stimming 2f39208e7d Merge the sql parsers of the business objects into the main sql module.
Also, completely remove the business-core/sql module because it is
no longer needed. The tests of this module have been moved into
backend/dbi because they depend on sql+dbi, but not more than that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19364 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-14 19:39:19 +00:00
Christian Stimming 0f17917433 Completely remove the business-core/xml module as it is no longer needed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19363 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-13 09:56:24 +00:00
Christian Stimming d35b135447 Merge the xml parsers of business objects into the main xml backend module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19361 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-13 09:55:46 +00:00
Christian Stimming 4bd4d41c05 Remove separate object initialization in engine/gncBusiness.c and move this into one common initialization function cashobjects_register in <engine/cashobjects.h>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19360 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-12 20:12:22 +00:00
Geert Janssens d26b72f5f1 Convert glade files to Gtk+2.10: remaining business dialogs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19356 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-10 15:29:10 +00:00
Geert Janssens a1e1e32659 Convert glade files to Gtk+2.10: business dialogs except customer/vendor/invoice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19355 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-09 13:16:47 +00:00
Geert Janssens e146e60e6d Fix GtkSpinButton with non-zero page_size warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19351 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-09 09:43:32 +00:00
Christian Stimming fae41c96b5 I18n improvements in invoice reports: Mark last untranslated strings for translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19330 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-04 20:15:49 +00:00
Christian Stimming 76b764582a Move the business object implementations from separate module into the main gnucash engine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19329 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-03 21:53:22 +00:00
Christian Stimming 8e781e8cb4 Move initialization of business objects into gncBusiness.c so that this fits to the header where the function was declared.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19328 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-03 21:53:08 +00:00
Christian Stimming 5133b1733e Remove header gncBusinessP.h which is unused anyway.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19327 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-07-03 21:52:51 +00:00
Christian Stimming 187da546b6 Re-indentation of source code.
This 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@19301 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-25 18:44:40 +00:00
Geert Janssens 22ed2d500b Bug #622637 - The classical invoices should use the more specific strings from taxinvoice, part 2, by Frank H. Ellenberger
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19299 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-25 13:20:11 +00:00
Geert Janssens fb3de966c9 Bug #622637 - The classical invoices should use the more specific strings from taxinvoice, part 1: whitespace cleanups, patch by Frank H. Ellenberger.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19298 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-25 13:01:30 +00:00
Christian Stimming e37590aa2f Make business sql backend initialization functions accessible when statically linking.
Same change as what r18841 added in business-core/xml.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19255 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-12 16:11:04 +00:00
Geert Janssens 13204179b5 Explain proximo concept.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19251 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-12 13:00:30 +00:00
Christian Stimming 7c61b19357 Fix r19227, r19228: Don't make the "Due Date" the primary search; fix erroneous parameters when inserting into list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19230 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-04 13:37:13 +00:00
Christian Stimming 341f4019b0 Bug #618954: Add a column "Due" to the invoice search results list.
Patch by "scar".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19228 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-04 09:38:32 +00:00
Christian Stimming 3b9544b380 Bug #618951: Add ability to search for invoices by due date
Patch by "scar".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19227 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-04 09:38:20 +00:00
Geert Janssens b5d8ff463f Fix libdbi hardcoded driver directory usage
Patch by Bill Nottingham, with modifications to only set GNC_DBD_DIR if --with-dbi-dbd-path is explicitly set.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19191 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-20 20:16:47 +00:00
Geert Janssens 14baacc4b7 Add "Pay invoice" toolbar button when invoice is open.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19169 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-15 13:48:40 +00:00
Christian Stimming 33a5d64fee I18n improvements: Remove colons from translatable strings. Use correct capitalization.
In most cases, the changed strings already appear somewhere else in the program,
so only very few are unfortunately now new strings even though we hoped
we could stick to the string freeze.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19162 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-14 09:00:28 +00:00
Christian Stimming fd892aa3fd Revert r19147, "Bug #615168: Remove spurious (require 'hash-table) instances..."
Apparently guile-1.6 still needs all of those.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19155 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-14 07:09:39 +00:00
Christian Stimming 105d7936ef Partly revert r19148, "Bug #615168: Remove instances of (use-modules (ice-9 slib))..."
Apparently guile-1.6 needs this in more places than I thought at r19148.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19154 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-14 07:09:28 +00:00
Christian Stimming e34979b54f Bug #615168: Remove instances of (use-modules (ice-9 slib)) except report-system.scm
There are no more instances of (require ...), so Guile's slib support is
no longer needed.

Patch by Andy Wingo, but except report-system.scm because saved
reports still use the hash-for-each -- so we will need to
continue to support the symbol.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19148 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-09 19:24:45 +00:00
Christian Stimming 3ac36c816b Bug #615168: Remove spurious (require 'hash-table) instances except report-system.scm
Patch by Andy Wingo, but except report-system.scm.

There is nothing that the slib hash-table module provides that was used
in any of these files; they all used Guile's stock hash tables.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19147 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-09 19:24:30 +00:00
Geert Janssens 786fa1b63b When posting an invoice, propose the invoice's opened date as post date.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19135 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-07 15:29:06 +00:00
Geert Janssens 2abdd379d3 Bug #352058 - Invoice entries should default to opening date of invoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19134 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-07 14:38:31 +00:00
Geert Janssens 7c058c43e7 Bug #615510 - Gnucash crashes when creating new customer job
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19133 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-05-07 14:31:50 +00:00