Commit Graph

7018 Commits

Author SHA1 Message Date
Derek Atkins
f81efbb4e3 * configure.in -- scrub the CFLAGS for postgres, as per Roland Roberts'
report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7857 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 05:09:42 +00:00
Derek Atkins
d953f96d13 * src/app-utils/hooks.scm -- create a new 'post-ui-startup' hook
* src/app-utils/app-utils.scm -- export the 'post-ui-startup' hook
	* src/scm/main.scm -- run the post-ui-startup hook after the UI
	  is up but before we run the ui-event-loop
	* src/business/business-utils/business-prefs.scm -- create two
	  new global preferences: "Notify Bills Due?" and "Bills Due Days"
	* src/business/business-gnome/business-gnome.scm -- create a dialog
	  are runtime (and via a new menu item) that displays all the bills
	  that are due withing "Bills Due Days" days from now.  It's ugly,
	  but it's functional.  Fixes #102439.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7856 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 04:18:39 +00:00
Derek Atkins
be187cdecb * src/gnome-utils/gnc-gui-query.c -- fix gnc_info_dialog() to deal
properly in the case that it's called before the UI is up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7855 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 01:59:17 +00:00
Derek Atkins
5fb2bad8dc * configure.in: scrub GNOME_PRINT_CFLAGS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7854 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 01:08:26 +00:00
Derek Atkins
41d79ac527 2003-01-19 John Pierce <john@killterm.org>
* macros/autogen.sh
	  Use variables for programs so they can be overridden easily.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7853 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 00:40:33 +00:00
Derek Atkins
42926d2039 Fix the tooltip, which required a small change to the logic. Default to
'1' instead of zero, and change logic to <, rather than <=.  All to fix
some descriptive language...  Heh!


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7852 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 23:42:15 +00:00
Derek Atkins
f64850f327 * src/app-utils/prefs.scm -- combine all the Advanced prefs into one
location.  Then add the "New Search Limit" preference.
	* src/gnome-search/dialog-search.c --Use the "New Search Limit" pref
	  to decide when to start a new search vs. when refine the search.
	  Really fix #97095.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7851 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 23:32:10 +00:00
Derek Atkins
f31adc8731 * src/gnome-search/dialog-search.c -- reset the search-type to
"New Search" if we end up displaying no results.  Fixes bug #97095.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7850 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 23:07:18 +00:00
Derek Atkins
54986a48c9 Update POTFILES due to the moved file locations
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7849 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 22:43:52 +00:00
Derek Atkins
1e8397b194 * src/engine/gnc-numeric.c -- be more intelligent when operating
on numbers of different denominators.  In particular, convert
	  both numbers to the lcd and then operate on them, instead of
	  assuming that a "cross-multiply" is safe.
	* src/app-utils/test/test-print-parse-amount.c -- add more tests for
	  PrintAmountInternal by checking force_fit and round.  Excercises
	  a bug (fixed in this patch) where cross-multiplies were NOT safe.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7848 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 19:38:14 +00:00
Derek Atkins
9de4ec1b86 * src/app-utils/prefs.scm: Remove "user name" and "user address"
preferences, as they are no longer used by anything.
	* src/report/standard/reports/register.scm: we're not using the
	  'invoice' portion anymore, so we don't need references to user
	  name and user address preferences.  This removes the "User Info"
	  page from the Global Preferences.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7847 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 03:22:25 +00:00
Derek Atkins
8f95724061 * src/app-utils/option-util.[ch]: add new functions to handle
kvp-options from C (similar to the gnome-utils functions to
	  create an option dialog from a kvp-frame for a particular
	  object).
	* src/business/business-utils/business-options.[ch]: add code to
	  lookup business options in an option database, from C.
	* src/business/business-ledger/Makefile.am: include business-utils headers
	* src/business/business-ledger/gncEntryLedgerLoad.c: load the tax-table
	  from the book-kvp options and use that as the default tax table

	FIXES 93462.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7846 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 02:48:23 +00:00
Derek Atkins
19441a4800 Mistakenly committed these (empty) files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7845 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-18 23:40:08 +00:00
Derek Atkins
bfe6c757b3 move code around a lot.
* Rename a bunch of files:
	  business-options to business-options-gnome
	  business-utils to business-gnome-utils
	  - this required changes to a bunch of files in business-gnome
	* move business-options.scm and business-prefs.scm to business-utils
	* create a business-utils gnc-module
	  - required changes to configure.in, business/Makefile.am
	  - added a bunch of files (generally moved from business-gnome)
	* moved a bunch of other non-gnome definitions out of the gnome-specific
	  locations (gnome-utils -> app-utils, or business-gnome -> business-utils)

	* gncEntryLedgerLoad.c: commented-out code to load tax-tables from
	  the options; waiting until code is actually written.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7844 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-18 23:36:53 +00:00
Derek Atkins
2e15b07299 * src/business/business-core/gncTaxTable.[ch]: add functions to
get the GUID and lookup by direct GUID (suitable for wrapping)
	* src/business/business-core/gw-business-core-spec.scm: wrap
	  the taxtable get-guid and lookup methods
	* src/business/business-gnome/business-utils.[ch]: re-implement
	  the "generic option menu" code to allow get_value(), set_value(),
	  and changed_callback() functions.
	* src/business/business-gnome/business-options.c: create a taxtable
	  option type using the new generic optionmenu code
	* src/business/business-gnome/business-options.scm: define a taxtable
	  option.  Also fix all the other options when using a KVP storage
	  to actually load and save the options properly
	* src/business/business-gnome/business-prefs.scm: create a default
	  customer and default vendor taxtable option for the "File Properties"
	  option menu.

	  Initial fix for #93462.  Next commit will actually use the values.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7843 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-18 21:48:16 +00:00
Derek Atkins
025ddb52aa * qif-merge-groups.scm: Limit matches against only the accounts in
the old group, so we don't match against ourselves.  This should
	  limit the matches to only "reasonable" matches, and should fix #102463


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7842 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-17 04:26:09 +00:00
Derek Atkins
a21813baa3 * src/engine/commodity-table.scm: move gnc:commodity-is-currency? here
* src/engine/engine.scm: export gnc:commodity-is-currency?
	* src/report/report-system/report-system.scm: remove ref to same.
	* src/report/report-system/report-system.scm: remove function above
	* src/import-export/qifiimport/qif-to-gnc.scm: fix the algorithm
	  to find/create new accounts.  All "parent" accounts are of
	  commodity "default-currency" (but don't really care about that).
	  When creating a leaf account, use the security if it's a
	  stock/mmf account, but the default-currency otherwise.
	  Fixes #103633.

	  NOTE:  Might need similar fixed in qif-io-core?


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7841 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-17 03:18:36 +00:00
David Hampton
4d2d578ec9 Update .cvsignore files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7840 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 07:52:03 +00:00
David Hampton
1959d5f911 /tmp/cvs7Cckh1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7839 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 07:42:20 +00:00
Derek Atkins
2e06f31717 * src/register/register-gnome/gnucash-sheet.c: fix a fencepost
error where it assumed there would be at least two "visible
	  rows" per block, so search through the end rather than skipping
	  the last row.  This fixes the page-up/page-down problem with
	  invoices.  Also add more places where the visible range is computed.

	* src/business/business-ledger/gncEntryLedgerLoad.c: add code to
	  "show_range()" which should fix the page-up/page-down problem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7838 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 02:56:26 +00:00
David Hampton
da1597b40d Changes to make the build system work on multiple architectures and
with multiple versions of the autotools suite.  Make generated g-wrap
sources depend on config.status.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7837 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 00:48:17 +00:00
Derek Atkins
ef110593ef * src/backend/postgres/test/Makefile.am: include run-tests.sh in
the distribution.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7836 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 00:09:02 +00:00
Derek Atkins
d5eba882d3 * src/app-utils/test/test-print-parse-amount.c: set force_fit and
round to 0 (like they should be) so we don't hit the rounding
	  code and blow up.   Fixes #103536.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7835 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-15 20:31:26 +00:00
Derek Atkins
24b3d95db2 * src/gnome-search/dialog-search.c -- grey out the button if it
has no meaning for this particular search-type.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7834 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-15 03:59:58 +00:00
Derek Atkins
198f41ee89 * src/engine/QueryNew.h: add QUERY_PARAM_ACTIVE
* src/business/business-core/gncCustomer.c:
	* src/business/business-core/gncEmployee.c:
	* src/business/business-core/gncInvoice.c:
	* src/business/business-core/gncJob.c:
	* src/business/business-core/gncOrder.c:
	* src/business/business-core/gncVendor.c:
	  add the QUERY_PARAM_ACTIVE parameter support
	* src/app-util/prefs.scm: add hidden preference to store
	  the user's choice of searchin
	* src/gnome-search/search.glade: add a checkbox to search-for-all
	* src/gnome-search/dialog-search.c -- add preliminary support to
	  limit searches to only "active" objects.  Fixes bug #103506


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7833 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-15 03:49:51 +00:00
David Hampton
8e00dd0826 Make the progress bar argument a double instead of an int. This gets
around an issue with guile 1.6.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7832 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 05:15:00 +00:00
David Hampton
119bbe3fa4 Make the gnc_scm_to_gint64() function work with either guile 1.4 or
guile 1.6.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7831 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 05:11:34 +00:00
Derek Atkins
159bbe7288 * src/import-export/import-utilities.c -- applied Nigel Titley's
patch for #101705


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7830 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 03:12:47 +00:00
Derek Atkins
9ae21f859c * src/business/business-gnome/dialog-invoice.c -- make the Notes
field editable for new invoices.  Fixes #103345


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7829 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 02:09:44 +00:00
Derek Atkins
2db9a7f026 * src/app-utils/option-util.c: gh_str2scm() takes a char*, not a
const char* (at least in guile-1.3.4), so force the string to be
	  a char* to make the compiler happy.

	* src/engine/date.c: add spaces to the scanDate delimiters,
	  although it may not help if strptime() is doesn't like the
	  spaces.  Attempt to fix #103147, but it's probably a strptime
	  bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7828 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 19:35:38 +00:00
David Hampton
6252866027 Remember the directory of the last import/export across invocations of
gnucash.  Each type of import/export is remembered separately. #94428


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7827 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 07:43:31 +00:00
David Hampton
d15db59c42 Add support for setting a string option.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7826 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 07:33:53 +00:00
David Hampton
f6423ddd09 Clean up include path for gcc3.x.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7825 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 07:32:15 +00:00
Derek Atkins
91e02c362f * src/engine/QueryCore.c: fix the algorithm to compute equality
of numerics so it copes with numbers in the "wrong" order.
	  Fixed bug #103341


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7824 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 05:33:11 +00:00
Derek Atkins
7482f3b07f * .../business-ledger/gncEntryLedgerLayout.c: change the order
of columns in order to get page-up/page-down to work without going
	  into an infinite loop.
	* .../business-ledger/gncEntryLedgerLoad.c: suspend events
	  when we're creating a new entry.  Unfortunately the gnucash-sheet
	  still never counts the blank entry, and I don't know why.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7823 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 04:19:24 +00:00
David Hampton
f931ae8c42 Provide reasonable default directories for the "Save As" and "Export"
operations.  #94428


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7822 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 01:09:27 +00:00
Derek Atkins
25781b936c * .../business-gnome/business-gnome.scm:
Fix the Extensions hooks to connect menus properly when GNC_DEBUG=1
	* .../business-gnome/dialog-customer.c:
	* .../business-gnome/dialog-vendor.c:
	* .../business-gnome/dialog-employee.c:
	* .../business-gnome/glade/customer.glade:
	* .../business-gnome/glade/vendor.glade:
	* .../business-gnome/glade/employee.glade:
	  Add ability to edit currency in the UI.  Fixes #101001


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7821 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 00:16:47 +00:00
David Hampton
122f18e873 Correctly handle the case where no stocks have been defined and the
user askes gnucash to get price quotes. #102560


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7820 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 23:25:38 +00:00
Derek Atkins
c1adfb5be8 * .../business-core/gncCustomer.[ch]:
* .../business-core/gncVendor.[ch]:
	* .../business-core/gncEmployee.[ch]:
	  Rename ...Commodity() to ...Currency()
	* .../business-core/gw-business-core-spec.scm: fix function wrappings
	* .../business-core/file/gnc-customer-xml-v2.c:
	* .../business-core/file/gnc-vendor-xml-v2.c:
	* .../business-core/file/gnc-employee-xml-v2.c:
	  Use new function names.
	* .../business-gnome/business-gnome.scm:
	* .../business-gnome/dialog-customer.c:
	* .../business-gnome/dialog-vendor.c:
	* .../business-gnome/dialog-employee.c:
	  Use new ...Currency() functions
	More prep to fix #101001


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7819 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 22:53:02 +00:00
David Hampton
82268e98b3 Workaround libghttp bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7818 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 22:21:16 +00:00
Derek Atkins
39b506f60c * src/business/business-core/gncOwner.[ch]: rename ...Commodity() to
...Currency()
	* src/business/business-core/gncInvoice.[ch]: rename ...CommonCommodity()
	  to ...Currency()
	  use new gncOwner function name
	* src/business/business-core/gncEntry.c: use new Currency() functions
	* src/business/business-core/gw-business-core-spec.scm:
	  wrap gncInvoiceSetCurrency()
	  wrap gncInvoiceGetCurrency()
	  wrap gncOwnerGetCurrency()
	* src/business/business-core/file/gnc-invoice-xml-v2.c: use new funcs
	* src/business/business-gnome/dialog-invoice.c: use new functions --
	  set invoice currency based on owner's currency
	* src/business/business-reports/invoice.scm: use invoice's currency
	  for printing the invoice.
	PARTITAL fix for #101001


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7817 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 22:07:33 +00:00
Derek Atkins
3d57ec5e53 * src/app-utils/global-options.[ch]: add gnc_default_report_currency()
* src/app-utils/gw-app-utils-spec.scm: wrap gnc_default_report_currency()
	* src/app-utils/prefs.scm: add "Default Report Currency" preference
	* src/report/report-system/options-utilities.scm: use new report currency
	  preference to choose the "default" report currency.
	FIXES Bug #103160


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7816 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 21:21:31 +00:00
David Hampton
993a1a228e Return the number of characters entered, not the length of the encoded
multi-byte string. Possible fix for 99419 and 102057.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7815 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 21:15:00 +00:00
Linas Vepstas
cf8b8b7a23 Glen Ditchfield gui elements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7814 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 17:04:05 +00:00
Derek Atkins
dd78d835a4 * src/business/business-core/gw-business-core-spec.scm:
wrap gncEntryGetInvTaxTable()
	  wrap gncEntryGetBillTaxTable()
	* src/business/business-reports/invoice.scm: only set the "taxable"
	  value to 'T' if the value is true AND we've got an actual tax table.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7813 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 05:13:51 +00:00
Derek Atkins
34abe91b02 * src/business/business-core/gncBusGuile.[ch]: functions to interface
between business objects and scheme.  Add hooks to convert between
	  GncAccountValue* and scheme.
	* src/business/business-core/gw-business-core-spec.scm:
	  wrap the GncAccountValue*
	  wrap gncEntryReturnTaxValues()
	  wrap gncEntryGetInvTaxable() and gncEntryGetBillTaxable()
	* src/business/business-reports/invoice.scm: change a couple of
	  columns.  Enable viewing the "taxable" entry.  Enable viewing
	  all the tax accounts individually (fixes bug #102892)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7812 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-12 05:03:03 +00:00
David Hampton
4ee7b8d775 Fix a missed reference from when the preferences were rearranged.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7811 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 23:17:06 +00:00
David Hampton
d07d526913 Convert from the old to new symbols for Russian Roubles (RUB ->
RUR). #102705


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7810 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 21:36:34 +00:00
David Hampton
dab1d59bc3 Add note that Austrian switched from Shillings to Euros.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7809 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 20:00:56 +00:00
Benoit Grégoire
982a31cff0 2002-1-6 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-backend.c: Fixed the date heuristics modifications, which had an unfortunate interaction with old debugging code, causing the score to be reversed, and making the matcher mostly unusable.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7808 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 19:44:28 +00:00