Commit Graph

7467 Commits

Author SHA1 Message Date
David Hampton
f4f87e3f81 Remove junk file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8994 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-08 21:14:54 +00:00
Derek Atkins
c482d618c4 * src/gnome/druid-loan.c: Apply patch to fix a number of
off-by-one bugs in the loan druid.  Fixes #119001.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8988 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-04 01:32:07 +00:00
Christian Stimming
92797dd5e0 Updated required OpenHBCI version number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8987 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-02 23:50:45 +00:00
Christian Stimming
bbe2ae2328 Fix stupid compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8985 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-02 09:30:22 +00:00
Derek Atkins
fe64f5aeee * src/business/business-core/gncInvoice.c: set the date-entered on
invoice transactions to "now" instead of the post date.  This
	  lets us know when an invoice was actually posted, or a payment
	  was actually made.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8980 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-31 02:01:41 +00:00
Derek Atkins
500c652314 Support "gain/loss" balancing splits on stocks:
* src/engine/Transaction.c: fix xaccSplitGetPrice() to return '0'
	  if 'amount' is zero but 'value' is non-zero
	* src/register/ledger-core/split-register-model-save.c: if we've
	  already handled the debcred cell then DON'T handle the price cell
	  as it will override the debcred's value.
	* src/register/ledger-core/split-register.c: if #shares == 0,
	  price == 0, and value (buy/sell) != 0 then allow this entry;
	  it's an income/expense balancing split.
	* src/register/ledger-core/split-register-control.c: if the exchange
	  rate cell is 0 but this is NOT the blank split, then don't run
	  the exchange-rate dialog unless specifically requested.
	* src/register/ledger-core/split-register-model.c: when trying to
	  find the conversion rate for a split, remember if we found
	  a matching split (even if the amount is 0).  If all matching
	  splits are 0, then return 0, not 1.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8979 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-31 00:25:43 +00:00
Derek Atkins
e31ae9a956 * src/gnome-utils/gnc-account-tree.c: add "(Report)" strings
to the various columns displayed in the report currency.
	  Partial fix for #118695.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8977 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-30 20:30:36 +00:00
Linas Vepstas
8ba4d7b990 chasing wild geese ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8975 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-30 05:19:17 +00:00
Linas Vepstas
49c40451db this should improve file-load performance a bit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8974 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-30 05:17:37 +00:00
Linas Vepstas
aeb7c4f928 Convert tabs to 8 spaces
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8973 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-30 01:20:51 +00:00
Linas Vepstas
a084068ce8 remove documentation cruft
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8972 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-30 01:13:10 +00:00
Derek Atkins
b3f07ca6d4 reorder the transaction lists to be ordered per the qif files
make sure we only pull in the correct set of accounts/categories


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8971 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 23:26:09 +00:00
Derek Atkins
5f5a7485ee * src/import-export/qif-context.c: add functions to get the list
of used QifAccount and QifCategory objects from the set of
	  transactions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8970 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 22:22:24 +00:00
Derek Atkins
788d113c86 * src/import-export/qif/ -- add functionality to merge multiple
qif file contexts into a single parent context while retaining
	  the ability to add/remove new files.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8969 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 21:56:32 +00:00
Derek Atkins
a6a176bf94 * src/business/business-gnome/business-gnome.scm: remove
some unused (old) code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8968 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 00:56:57 +00:00
David Hampton
5fecbfccc6 Collapse the gnc_xxx_dialog_parented function into the corresponding
gnc_xxx_dialog function.  The remaining gnc_xxx_dialog function now
takes a parent pointer.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8966 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-29 00:17:33 +00:00
Christian Stimming
616ae5d466 2003-07-28 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/druid-hbci-initial.c: Add button for
        manual adding of HBCI accounts. Fixes #117760. Requires latest
        OpenHBCI CVS -- next openhbci-0.9.13 will be out this weekend.

        * src/import-export/hbci/gnc-hbci-{getbalance,gettrans,transfer}.c:
        Add saving of the HBCI_API so that bank's status changes will now
        be remembered immediately. However this might save some
        unnecessary information to disk, but hopefully we will have fixed
        that in OpenHBCI soon.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8965 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-28 21:43:35 +00:00
Derek Atkins
5bbe9c71cf * src/gnome-utils/gnc-date-edit.c: hide the calendar popup
on enter/return keypress events (in addition to ESC).
	Fixes #118500


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8962 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-28 18:44:21 +00:00
Linas Vepstas
b6ffc7d3f3 bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8961 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-28 13:13:14 +00:00
Derek Atkins
e60cd6e43c Fix the DIST_SUBDIRS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8959 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-28 02:22:58 +00:00
Derek Atkins
7475136705 build log-replay before test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8957 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 23:30:32 +00:00
Linas Vepstas
93973287f4 updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8955 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 19:53:52 +00:00
Linas Vepstas
551cc96c4a bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8954 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 19:53:13 +00:00
Derek Atkins
41ecc8eab0 * src/backend/postgres/PostgresBackend.c: Added pgendGetBook(),
to retrieve the QofBook from the session, instead of storing the
      book in the backend object.
    - Where be->book was used, use pgendGetBook() instead.
    - Enhanced debug messages.
    * src/backend/postgres/PostgresBackend.h: Added the qofbook.h
      include, and the pgendGetBook() prototype
    * src/backend/postgres/book.c: Changed pgendGetBook to
      pgendBookRestore() to reflect its functionality of restoring
      the book's data to the engine.
    * src/backend/postgres/price.c: In pgendPriceFind(), couched the
      currenct portion of the SQL statement in an "if" statement,
      because gnc_pricedb_lookup_latest_any_currency() can pass in
      a NULL currency, and stpcpy() doesn't like NULLs.
    * src/backend/postgres/escape.c: enhanced debug messages.
    Fixes bug #116546


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8953 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 19:20:05 +00:00
Linas Vepstas
038ead6db7 documentation updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8952 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 17:21:50 +00:00
Linas Vepstas
35d1e95fb4 misc updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8951 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 05:58:10 +00:00
Derek Atkins
3e99d1e857 * src/app-file/gnc-file.c: fix the message to be more appropriate
when we hit a READONLY error.
	* src/backend/file/gnc-backend-file.c: return ERR_BACKEND_READONLY
	  on save if the XML write fails and the unlink() fails with
	  ENOENT, EPERM, EROFS, or EACCES.
	* src/engine/qofsession.c: don't call end_session just because
	  there's an error.
	Fixes #117657


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8949 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-27 04:02:49 +00:00
Derek Atkins
daa491a68d * src/backend/file/gnc-backend-file.c: don't make the chmod() and
chown() functions fatal errors.  Warn the user if they fail, but
	  don't fail to save.  In the long run we need some way to pop up
	  warning messages from a backend, but until then we'll have to
	  stick with PWARN() and hope users see the console.
	Fixes #118258


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8947 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 23:47:14 +00:00
Linas Vepstas
af4ea9dac8 ongoing hacking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8946 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 23:36:45 +00:00
Linas Vepstas
7263dfdae4 implement the KVP utilities that have always been needed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8945 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 23:25:56 +00:00
Linas Vepstas
9fd213bdb3 fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8944 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 23:25:04 +00:00
Derek Atkins
4069994123 Fix a comment pointer (gnc.gwp no longer exists)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8942 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 21:46:05 +00:00
Derek Atkins
473654d156 * src/engine/Backend.h: add a new error, ERR_BACKEND_READONLY
* src/engine/gw-engine-spec.scm: add new error type
	* src/backend/file/gnc-backend-file.c: differentiate between
	  "file is already locked" and "we can't create the lockfile"
	  so we can let the user know.
	* src/app-file/gnc-file.c: handle the new ERR_BACKEND_READONLY
	  error message by changing the error dialog presented to the
	  user.
	Fixes #117665


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8941 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 21:43:54 +00:00
Linas Vepstas
fc9a6e3923 add title, notes to book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8940 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 21:33:03 +00:00
Linas Vepstas
ed1abc4f55 more hacking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8939 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 20:58:54 +00:00
Linas Vepstas
e50c7cdf93 add more tracing levels
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8938 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 18:54:15 +00:00
Linas Vepstas
bb67f27978 more hacking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8937 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 18:42:59 +00:00
Linas Vepstas
1218569524 oops try again
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8936 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 18:35:33 +00:00
Linas Vepstas
e8b8febb9c o rationalize default value setup/initialization
o remove malloc/free usage of struct tm, put it on stack
 o improve documentation


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8935 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 18:19:23 +00:00
Benoit Grégoire
deb2a2bce3 2003-07-26 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-account-matcher.c: Fix bug #105293


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8933 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 16:22:12 +00:00
Linas Vepstas
f77bb593a6 ifdef-out the gnome2 port of these utilities
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8932 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 14:52:27 +00:00
Linas Vepstas
02453a0eeb add misc gnome textbox utils
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8931 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 14:48:25 +00:00
Christian Stimming
029dfc92f8 Add include stdlib.h to fix compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8929 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 08:08:20 +00:00
Linas Vepstas
102a96ca5b more misc hacking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8927 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 05:08:40 +00:00
Linas Vepstas
c5688830f7 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8926 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 04:58:55 +00:00
Linas Vepstas
493b4b3b97 add some more date utilities
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8925 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 04:36:39 +00:00
Linas Vepstas
b7a526e646 allow null pointer to be safely passed as arg
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8924 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 04:30:15 +00:00
Linas Vepstas
66b45b6dc4 oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8923 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 03:04:56 +00:00
Linas Vepstas
d84721615b temp intermediate stuff
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8922 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 03:01:04 +00:00
Linas Vepstas
703e4a59de bugfix: add "changed" callback for the yearly_spin spin button
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8921 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-26 02:58:46 +00:00