Commit Graph

5551 Commits

Author SHA1 Message Date
Derek Atkins
4f98e2cb49 Move the GetParameter function into .h from P.h -- it's useful outside
the engine


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6697 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-08 05:08:18 +00:00
Dave Peticolas
d159b826f4 fix docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6696 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 08:07:17 +00:00
Derek Atkins
eb3af031c3 gncEntryLedger: add function to reset the query
dialog-order: (re)set the Order's Owner when the UI changes
dialog-invoice: (re)set the Invoice's Owner with the UI changes, and update
    the entry-ledger query to pick up the proper entries..  This can cause
    problems if the user has already attached any entries to this invoice.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6695 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 02:41:51 +00:00
Derek Atkins
c68bf8adbd Move the query_compare_t (compraritor, or "what kind of comparrison to make")
into the Predicate Data, which allows the predicate creation functions
to sanity check the validity.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6694 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 02:39:01 +00:00
Derek Atkins
ba18e6db4c add COMPARE_NEQ support
add some extra tests for valid "how" values and PWARN for invalid ones.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6693 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 00:50:09 +00:00
Dave Peticolas
ca87c3a207 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6692 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 22:58:53 +00:00
Derek Atkins
a90bed0151 default to % for discount and tax interpretation types
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6691 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 20:27:10 +00:00
Derek Atkins
8a96da9c0d Implement "GUID_MATCH_ALL" (to enable support for the old ACCT_MATCH_ALL).
Note that this allows a user to shoot themselves in the foot if
they don't supply a parameter that returns a list.   Right now
the only valid use of this option is:

	(Trans)->TRANS_SPLITLIST->SPLIT_ACCOUNTGUID


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6690 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 16:39:21 +00:00
Dave Peticolas
8615b3d40a fix spelling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6688 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 06:21:08 +00:00
Derek Atkins
198b7d043b - gncOwner: add create/destroy functions (for scheme)
- g-wrap the gncOwner interfaces

- restructure the Extensions menu

- dialog-invoice.c: hide the 'print invoice' button until after the
		invoice has been posted

- dialog-order.c: validate the passed-in gncowner to make sure it is a
		valid type


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6687 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 04:11:31 +00:00
Derek Atkins
75bade2f8d convert GNC_ID_NONE to appropriate module in component_watch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6686 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 18:55:11 +00:00
Derek Atkins
5836537d92 - register gncAddress for queries
- register gncJob for queries
- add customer->address and vendor->address methods
- rename gncJobSortFunc to gncJobCompare


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6685 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 18:54:06 +00:00
Derek Atkins
a161f3714c update AUTHORS file
Reset Query when changing an invoice from ReadWrite to ReadOnly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6684 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 16:06:27 +00:00
Derek Atkins
a473c139ba regex.h is broken on Linux; it doesn't include all the necessary
headers itself (e.g. for size_t).  Stupid Linux.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6683 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 16:05:27 +00:00
Derek Atkins
b7fb090444 - register the GncOwner as another queriable type
- add to EntryLedger query for invoices; moving from an order->invoice
  will show the appropriate entries for the customer/vendor.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6682 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 02:53:13 +00:00
Derek Atkins
2a0f766c34 * fix QueryNew bug: make sure to retain book list
* Update the QueryNew API to take a GList of terms to allow
  for any number of iterative lookups (such as
  GncEntry->GncInvoice->GncAccount->GNCBook->guid) (not that this
  is a useful example ;)

* Update all the business objects to the new API -- don't distinguish
  between a parameter that returns a core type and a parameter that
  returns another object.  Note that this implies that the namespace
  is shared between the objects and core types.  Also note that this
  is not enforced in any way.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6681 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 01:55:33 +00:00
Derek Atkins
ff880b0efd * gncObject -- object registration in the engine; hook into the books
* QueryNew interface revision-1 check-in

 * update all the business objects to register with the new query system


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6680 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-03 20:01:08 +00:00
Dave Peticolas
beaab8a9f2 add includedir definition
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6679 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 11:39:12 +00:00
Dave Peticolas
f8548a48f3 fix warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6678 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 09:26:16 +00:00
Dave Peticolas
3a3763e085 work on rpm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6677 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 08:57:17 +00:00
Dave Peticolas
f048bb2f55 Fix quoting problems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6676 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 00:00:23 +00:00
Dave Peticolas
38f414e2ed Add new paths to front of lists.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6675 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 23:57:24 +00:00
Dave Peticolas
d4a459b968 Peter O'Gorman's patch for Max OS X.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6674 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 07:38:35 +00:00
Dave Peticolas
94ad76156a update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6673 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 07:15:06 +00:00
Dave Peticolas
1ab386b01a *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6672 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 07:14:56 +00:00
Dave Peticolas
edf366ae4d fixes for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6671 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 07:14:27 +00:00
Dave Peticolas
7a250d4919 fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6670 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 01:25:01 +00:00
Dave Peticolas
8f7bf97b67 fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6669 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 01:23:17 +00:00
Dave Peticolas
3a260e160b fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6668 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 01:22:01 +00:00
Dave Peticolas
27b72190d2 fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6667 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 00:51:38 +00:00
Dave Peticolas
046b3e4508 fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6666 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 12:21:59 +00:00
Dave Peticolas
e694f8a754 fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6665 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 12:01:22 +00:00
Dave Peticolas
875e3e25fe fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6664 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 09:49:19 +00:00
Dave Peticolas
46c3d1d6b1 update file list
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6663 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 09:13:52 +00:00
Dave Peticolas
173de1ca7b fix for make dist
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6662 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 09:10:28 +00:00
Dave Peticolas
214f46c2bd * src/report/standard-reports/account-piecharts.scm: bump up default
pie chart height

* src/bin/overrides/gnucash-env.in: set LTDL_LIBRARY_PATH, too

* macros/gnome-gdk-pixbuf.m4: fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6661 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 08:53:39 +00:00
Linas Vepstas
38a6d9f1cb japanese translation <iwashita@center.nitech.ac.jp>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6657 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 08:07:05 +00:00
Linas Vepstas
6f5f15abae translation from Tomokazu Iwashita
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6656 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-29 08:04:39 +00:00
Dave Peticolas
63a3dcef61 David Hampton's UI tweak patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6655 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-28 23:11:21 +00:00
Derek Atkins
a8d8147273 Add new interface to create an account with a list of valid types
(so the caller can limit the account type(s) of a newly-created account)

Add new interface to convert from UI-local account-type-string back
to the account type enum.

Use these interfaces in the date-close dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6653 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-26 04:57:53 +00:00
Dave Peticolas
ce26a0fb11 update man pages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6652 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-25 23:23:34 +00:00
Derek Atkins
98291af675 Fix bug: if you enter a non-existant account and hit 'ok' while still
in that cell, it would save an invalid entry.  Now it will run
the 'traverse()' code before it verifies that it can close the cell.

Move the 'verify_close' into Control.c, and remove a few unnecessary
global functions.  I.e., dont expose 'save' -- other components
should call verify_close() to perform the save.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6650 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-25 22:41:45 +00:00
Derek Atkins
47e7a13110 Fix the traversal code to actually work right. Now tabbing off the end
of the line does the same thing as clicking out of a cursor.  This is
especially useful if you are going back to edit an older entry.

Add some more logic to the autocompletion code, not that it actually
autocompletes on anything.

Test for a valid entry before allowing the cursor to move.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6649 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-25 20:24:15 +00:00
Dave Peticolas
8357ea18a3 update 'cell changed' api
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6647 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-24 23:19:47 +00:00
Dave Peticolas
19cadf17da Peter O'Gorman's file i/o patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6646 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-24 06:34:49 +00:00
Derek Atkins
243babdc03 More Invoice/Order updates/fixes:
- check if the current entry changed and ask to commit when the
  order/invoice is commited (via ok, close, or post)
- save the entry_ledger in the order; destroy it at dialog exit
- fix bug in the entry_ledger model: get_inv_entry would never reset itself


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6644 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-24 04:27:41 +00:00
Dave Peticolas
101cbeaa0b undo change, add docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6643 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-24 01:56:33 +00:00
Derek Atkins
88aac579bc - Refactor invoice dialog creation; keep dialog open after a 'post'
- add API to convert an Entry Ledger from RW to RO
- destroy blank split when E.L. is destroyed


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6642 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-24 01:28:21 +00:00
Derek Atkins
cf012be7fd Hook the Entry Ledger into the component manager
fix the 'account creation is not noticed' bug
set up closer to 'provide a query' interface


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6641 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-23 23:05:11 +00:00
Dave Peticolas
566e52044c fix bug. increasing == ASC
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6640 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-23 12:24:51 +00:00