Commit Graph

5857 Commits

Author SHA1 Message Date
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
Derek Atkins
849f794800 * gncInvoice*, gnc-invoice-xml-v2.c: add a "posted_lot" attribute
which points to the LOT created during the posting of the invoice.
  Also provide a function to grab the invoice from the lot (via KVP
  storage).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7019 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 22:30:36 +00:00
Derek Atkins
e2299697df src/engine/gnc-lot.[ch]: provide gnc_lot_get_book() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7018 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 22:28:33 +00:00
David Hampton
93cbc81065 First round of OFX changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7017 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 17:49:39 +00:00
Derek Atkins
18aea89446 Need to supply ${GUILE_INCS} when you want the guile headers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7016 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 15:29:09 +00:00
Derek Atkins
b8993646a2 Fix bugID: 85688
Set the invoice window titles appropriately based on the window type
(New/Edit/View) and the object type (Invoice or Bill).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7015 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 15:24:41 +00:00
David Hampton
775e588af0 Fix parameter names in comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7014 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 08:10:28 +00:00
David Hampton
97f77cca4a Fix a bunch of compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7013 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 05:58:58 +00:00
David Hampton
0e9813fa00 Remove unused code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7012 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 05:56:06 +00:00
Derek Atkins
7bebb2eae9 Customer and Vendors can set TaxIncluded to Yes, No, and Use Global,
which will allow you to override the global setting or just use it..
(Default is Use Global).

Grab the default TaxIncluded settings in the Entry Ledger.

Fix a couple compiler warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7011 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 04:59:04 +00:00
Joshua Sled
f6e6c69101 2002-06-23 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c: Lists of SX instances [the
	Reminders and To-Create] are now trees instead of clists.
	Better structure of internal state.
	Fixed multiple-SX-reminder selection/processing bug [Bug#85997].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7010 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 02:55:25 +00:00
Derek Atkins
1c8ebea9aa * handle double-clicks in the search dialog
* change the close/cancel button as the dialog changes -- you
  cancel a "search" and you close a "find"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7009 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 17:30:41 +00:00
Derek Atkins
b32d5854e0 Save the due-date properly (even if the focus_out_event isn't working)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7008 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 16:35:06 +00:00
David Hampton
cee40d8445 The QIF module now creates its own menu item.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7007 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 06:27:50 +00:00
Derek Atkins
6450592b65 Mixed up Taxable and TaxTable columns. Fix that.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7006 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 03:09:06 +00:00
Derek Atkins
d2cf3e5741 Fix the column headers. Expand the acronyms to be clear, and mark them
as "LEFT" instead of "RIGHT" to get the beginning of the header instead
of the end.  Fixes bugID #85691.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7005 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 03:00:17 +00:00
Derek Atkins
96b0966602 Register the generic option-menu (taxtables and billterms) with
the component manager so it will auto-update when items change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7004 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 02:30:57 +00:00
Derek Atkins
342eb5d77a Get the invoice toolbar (and menubar) to appear correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7003 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:25:24 +00:00
Derek Atkins
47563841db Fix the item ordering (so it appears in ascending order)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7002 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:24:40 +00:00
Derek Atkins
98f2b6a280 re-sort the list of visible items when the appropriate entries
change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7001 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:23:28 +00:00
Derek Atkins
7060f342cd Fix bugID# 85995. Get invoice and search-dialog windows to appear
proper size by delaying the "show_all" on the dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7000 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 00:02:35 +00:00
Derek Atkins
b4a361c082 Benoit's "blank-line patch":
Could someone please apply this ridiculous one line patch.  For some reason
the lack of a newline after #if DEBUG causes compilation to fail with
"dialog-scheduledxaction.c:372:25: missing binary operator" on my setup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6999 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 22:31:16 +00:00
David Hampton
23926cd141 Optional module loading. Latest OFX changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6998 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 22:15:54 +00:00
Derek Atkins
a9df3df3f9 * gncBillTerm: add functions to compute DueDate and DiscountDate from
a Timespec (post_date) and the Billing Term definition.

* dialog-date-close: use billing terms; if a term object is supplied,
  display the due date but do not allow the user to modify it directly.
  Use callbacks from the date-edit widget to update the due date.

* dialog-invoice: don't worry about pre-computing a due date; pass the
  billing terms into the date-close dialog.

* date: add a few convenience functions to convert from Timespec to
  day/month/year; compute the last mday from a Timespec; compute the
  last mday from a month/year.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6997 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:55:00 +00:00
Derek Atkins
23a70b22d2 signal DATE_CHANGED when the focus event occurs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6996 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:49:22 +00:00
Derek Atkins
be1c3236f0 Save proximo-type billterms with the right tag. (oops)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6995 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:25:54 +00:00
Derek Atkins
00a335aca1 * integrate the Billing Terms into the Core, GUI, and XML Backend
for the rest of the business objects that need billing terms.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6994 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 02:38:13 +00:00