Commit Graph

5983 Commits

Author SHA1 Message Date
Derek Atkins
91a961d792 * fill out the Invoice Window Menu, based upon the Register
Window.  Fill in the callbacks required to get the menu to work.

	* Create a hook into the "owner-report" and link that into the
	Invoice Window, so you can print the report from any Invoice.

	* add a hook in the entry ledger to obtain the current Query (to
	set the sort order).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7075 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 22:10:18 +00:00
Derek Atkins
94946605f6 Add DATE_ENTERED parameter into the searchable fields
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7074 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 22:08:00 +00:00
Derek Atkins
bbe97eea70 A few more typos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7073 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 22:04:22 +00:00
Derek Atkins
9e5a9336db Fix a typo that could crash the report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7072 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:50:17 +00:00
Derek Atkins
ff6708d932 change a bunch of "callback" functions to non-static, so they can
be used elsewhere.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7071 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:29:29 +00:00
Derek Atkins
24fc191ac3 Fix a typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7070 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 21:28:45 +00:00
Derek Atkins
ab19dd4c7b * add a menubar to the Invoice Window in glade
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7069 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 15:40:48 +00:00
Derek Atkins
3f22ee757d * business/business-gnome/dialog-invoice.c: use glade for the
popup.  Only set the popup for Read-Write invoices.
	* business/business-gnome/glade/invoice.glade: define the popup
	menu in glade.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7068 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 15:18:27 +00:00
Derek Atkins
e5b6d357a5 * register/register-gnome/gnucash-sheet.c: allow a caller to
"unset" the popup menu by passing a NULL popup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7067 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 15:14:21 +00:00
Derek Atkins
28fabff82f * business-gnome/dialog-invoice.c: make all my callbacks
non-static; remove the toolbar creation code.
	* business-gnome/glade/invoice.glade: create the toolbar in glade.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7066 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 04:30:34 +00:00
Derek Atkins
6b4cffd608 Revert to using insensitive() widgets, per discussion on #gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7065 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 02:01:33 +00:00
Derek Atkins
339d8da55b As per suggestions on #gnucash, use hide() instead of insensitive() for
unavailable toolbar buttons


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7064 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 01:37:36 +00:00
Derek Atkins
5e0301a9cd Instead of hiding the invalid toolbar entries, just make them
insensitive at the appropriate times.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7063 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 01:04:51 +00:00
Derek Atkins
5b7d7cf199 Fix the "size" problem -- the customer/vendor widget was taking up too much
space.  This was because the HBOX was had both expand and fill set to
true.  Oops.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7062 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 01:04:01 +00:00
Joshua Sled
eca16b42dc 2002-07-01 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-scheduledxaction.c:
	* src/gnome/dialog-sxsincelast.c:
	* src/app-utils/prefs.scm: Added options/code-support for
	saving/restoring sizes of SX-related windows.  Fixes bug 86007.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7061 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-02 00:06:22 +00:00
Derek Atkins
40f6ede615 * Convert all (well, most all) HTML URL-generators to use
gnc_build_url() (or gnc:html-build-url in scheme) instead of
	assuming the HTML prototype string.  Unfortunately the
	help-window-index.scm cannot be fixed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7060 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 23:01:12 +00:00
Christian Stimming
40c360338a 2002-07-02 Christian Stimming <stimming@tuhh.de>
* accounts/fr_FR/*: Add french account hierarchy template by
	Yannick LE NY <y-le-ny@ifrance.com> (might need more work though.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7057 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 22:24:28 +00:00
Christian Stimming
a3ac6afc6b Fix missing gnome_libdir.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7056 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 21:30:09 +00:00
Derek Atkins
e576f51997 Don't assume gnu-date; use +FORMAT instead (which is more portable)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7055 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 20:52:08 +00:00
Joshua Sled
fab186c56b 2002-07-01 Joshua Sled <jsled@asynchronous.org>
* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_mark_remove):
	Unrealistic marks [such as '-1'] are now ignored instead of
	hitting assertion.

	* src/gnome/dialog-scheduledxaction.c: Dead code removal; naming
	clarifications.
	(gnc_sxed_check_consistent): Added.
	(gnc_sxed_check_changed): Added; used when the cancel button is
	pressed.  SX editor now queries the user if the SX has changed.
	(gnc_sxed_save_sx): Added; seperated from consistency-check.
	(_gnc_sxed_get_widgets): Added; many glade_xml_get_widget(...)s
	removed from code.
	(free_var_numeric): Added; we now cleanup the temporary variable
	table correctly after doing balance checking.
	(schedXact_editor_create_ledger): RegWidget toolbar shouldn't
	expand; fixed.
	(putSchedXactionInDialog): Fixed assertion-failure/abort when a
	previously-unscheduled SX is scheduled.

	* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance),
	(xaccSchedXactionGetInstanceAfter): Fixed bug in
	number-of-occurance instance-state processing.

	* src/register/ledger-core/gnc-regwidget.c:
	* src/gnome/dialog-schedxaction.c:
	* src/gnome/dialog-sxsincelast.c:
	* src/engine/SchedXaction.[ch]:
	* src/engine/FreqSpec.[ch]: Dead code removal/cleanup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7054 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 19:12:37 +00:00
Derek Atkins
52b503aca9 * fix the business XML to use symbolic names for enums (instead of
their integer values).  This is an incompatible change -- old
	business XML objects will not load properly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7053 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 18:31:48 +00:00
Derek Atkins
edc1a34ecc * gnc-html: convert URLType from enum to char*
* gw-gnome-utils-spec: wrap URLType type, #defines, and gnc_build_url()
	* get the rest of the C code to use URLTypes properly


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7052 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-07-01 17:27:11 +00:00
David Hampton
6cd1c16df0 Fix a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7051 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 20:28:56 +00:00
David Hampton
9dec16811b Add the current version number or cvs build date to the splash screen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7050 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 20:28:31 +00:00
Derek Atkins
f232f64158 Add a 'Reconciled Date' column to print the date of reconciled splits.
It is turned off by default.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7049 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 15:47:06 +00:00
Derek Atkins
72ba391d45 wrap SPLIT_DATE_RECONCILED parameter
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7048 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-29 15:37:23 +00:00
David Hampton
089f36853f Use the actual version number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7047 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 22:51:04 +00:00
Chris Lyttle
2c66ccb656 updated image to remove version info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7046 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 22:42:17 +00:00
Chris Lyttle
9c3904576b updated image to remove version info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7045 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 21:56:56 +00:00
Derek Atkins
d79cc8cbe2 Add a text label around the splash screen that includes the Gnucash
Version (currently hard-coded to "Version: Gnucash-CVS")


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7044 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 21:08:51 +00:00
Derek Atkins
e5431b6807 Set the query to limit searches to splits that belong to the
customer (or vendor) in question.  This way you can have multiple
customers sharing an A/R account and report on just an individual
customer.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7043 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 05:04:56 +00:00
Derek Atkins
c9d24dac4f Add Query system hooks for invoice-from-lot, invoice-from-txn and
owner-from-lot.  Wrap some of the business query-param names.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7042 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 04:39:18 +00:00
Derek Atkins
8f63db0411 create xaccQueryAddGUIDMatchGL() and wrap it. This is a special function
that takes a GUID (instead of a const GUID *) and a GList (instead of
a GSList) and performs an gncQueryAddGUIDMatch().

Add Lots to the query infrastructure, so we can add Lot-based lookups
and queries.

Add SPLIT_LOT parameter and wrap it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7041 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 04:20:46 +00:00
Derek Atkins
6470316116 * Change the "Owner Report" to a "Customer Report" and "Vendor
Report" Create a plug-in system to plug reports into the Register
	Window, keyed off of the account type and whether a split exists
	(for a "Transaction" report).  This required changes to the
	payables and receivables (aging) reports.

	* Tie the Customer and Vendor reports in, so you can bring up a
	Customer Report by selecting a transaction in an A/R account and
	clicking on Reports -> Transaction Report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7040 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 03:42:26 +00:00
Derek Atkins
bceb36bd12 wrap gncInvoiceGetInvoiceFromTxn()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7039 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 03:01:20 +00:00
Derek Atkins
611cc941d6 wrap xaccSplitGetLot()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7038 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 02:59:58 +00:00
Derek Atkins
43083bb2db * Create an "owner-report" which prints out a set of Invoice and
Payment transactions and also an aging report for a single "owner"
	(e.g. Customer or Vendor).  This is still a first pass, so it
	might not be correct.  It uses Lots, but it assumes that the
	Account is periodically closed and re-opened (does not have a
	'start-date').  It still needs to be tied into the main GUI.

	* gncJob: add gncJobRetGUID() and gncJobLookupDirect()

	* gncOwner: add gncOwnerRetGUID()

	* gw-business-core-spec.scm: wrap GncAmountType, GncTaxIncluded
	GncBillTermType, gncInvoiceGetInvoiceFromLot(), gncJobRetGUID(),
	jobJobLookupDirect(), gncOwnerGetEndOwner(),
	gncOwnerGetOwnerFromLot(), gncOwnerRetGUID()

	* business-gnome.scm: add extensions to test the owner-report

	* business-options.scm: add an "owner" option-type


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7037 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 20:03:19 +00:00
Derek Atkins
4e89bf835d wrap xaccTransOrder() for use by scheme
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7036 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 19:57:28 +00:00
Derek Atkins
61ade522d6 wrap xaccQueryGetLots()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7035 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:12:04 +00:00
Derek Atkins
b4e4b08957 Implement xaccQueryGetLots() which is just like xaccQueryGetTransactions()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7034 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:10:40 +00:00
Derek Atkins
f5994b5554 add gnc_lot_count_splits() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7033 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:09:53 +00:00
Derek Atkins
2ce7831f7d src/engine/Transaction.[ch]: add xaccTransGetAccountValue() method to compute
the sum of all Splits in a Transaction that touch a specific Account.  This
  is most useful with lots.

src/engine/gw-engine-spec.scm: wrap some of the Lot API and the new function
  xaccTransGetAccountValue(), and xaccTransGetTxnType()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7032 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 02:11:17 +00:00
Derek Atkins
094f790dd0 deal properly if owner == NULL (return FALSE)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7031 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-26 23:18:22 +00:00
Derek Atkins
aa9324090e Uncomment code I commented before. Keep the window size instead of
always resiing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7030 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 23:32:24 +00:00
David Hampton
0f637a6a41 Fix guile-1.4.1 srfi problem.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7026 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 20:54:40 +00:00
Derek Atkins
ec0dbe6b44 * gncOwner.[ch]: Provide functions to store/lookup an owner in a
Lot's kvp_frame.

	* gncInvoice.c: add implemention of GetPostedLot(); when posting
	to an Account, look for any pre-payment Lots and post to that.  If
	the Invoice total < pre-payment, then autmatically forward the
	payments to a future Lot.  If no pre-payment Lot is found, then
	create a new one.

	* dialog-payment.c: force payment amounts to be positive values
	(you cannot un-pay via this dialog).  Apply payments to open
	Invoice Lots in a FIFO manner (by Due Date).  If there is anything
	left over, then create a pre-payment Lot.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7024 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 15:08:50 +00:00
Derek Atkins
131add077d src/engine/Account.[ch]: add convenience function to find open lots
that meet caller's criteria, and create a
			 sorted list (maybe)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7023 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 14:58:36 +00:00
Derek Atkins
7ddf9aa4e8 Force recomputation of lots' is_closed flag when splits are added
or removed.  Otherwise it's possible to return a false-negative
cached response.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7022 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 14:13:50 +00:00
Derek Atkins
d77cf0dbc6 actually create the kvp_frame for the lot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7021 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 05:20:19 +00:00
Derek Atkins
225fbb6934 Fix a typo in a function name that I didn't catch earlier
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7020 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 04:20:53 +00:00