Commit Graph
1735 Commits
Author SHA1 Message Date
Christian Stimming 2f50ca901d 2003-10-18 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/druid-hbci-initial.c: Fix and initially
	implement handling of multiple banks/users/customers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9549 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-18 10:11:20 +00:00
Christian Stimming f98af6862f 2003-10-18 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/dialog-hbcitrans.c: Fix handling of HBCI
	direct debits (fix wrong textkey).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9548 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-18 08:08:02 +00:00
Derek Atkins c2fe2536bd * src/backend/postgres/gncquery.c: Linas broke SQL when we renamed
the QueryObjects to QofClass.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9449 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-01 15:43:08 +00:00
Derek Atkins 4216fa4afc * src/engine/gnc-date.h: add a comment about minimum string length
* src/engine/Transaction.c: fix the ISO_DATELEN to be "long enough"
	  Fixes #123558


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9437 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-30 17:53:33 +00:00
Christian Stimming 79849666b6 2003-09-18 Christian Stimming <stimming@tuhh.de>
* configure.in: Add correct configure test for openhbci version
	required by mt940 module.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9352 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-18 20:57:10 +00:00
Christian Stimming 7ad10128ed 2003-09-16 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-kvp.c: Fix broken compile due to
	Linas' change of the kvp_frame_get_frame() arguments. By
	Jan-Pascal van Best <j.p.vanbest@tbm.tudelft.nl>

	* src/import-export/hbci/gnc-hbci-gettrans.[hc]: Code
	refactorization so that the mt940 importer can re-use the existing
	import functions from the hbci module. By Jan-Pascal van Best
	<j.p.vanbest@tbm.tudelft.nl>

	* src/import-export/mt940/gncmod-mt940-import.[hc]: Import module
	for SWIFT MT940 files added. By Jan-Pascal van Best
	<j.p.vanbest@tbm.tudelft.nl>


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9345 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-16 21:50:24 +00:00
Derek Atkins c4f465d164 * src/backend/postgres/test/run-tests.sh: small fix from
hawkfan to get tests to work when building outside srcdir.
	* src/backend/postgres/putil.c: fix a bug introduced by Matthew --
	  ANSI C does not allow you to declare a variable in the middle
	  of an expression.  Move the declaration to the top of the function.
	* src/backend/postgres/functions.sql:
	* src/backend/postgres/table-audit.sql:
	  We don't need the trailing semi-colon because the #include adds
	  one.  The double semi-colon causes build failures in some cases.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9311 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-14 15:35:09 +00:00
Derek Atkins 99c8a23ab9 * src/import-export/ofx/gnc-ofx-import.c: use <libofx/libofx.h>
instead of "libofx/libofx.h" as it's not part of our system.
	  Fixes a dependency problem in 1.8.6 release.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9304 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-14 01:15:52 +00:00
Derek Atkins 499a4d5e76 * src/business/business-core/file/gnc-*.c:
Add a "slots" parameter to allow for future expansion.  Right
	  now this is completely ignored (which will allow future releases
	  to add a kvp-frame slots to any business function and allow that
	  file to be read by older versions).  Right now the slot is ignored,
	  but that's better than barfing on the data file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9285 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-11 17:37:01 +00:00
Derek Atkins 3331bbe954 * src/engine/engine-helpers.c: turn off scheme garbage collection
during query->scm and scm->query conversion.  It shaves about 50%
	  off the test-scm-query-string tests.
	* src/engine/test-core/test-engine-stuff.c:  add some code to help
	  track down what the get_random_query() is doing.  Turned off by
	  default.
	* src/app-utils/test/test-scm-query-string.c: make the test
	  deterministic by seeding the RNG with a known value.  There is a
	  known "delay" at #245 with a seed of 1 on Linux systems.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9273 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-10 00:01:54 +00:00
Derek Atkins fb2f55460f * src/gnome-utils/dialog-transfer.c: during the dialog startup it
tries to build the transfer rate.  This crashes on Solaris because
	  during startup one commodity is still NULL when it tries to print
	  it.
	Fixes bug #121677


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9271 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-09 23:23:09 +00:00
Derek Atkins af4b4a65c2 Apply Nigel Titley's patch to fix #103174:
* src/register/register-core/basiccell.c:
	  - add some debugging messages
	  - don't kill ourself if we're asked to set the value to our own value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9224 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-09-05 00:27:20 +00:00
David Hampton c9a6a3ccb6 Fix bug in computing cleared balance.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9193 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-30 00:18:25 +00:00
Christian Stimming a39c084783 2003-08-28 Christian Stimming <stimming@tuhh.de>
* src/import-export/import-backend.c: Aaarg. Fixed extremely
	stupid bug in the import value setting workaround.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9189 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-28 20:45:46 +00:00
Chris Lyttle 3cb873fec0 update for 1.8.5 release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9127 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-20 04:30:28 +00:00
Christian Stimming 7304a2083b 2003-08-15 Christian Stimming <stimming@tuhh.de>
* src/import-export/import-backend.c: Workaround for
	multi-currency importing bug as discussed on gnucash-devel.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9076 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-14 21:57:16 +00:00
Derek Atkins 2043343901 Matthew Vanneck's Postgres patch:
Here's the HEAD patch we talked about on #gnucash.  Fixes the
   transaction handling for upgrades.  Also made some changes to
   newtables.h.  I fixed the multibook_support() upgrade too, as it
   was broken.  The only upgrade currently that does not work is the
   1.0.0 --> 1.1.1 upgrade.  That one doesn't work due to missing SQL
   for the gncGUIDcache table (which I asked about in a different
   message).  Perhaps we can remove that upgrade? 1.1.1 -> 1.2.1 ->
   1.3.1 -> 1.4.1 -> 1.5.1 all work normally now, though, with this
   patch.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9069 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-13 15:17:03 +00:00
David Hampton 70fdd73706 Move the splash screen code to another directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9052 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-11 05:31:03 +00:00
Derek Atkins e8a8f57c20 * rpm/Makefile.am: add gnucash.spec to the DIST; clean during
distclean.  Rebuild it whenever the .in, Makefile, or config.status
	  changes.  Fixes #119446.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9043 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-10 23:59:59 +00:00
Derek Atkins ecfe1657a6 * src/backend/file/sixtp.c: Add code to read XML files with real
namespace declarations.  (see bug #88078)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9040 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-10 23:35:28 +00:00
Derek Atkins 584a42627b Matthew Vanecek's patch:
The attached patch and new file fix bug 90768.  I'm pretty sure I've
  done "The Right Thing (tm)" everywhere.  This patch is against HEAD.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9036 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-10 20:24:44 +00:00
Derek Atkins 4ae577f0ec * src/*/Makefile.am: Make sure we define PWD, as not all shells
define it properly.  Fixes #119114.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9033 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-10 19:28:42 +00:00
Derek Atkins 9e1e5282c0 * src/gnome/reconcile-list.c: our parent is a gnc-query-list, not
a clist.  Fix a bug so we properly call the parent destroy function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9031 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-08-10 19:03:26 +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
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
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
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
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
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
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
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
Derek Atkins 7ac8b434df * src/engine/gnc-book.c: be sure to delete the book's KVP when we
destroy it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8915 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-23 18:46:39 +00:00
Derek Atkins 4798852b16 * src/import-export/qif/...
more work on the new qif importer.  structure it into a parent
	  context that contains a "list of files" (each file has its own
	  context).  Add some tests to actually test the code.  It
	  actually loads a basic qif file, now.  Still need to perform
	  merging (internal and into GNC) as well as the qif-to-gnc maps.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8913 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-22 05:12:49 +00:00
Derek Atkins ea7bd97f5f * src/backend/file/gnc-backend-file.c: Don't need to set the
backend error directly after calling gnc_file_be_get_file_lock(),
	  as get_file_lock will set the backend error itself.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8901 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-17 17:07:12 +00:00
Derek Atkins 512788fc9a * src/report/standard-reports/register.scm: add Debit and Credit
totals.  Fixes bug #115611.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8892 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-17 05:06:39 +00:00
Derek Atkins cb4cf56f90 * src/report/standard-reports/cash-flow.scm: fix some labels and
add more text to make it more clear what's going on.  Hopefully
	  fixes #104878.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8888 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-17 03:14:54 +00:00
Derek Atkins dd6fe703a7 * src/business/business-core/gncInvoice.c: change the description
and action of Invoice and Payement Transactions/Splits, to make
	  it easier to print a check off the posted transactions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8887 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-17 02:44:22 +00:00
Derek Atkins 386e8175f2 * src/gnome-util/dialog-transfer.c: fix a bunch more rounding
errors, and add more precision to the price.  There is still a
	  problem when acquiring a high-precision price out of the pricedb
	  where it will get truncated in the AmountEdit widget.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8880 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-15 01:52:07 +00:00
Derek Atkins 300c1af7ab * configure.in: search for db-4.1. Fixes #116509.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8877 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-15 01:20:28 +00:00
Derek Atkins 319dd4d7aa * src/import-export/qif: an incomplete implementation of a new
(written-in-C) QIF importer.  The code compiles but has not
	  been tested.  Yet to do: merging, conversion to gnc, and UI.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8873 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-15 00:27:39 +00:00
Derek Atkins 06aa3a6845 * src/import-export/import-parse.[ch]: routines to parse numbers
and dates in a mostly-locale-agnostic way.
	* src/import-export/import-format-dialog.c: a dialog to ask the user
	  to choose a format, when parsing just isn't enough.
	* src/import-export/generic-import.glade: add the format_match dialog
	* src/import-export/test/test-import-parse.c: test the import-parse
	  routines.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8851 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-11 03:28:00 +00:00
Derek Atkins 7b3bb91ed7 * src/business/business-core/gncBillTerm.c:
* src/business/business-core/gncTaxTable.c:
	  Fix a crash where removing items in the wrong order could
	  cause "Bad Things" to happen -- referencing an invalid
	  object.  When being destroyed, an object should remove itself
	  from it's parent's list of children, in addition to removing
	  itself from it's children's pointer-to-parent.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8848 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-10 03:18:17 +00:00
Derek Atkins e703054fb7 * src/app-utils/gnc-ui-util.[ch]: add a function to parse a numeric
with the caller providing all the locale-specific information


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8847 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-10 03:10:08 +00:00
Derek Atkins 743889ead0 * configure.in: change (and comment out) checks for pthreads
* macros/acx_pthread.m4: change pthread search (should be removed)
	* src/engine/guid.c: remove pthread code and just use a static buffer.
	  (pthread code is kept within some #ifdef's, just in case we decide to
	   put it back in later).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8846 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-07-10 03:08:48 +00:00