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
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
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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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