Commit Graph

5793 Commits

Author SHA1 Message Date
Derek Atkins
cee0798532 * src/app-utils/option-util.c: Add a function to reset all the gui
widgets for an option-db, ignoring sections that begin "__".

	* dialog-options.c: remove all the 'set to default' buttons and
	add a single 'defaults' button in the dialog button box, which
	resets all the options to their default values.  The user still
	has to 'apply' the changes to take effect.  Also change "close" to
	"cancel".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6924 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-28 00:36:30 +00:00
David Hampton
3aba7c050d Sort the account type list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6923 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-28 00:17:09 +00:00
Derek Atkins
01189152f3 Don't require fixed-point addition; we'll round at the end. Just let
gnc-numeric do the math for us.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6922 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 19:19:26 +00:00
Derek Atkins
8bd744d6d0 Use the new invoice option to hold the invoice being shown
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6921 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 18:24:41 +00:00
Derek Atkins
aef6a39dce * Create new options for a few business objects. This allows you to
save reports that reference Invoices, Customers, or Vendors and have
  them reload properly.

* Add two new functions to interface Invoices, Customers, and Vendors
  to scheme (RetGUID and LookupDirect)

* fix the way Entry values are computed.  Cache the computed values so
  you're not recomputing the math all the time.  It should also round
  properly, now.

* fix the display of entry values to round to the commodity fraction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6920 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 18:17:31 +00:00
Derek Atkins
a1a9d90b8b * dialog-options.c: implement a radiobutton option type.
* options.scm: implement a radiobutton option type.
	* app-utils.scm: export the new radiobutton option creators
	* prefs.scm: change the Account Separator to a radiobutton; move


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6919 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 05:24:41 +00:00
Derek Atkins
706df53175 * src/gnome-util/dialog-options.[ch]: Create an option-type
database so that modules can define new option-types and plug them
	into Gnucash.  Break apart the existing "if type == blah; else if
	type == blah blah..." code and use the new options-type database.
	New options require the implementation of three functions,
	set_widget(), set_value(), and get_value().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6918 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 02:48:19 +00:00
Linas Vepstas
1d7c3ea829 update lot status
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6916 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 05:15:48 +00:00
Linas Vepstas
be8c5855d8 added tracing; misc lot-related bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6915 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 04:44:53 +00:00
Linas Vepstas
f47b53a310 misc cleanup; lot-related bug fixes; add more traces
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6914 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 04:42:08 +00:00
Derek Atkins
47eaa5c35d * src/engine/GNCId.c: Implement xaccForeachEntity() as a which
allows a traversal of all entities of a particular type.

	* Register GncObject_t descriptions for Splits, Transactions, and
	Accounts.  Move the QueryObject definitions into the actual module
	sources for Transactions, Splits, Accounts, and Books.  This
	allows QueryNew searches for Splits, Transactions, and Accounts.

	* gnc-engine.c: call the registration functions for Splits,
	Transactions, Accounts, and Books to enable searching using the
	new search subsystem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6913 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-25 02:50:24 +00:00
David Hampton
08e47f2b87 Finish fixing up the reconciliation window.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6912 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-25 01:38:11 +00:00
Derek Atkins
b9575c340f Provide a method to obtain the computed discount
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6911 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 21:19:45 +00:00
Derek Atkins
2aa7caf1a1 Put the search criteria into a scrolled window. It will auto-resize
horizontally but vertically the window will remain the same size
and scroll.  Note: need to adjust the scrollbar to scroll to the
end when you add a new criterion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6910 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 18:23:54 +00:00
Linas Vepstas
9744356c43 finish adding suport for save/restore of lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6909 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 14:59:29 +00:00
Linas Vepstas
aa8daf8345 miswc cleanup, add minor/misc lot support
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6908 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 14:57:19 +00:00
David Hampton
550999c5b7 A couple more reconcile window tweaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6907 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 07:29:56 +00:00
David Hampton
fb02a024eb Sorting in the reconciliation window is now done by clicking on the
column titles.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6906 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 06:21:05 +00:00
Derek Atkins
5ceb07af38 Create a "search-owner" widget for the search dialog, which allows you
to search _by_ owner.  Register at module load-time and use it in the
Invoice Search.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6905 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 03:34:27 +00:00
Derek Atkins
a7359db30b Implement grab_focus() and editable_enters() for the search-date widget
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6904 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 00:44:52 +00:00
Derek Atkins
ff42bc9386 implement grab_focus() and editable_enters() for other search widgets
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6903 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 00:31:32 +00:00
Derek Atkins
a19c61ac98 Actually hook in the editable_enters() code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6902 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 23:24:32 +00:00
Derek Atkins
ee6db584e2 Begin to implement grab_focus() and editable_enters() in order
to improve the UI.  Currently only string types have been updated.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6901 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 22:57:52 +00:00
Derek Atkins
c206acf6fe Fix payable report to save the account
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6900 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 21:57:16 +00:00
David Hampton
c2afef1d14 GncAmountEdit widget now based on a GtkEntry. Make the find dialog
more user friendly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6899 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 19:02:35 +00:00
Derek Atkins
862edd2220 Actually get the report to "save" successfully so one can reload later
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6898 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 18:01:34 +00:00
Derek Atkins
29b4ed62a0 Hook the payables and receivables reports into the window register
call them when viewing the appropriate accounts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6897 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 17:05:47 +00:00
Linas Vepstas
0b360f29ea more documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6896 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 05:24:41 +00:00
Linas Vepstas
698e96e874 misc trite changes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6895 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 05:11:51 +00:00
Linas Vepstas
4f79030fb7 undo scary cannabis-inspired damage
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6894 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 05:11:04 +00:00
Derek Atkins
ed360101be Create a new lot when an invoice is posted
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6893 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 02:47:46 +00:00
Derek Atkins
cd8551e563 business-gnome.scm: add global preferences for the invoice dialog
dialog-invoice.c:   get the dialog to size itself properly, and save the
		    width between runs.
gnucash-sheet.c:    fix a bug where the "optimal size" is reporting the
		    wrong value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6892 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 23:49:43 +00:00
Derek Atkins
ed76a1493e Create a popup menu for the register
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6891 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 18:40:02 +00:00
Derek Atkins
fc2ce45809 Make search types dynamic, so you can register new ones
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6890 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 16:32:24 +00:00
Linas Vepstas
3256ec7856 updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6889 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 05:58:04 +00:00
Linas Vepstas
f082d63108 Accounts 'own' lots and provide memory management, etc.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6888 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 05:48:22 +00:00
Derek Atkins
1ba28d23dc Not all versions of autoconf return 'GNU' in the --version.
Just search for "Autoconf" instead of "GNU Autoconf"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6887 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 03:57:02 +00:00
Joshua Sled
9ca6b3d830 2002-05-21 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sx-from-trans.c (sxftd_get_end_info): Changed
	to do the strtoul before we free the data itself; fixes "can't
	create once/number-of-occurance SXes" [in from-transaction dialog]
	bug.

	* src/gnome/dialog-scheduledxaction.c (editor_ok_button_clicked):
	Do a very lame but good-enough-for-now check to see if we can
	determine if the template transactions will still balance.  Note
	that we don't do anything with the result of that check, yet, but
	we perform it.

	* src/app-utils/gnc-exp-parser.c (gnc_exp_parser_real_init): Added
	so we can conditionaly add the "predefined variables" to the
	binding table for parsing a given expression.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6886 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 03:01:43 +00:00
Linas Vepstas
b443bcf002 add an example
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6885 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 01:03:23 +00:00
Derek Atkins
391e908943 configure.in: solve the "test: too many arguments" bug
acinclude.m4: don't need the extra MSG response


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6884 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 21:59:25 +00:00
Linas Vepstas
8179770a6d cleanup, start adding support for lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6883 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 05:22:55 +00:00
Linas Vepstas
3504798dec initial checkin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6882 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 05:20:54 +00:00
Linas Vepstas
aa3ccabc9f update status of lots implementation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6881 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 05:18:54 +00:00
Linas Vepstas
d34d0327fd get/set the guid
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6880 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 05:16:47 +00:00
Linas Vepstas
54be97345b fix various tab->3 spaces, tab->8 spaces indentation problems
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6879 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-19 16:32:59 +00:00
David Hampton
59e52d8714 Mac OS X support, round 2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6878 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-18 20:32:22 +00:00
Derek Atkins
094b57930f implement "Delete" and "Duplicate" functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6877 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-18 20:10:27 +00:00
Derek Atkins
a61e184428 Implement "Blank" (jump to blank)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6876 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-18 15:57:29 +00:00
Derek Atkins
2562c16e8a Implement "cancel" and "enter" buttons in the Invoice Window toolbar
refactor the 'check and save' code in the Entry Ledger, provide an interface
   for the invoice window to use
save and reload the current cursor in the Entry Ledger when reloading


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6875 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-17 22:09:14 +00:00
David Hampton
4fd247fb06 Remove some noise when debugging portfolio reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6874 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-17 01:06:35 +00:00