Commit Graph

7140 Commits

Author SHA1 Message Date
Linas Vepstas
a84a032a6a oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8690 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 02:27:22 +00:00
Linas Vepstas
5770f0ca0d rename gncObject to QofObject
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8689 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 02:08:22 +00:00
Linas Vepstas
50906151db rename GNCBook to QofBook
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8681 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-25 00:52:46 +00:00
Linas Vepstas
834d799e57 fix include file usage.
Note this change causes book not to be marked as saved;
this is moved to gnc-session and will be checked in shortly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8680 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 23:57:08 +00:00
Linas Vepstas
3e676b3587 fix include file usage
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8679 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 23:54:56 +00:00
Linas Vepstas
cd0ead1ee2 fix include file usage
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8676 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 23:48:58 +00:00
Christian Stimming
281605aafd More code refactoring.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8675 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 22:23:17 +00:00
Christian Stimming
cb417395b5 2003-06-25 Christian Stimming <stimming@tuhh.de>
* src/gnome-utils/dialog-transfer.h: Add callback handler that is
	notified of the newly created Transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8673 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 22:18:39 +00:00
Linas Vepstas
2a31c40aba rename for gnc-book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8669 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 20:54:20 +00:00
David Hampton
24b7db5068 Stop updating the reconciliation end amount on date changes once the
user manually changes the amount. #110806


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8667 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 03:52:45 +00:00
David Hampton
bc7900035c Add a Cancel button to the dialog that is invoked when a register
containing a modified transaction is closed via the window manager
close button.  #105742


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8665 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 02:55:55 +00:00
David Hampton
506d7f64d6 Annotate window title if subaccounts are included.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8663 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-24 00:20:29 +00:00
David Hampton
f1377d1cd4 Show the running balance column by default. #92052.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8662 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 23:44:36 +00:00
Christian Stimming
7149c52213 2003-06-24 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/*: Refactor many HBCI functions to
	eventually enable queued processing of several HBCI jobs.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8660 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 22:57:55 +00:00
David Hampton
bed1d91aa9 Enhance the commodity selection dialog so that it can be limited to
currencies, non-currency commodities, or allow all commodities.  Fixes
#102023 and #115461.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8657 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 17:53:03 +00:00
David Hampton
12cff36837 Clean up usage of the gnc_ui_update_namespace_picker function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8656 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 06:22:57 +00:00
David Hampton
b41960509e Ignore the new test program.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8654 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 02:16:40 +00:00
Derek Atkins
cf763d7974 * src/business/business-reports/Makefile.am: add fancy-invoice report
* src/business/business-reports/business-reports.scm: load the fancy-invoice
	* src/business/business-reports/fancy-invoice.scm: a fancy invoice
	  report, to show what else is possible.  It's not really useful per
	  se, but it is another example for users.  To be useful it requires
	  some custom editing.  Thanks to Oliver Jones for submitting the
	  changes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8651 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-23 00:54:56 +00:00
Derek Atkins
7e19cbd393 * src/backend/file/gnc-backend-file.c: Apply sam's patch:
don't allow selection of directory for save file


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8649 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-22 23:48:47 +00:00
Derek Atkins
5d0011374d * src/report/standard-reports/category-barchart.scm: Properly
reverse the balances of accounts instead of using the internal
	  functions to determine when to reverse.  Fixes #115268.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8647 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-22 22:19:16 +00:00
Linas Vepstas
2447462174 simple stupid kloc counter
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8646 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-21 19:25:04 +00:00
Chris Lyttle
77254dc0d8 add Jon Lapham's patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8643 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-20 05:08:35 +00:00
Christian Stimming
696aef63fc 2003-06-18 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/druid-hbci-initial.c: Tolerate some
	banks' failure of the GetSystemId-job.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8642 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-18 20:52:48 +00:00
Chris Lyttle
16f2e59ba8 added jon Lapham's patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8640 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-18 04:15:27 +00:00
Derek Atkins
a436587841 * src/business/business-core/gncBillTerm.c: fix gncBillTermCopy()
so it PROPERLY copies the bill term.  Oops!
	* src/business/business-core/file/gnc-tax-table-xml-v2.c:
	  when rebuilding the refcount, make sure we fix the grandparent
	  problems first so we refcount the correct object.
	* src/business/business-core/file/gnc-bill-term-xml-v2.c:
	  when rebuilding the refcount, make sure we fix the grandparent
	  problems first so we refcount the correct object.  Also cope
	  with the broken gncBillTermCopy() and hope that the existing
	  parent is correct.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8638 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-17 21:38:41 +00:00
Derek Atkins
426e3068fa * src/engine/QueryNew.h: change QUERY_FIRST_TERM to a #define.
It does not need to be part of the enum (it's not even used anywhere)
	* src/engine/QueryCore.h: gint32 prints as a "%d", not a "%ld".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8635 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-17 21:29:22 +00:00
Linas Vepstas
c8b10ef11c add int32 predicate type
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8633 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-17 03:07:10 +00:00
Linas Vepstas
5d919e431b minor change to documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8632 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-17 00:19:42 +00:00
Derek Atkins
128c5374ed date.c -> gnc-date.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8631 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 22:49:23 +00:00
David Hampton
45f2f4d0bd Register with the component manager for ACCOUNT events. Redo the
window title when an event is received. Fixes #113164.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8628 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 07:27:59 +00:00
David Hampton
acb5794afa Enhance debugging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8627 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 07:22:41 +00:00
Derek Atkins
9cc5fc5dfd * src/engine/Account.c: initialize the returned values in
finder_help_function().  This fixes bug #108883 (and possibly
	  others not reported).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8625 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 05:31:29 +00:00
Derek Atkins
fe9ae37aeb * src/report/standard-reports/account-piecharts.scm: Don't use
gnc:reverse-account-balance? to determine whether to reverse
	  the balance -- base it purely on the report type.  Otherwise
	  certain reports doesn't work right when the "reverse account
	  balances" is set in certain ways.  Fixes #107472.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8623 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 04:51:36 +00:00
David Hampton
c1f8f4bbe8 New tests for un-voiding and reversing transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8622 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 03:52:09 +00:00
David Hampton
5acc9ef0c0 Update for changed function args.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8621 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 03:51:01 +00:00
David Hampton
645411c5c4 Utilized an empty register cell for displaying the note entered when a
transaction is voided.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8620 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 03:49:35 +00:00
David Hampton
3c058f6e33 Add new menu items and functions for voiding, un-voiding, and
reversing transactions.  New functions to clone Splits and
Transactions.  New debug functions to dump Splits and Transactions to
stdout.  New functions to un-void a transaction and to reverse all the
values in a transaction.  Mark voided transactions as read-only.
Support requested in 92105.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8619 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 03:48:59 +00:00
Derek Atkins
a3b22eb924 * src/business/business-gnome/dialog-invoice.c: change how the
billterms option menu is used so it will change properly if
	  you change the invoice's owner.  Fixes #115290.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8617 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 02:24:54 +00:00
David Hampton
cf46c2a581 Ignore autom4te.cache directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8616 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 01:47:12 +00:00
David Hampton
d3905e613f A couple more date.h -> gnc-date.h changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8615 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-16 01:44:41 +00:00
Derek Atkins
6df7abcfa9 * src/business/business-gnome/dialog-billterms.c:
* src/business/business-gnome/dialog-customer.c:
	* src/business/business-gnome/dialog-employee.c:
	* src/business/business-gnome/dialog-payment.c:
	* src/business/business-gnome/dialog-vendor.c:
	* src/business/dialog-tax-table/dialog-tax-table.c:
	* src/gnome/dialog-scheduledxaction.c:
	* src/gnome/gnc-split-reg.c:
	* src/import-export/hbci/hbci-interaction.c:
	  Change dialog statements to allow for embedded percent signs in
	  the messages.  In other words, don't allow user input into the
	  format string of a printf.  There may be other forms of this bug
	  elsewhere -- the code should be manually scrubbed file by file
	  for all printf()'s to make sure no user-servicable strings are
	  used as a printf format argument.  Fixes #115245.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8613 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-15 22:51:40 +00:00
Derek Atkins
7eff813058 * src/import-export/qif-import/druid-qif-import.c: raise the
import window after choosing a file.  I think this fixes #114209
	  but I couldn't reproduce the problem so I couldn't actually test
	  the fix.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8611 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-15 19:28:50 +00:00
Derek Atkins
abf1884181 * src/engine/QueryCore.[ch]: create a new GUID_MATCH_LIST_ANY
match-type, which can eventually be used to make an AccountGroup
	  comparrison (once we figure out how to label an account group with
	  a GUID)
	* src/engine/QueryNew.c: print out GUID_MATCH_LIST_ANY query terms
	* src/engine/gw-engine-spec.scm: wrap GUID_MATCH_LIST_ANY


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8608 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 18:58:15 +00:00
Derek Atkins
5ecbf8ba78 * src/register/ledger-core/split-register-model.c: enable the
exchange-rate dialog on "search ledger" registers.
	Fixes #113987


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8606 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 18:23:47 +00:00
Derek Atkins
09012a0aab * src/backend/file/io-gncxml-v2.c: make the book-string an extern
* src/backend/file/gnc-book-xml-v2.c: make the book-string non-static
	Fixes #114401


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8604 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 18:17:18 +00:00
Chris Lyttle
73c7c7b539 add Jon Laphams patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8602 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 17:45:42 +00:00
Derek Atkins
627940f209 * src/business/business-core/gncTaxTable.c:
* src/business/business-core/gncBillTerm.c:
	  Mark the data book as dirty if a tax table or bill term is
	  destroyed.  Fixes all of #114889 that I can reproduce.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8599 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 05:38:31 +00:00
Derek Atkins
3fedea2039 Revert changes that should not have been committed. Oops. Sorry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8598 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 05:23:26 +00:00
Derek Atkins
0aacad725a * src/business/business-core/gncBillTerm.c:
- keep a list of children so we can unref ourselves from our
	    children when we get destroyed
	  - deal with parentless children
	* src/business/business-core/gncCustomer.c:
	* src/business/business-core/gncInvoice.c:
	* src/business/business-core/gncVendor.c:
	  deal with properly un-ref'ing Bill Terms and Tax Tables
	* src/business/business-core/file/gnc-bill-term-xml-v2.c:
	  create a scrub function to clear up bogus bill terms due to
	  bug #114888 which could cause bill terms to get created
	  due to post/unpost of invoices.  Scrubs all invoices and
	  fixes the reference to bill terms, and updates the refcounts.
	Fixes bug #114888 for bill terms.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8597 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 05:17:07 +00:00
Derek Atkins
d2c193825a * src/backend/file/io-gncxml-v2.[ch]: add API to the plugin
modules to allow post-processing (scrubbing) of the book after
	  it is loaded from XML.  This allows a plug-in to post-process
	  the complete book.
	* src/business/business-core/file/gnc-customer-xml-v2.c:
	* src/business/business-core/file/gnc-employee-xml-v2.c:
	* src/business/business-core/file/gnc-entry-xml-v2.c:
	* src/business/business-core/file/gnc-invoice-xml-v2.c:
	* src/business/business-core/file/gnc-job-xml-v2.c:
	* src/business/business-core/file/gnc-order-xml-v2.c:
	* src/business/business-core/file/gnc-vendor-xml-v2.c:
	  add a NULL scrub member to the XML plugin API.
	* src/business/business-core/file/gnc-tax-table-xml-v2.c:
	  create a scrub function to clear up bogus tax tables due
	  to bug #114888 (and related bugs) which could cause
	  tax tables to get created ad-nausium if you post and then
	  unpost an invoice.  Scrubs all the entries for bogus
	  tax tables, and then clears out the bogus tax tables.
	* src/business/business-core/file/gnc-bill-term-xml-v2.c:
	  Hook in an empty scrub routine, because I think the same
	  bug exists here, but I'll work on that later.
	* src/business/business-core/gncEntry.c:
	  make sure we properly dereference tax tables when we destroy
	  an entry.
	* src/business/business-core/gncTaxTable.c:
	  - keep a list of children so we can unref ourselves from our
	    children when we get destroyed
	  - deal with parentless children
	Fixes bug #114888 -- don't generate phantom (parent) tax tables
	and clean up any existing bogus tax tables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8595 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-14 04:31:03 +00:00