Commit Graph

7116 Commits

Author SHA1 Message Date
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
David Hampton
21edb97a57 Remove 'duude' messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8594 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-13 02:52:38 +00:00
Christian Stimming
77d9451c91 forgot makefile entry
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8593 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 21:28:24 +00:00
Christian Stimming
07c1a366fb 2003-06-12 Christian Stimming <stimming@tuhh.de>
* doc/TRANSLATION_HOWTO: Added, by Jon Lapham
	<lapham@extracta.com.br>.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8592 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 21:28:08 +00:00
Linas Vepstas
1d2817bc40 add note
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8587 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 03:12:20 +00:00
Linas Vepstas
9d232710ed fix mystery build break
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8586 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 02:53:21 +00:00
Linas Vepstas
7e498f8f2c fix mystery build break
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8585 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 01:22:26 +00:00
David Hampton
55f6d622a6 Remove unused routine. PG compiles again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8583 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 00:46:26 +00:00
David Hampton
914af285c4 Update for recent reorg changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8582 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-12 00:45:50 +00:00
Linas Vepstas
9b1f87a39d demarcate some special gnucash-specific sections of code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8581 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 17:07:01 +00:00
Linas Vepstas
43c3778be4 add -DGNUCASH for special gnc-session.c compile hack
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8580 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 17:05:13 +00:00
Linas Vepstas
676d19aaf9 move over typedef
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8579 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 17:04:08 +00:00
Linas Vepstas
8d97c8b30f add clarifying comments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8578 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:42:51 +00:00
Linas Vepstas
7111ca86d0 add missing log enable/disable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8577 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:39:38 +00:00
Linas Vepstas
19c22ee34d add comments re _() trnaslation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8576 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:39:10 +00:00
Linas Vepstas
7453aa9e94 remove _() translation from ObjectTypeLabel()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8575 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:35:54 +00:00
Linas Vepstas
c63cd4927c remove dead logging code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8574 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:30:47 +00:00
Linas Vepstas
4d997e5b52 add missing gnc-commodity.h include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8573 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:22:26 +00:00
Linas Vepstas
59d2641ecf perform _() translation here, not in engine, of the ObjectTypeLabel
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8572 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:17:41 +00:00
Linas Vepstas
4b8a657df3 perform _() translation here, not in engine, for gncObjectGetTypeLabel
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8571 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:14:50 +00:00
Linas Vepstas
f465f7f589 add missing include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8570 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 16:02:58 +00:00
Linas Vepstas
6cc4d3a0d5 use new not old query interface
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8569 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 01:41:35 +00:00
Linas Vepstas
e80567b0dc misc cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8568 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 01:34:35 +00:00
Linas Vepstas
63519bdf21 start removing accounting-specific structures (i.e. Account, Transaction)
from the backend, and from the session; goal is a generic backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8567 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 01:23:18 +00:00
Linas Vepstas
2b2b0cc557 add missing include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8566 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-11 00:48:19 +00:00