Commit Graph
100 Commits
Author SHA1 Message Date
Derek Atkins 15cb6d2214 add QOF_LIBS to link line because debian libtool is broken.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13367 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 17:16:11 +00:00
Derek Atkins eb29ffd9f8 force a build from svn to have access to svn version info.
this might break the broken ebuild that forcibly removes the
	  .svn directories, but the ebuild is broken and shouldn't do that.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13366 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:39:05 +00:00
Derek Atkins 5cd8bdf5a1 include gtk-compat.h so we build against gtk-2.4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13365 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:35:25 +00:00
Derek Atkins b5713ba30c * configure.in: fix the qof configure test for OSX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13332 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 21:45:11 +00:00
Derek Atkins e4bca4ad0b Allow nested begin/commit in xaccTransSetTxnType(). Fixes #331771.
The old code wouldn't let you set the value if you were already
	  within a BeginEdit/CommitEdit block.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13316 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 04:40:06 +00:00
Derek Atkins 9606f87741 Phil Longstaff's patch to make the GUID length a magic number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13309 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 23:41:53 +00:00
Derek Atkins 4908c23154 Don't let users post negative invoices. (#166864)
Pop up an error dialog and prevent the post.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13304 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 22:43:28 +00:00
Derek Atkins ead7057358 A few tests to improve get_random_query() and fix a couple test bugs.
- Prefer QUERY_AND and QUERY_OR over NAND, NOR, XOR
	  - Don't randomly generate a gnc_numeric with a 0 denominator.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13300 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 19:29:51 +00:00
Derek Atkins 7d0228fa58 Use glib's gi18n.h instead of redefining gettext.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13299 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 19:28:28 +00:00
Derek Atkins 584f16aa36 Remember the last-used account when processing payment (#329725)
* src/business/business-core/gncOwner.[ch]: Add api to get owner
	  kvp-slots abstractly.
	* src/business/business-gnome/dialog-payment.c: Load/save the
	  last-used transfer account whenever the owner changes or
	  the dialog completes.
	  Fixes #329725.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13298 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 18:20:18 +00:00
Derek Atkins 3684d8a444 Brian's patch to add company-id to the company address.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13296 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 16:32:49 +00:00
Derek Atkins 57115770d6 Pop up a warning dialog if the user has no valid post-to accounts. Fixes #331730.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13295 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 16:22:21 +00:00
Derek Atkins 33133b87f0 Make sure we use tabs, not spaces, in the transaction log (#331620)
* src/engine/TransLog.c:  use TABS not SPACES for column separators
	* src/import-export/log-replay/gnc-log-replay.c: use printf
	  so we don't have a tab->space conversion problem like we
	  did in TransLog.c
	  Fixes #331620.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13294 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 15:23:15 +00:00
Derek Atkins 2b266cac25 Also report an error dialog if the fopen() fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13293 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 16:53:45 +00:00
Derek Atkins 46b1c64d77 display an error dialog when we fail to parse a log file
due to EOF or a bad header parsing.  Fixes #331620 based
on the test-case.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13292 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 16:45:50 +00:00
Derek Atkins d6b618a92d * intl-scm/xgettext.scm: remove the absolute path from filenames
* intl-scm/Makefile.am: pass the absolute path to xgettext.scm



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13291 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 14:39:21 +00:00
Derek Atkins d13a38cf25 * configure.in: autodetect OFX and use it if we find it.
the --enable/disable-ofx will make the check fatal on failure
	  or skip it altogether if you want to ignore an existing libofx.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13286 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 02:49:47 +00:00
Derek Atkins a55a6b3ae5 * configure.in: remove un-needed/wanted gsf/goffice configure options
* macros/g-wrap.m4: fix the help text spacing.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13285 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 23:32:16 +00:00
Derek Atkins d2221209ac Fix a double-set of CLEANFILES.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13284 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 23:31:09 +00:00
Derek Atkins 6d15e9e2ca scrub the transaction for a currency after we replay. (#143720).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13283 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 21:47:13 +00:00
Derek Atkins 6aec7f5a94 Don't pass NULL to ferror() (from bug #143720).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13282 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 21:31:29 +00:00
Derek Atkins 3fcedbca8e Make the build work if the build directory is not the source
directory.  Also symlink .scm files into the build directory
          so it's possible to run from it.
	  Also fix "fin.scm installed twice", bug #168629.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13281 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 20:22:54 +00:00
Derek Atkins 8f98e8a109 * lib/libqof/qof/Makefile.am: add qofla-dir.h to DISTCLEANFILES
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13279 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 06:07:17 +00:00
Derek Atkins ba4a80579a need g_type_init() because we don't actually "load" the file backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13278 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 06:06:25 +00:00
Derek Atkins b481174d1f move jsled's g-type initialization into the module init
this way we don't need to worry about it in every test app.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13277 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 04:50:37 +00:00
Derek Atkins bb9dbe25e7 combine XML_{CFLAGS,LIBS} into LIBXML2_{CLFLAGS,LIBS}
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13276 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 04:31:37 +00:00
Derek Atkins 0c2cc63b56 get --disable-gui configure switch to actually do what we want.
- Move a bunch of configure code around in the file.
	  - Don't look for goffice/gsf if we ask for --disable-gui
	  - add a few more comments
	  - no need to check for libxml2 twice  (more work to do here).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13275 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 04:07:31 +00:00
Derek Atkins 22e48923c7 set the document title properly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13270 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 16:42:29 +00:00
Derek Atkins 25bb23b8d0 Small QOF build fix for dist and non-srcdir builds:
* lib/libqof/qof/Makefile.am: keep qofla-dir.h out of the dist
	* configure.in: look in builddir for qof includes.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13269 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 16:19:17 +00:00
Derek Atkins f53542a337 Fix a typo; forgot one procedure name-change instance.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13268 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 15:16:45 +00:00
Derek Atkins 1ae86e7c23 Mention libtool-ltdl-devel for FC4 if ltdl.h is missing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13265 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 01:33:07 +00:00
Derek Atkins b9525a269e Andrew Sackville-West's patch to add display options and fix
the multicurrency patch.  Fixes #314554 and #330577.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13264 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 23:48:52 +00:00
Derek Atkins b4e25ac2e4 use glib macro instead of cast to convert pointer to int. Fixes #330581.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13257 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 16:23:30 +00:00
Derek Atkins effc0e7a9c Revert advanced-portfolio.scm r13244 because it breaks the report.
* src/report/standard-reports/advanced-portfolio.scm:
	  revert r13244 in this file because it's badly formed and
	  breaks the report.  Reopened bug #314554.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13252 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 05:05:55 +00:00
Derek Atkins f06a206c07 Error out of autogen if one of the programs fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13251 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 03:32:10 +00:00
Derek Atkins 61562b683a depend on autoconf 2.59 and automake 1.9
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13250 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 03:28:50 +00:00
Derek Atkins 299562c8f9 Christian Neumair's desktop patch (#145545)
* src/gnome/gnucash.desktop.in
	* src/gnome/Makefile.am
	  Make the desktop more HIG-compliant.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13246 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 22:19:37 +00:00
Derek Atkins 73b2c29692 Mike Alexander's reconcile preselection patch (#112653).
* src/gnome/window-reconcile.c (gnc_reconcile_window_create_list_box):
        * src/gnome/reconcile-list.c (gnc_reconcile_list_new):
        * src/gnome/reconcile-list.h (gnc_reconcile_list_new):
          Don't pre-select the reconciled status for transactions after the
          statement date.
	Fixes #112653.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13245 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 22:09:08 +00:00
Derek Atkins f0f7210097 Mike Alexander's patch to handle multiple currencies in reports. (#314554)
* src/report/standard-reports/portfolio.scm:
        * src/report/standard-reports/advanced-portfolio.scm:
          Report currency option
          Sort accounts
          Handle "nearest price" option better
        * src/report/standard-reports/cash-flow.scm:
          Handle multiple currencies better
        * src/report/standard-reports/transaction.scm:
          Add common currency option.
          Handle "nearest price" option better.
        * src/report/report-system/commodity-utilities.scm
          (gnc:exchange-by-pricedb-nearest):
          Use price nearest to noon on the day specified.
	Fixes bug #314554.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13244 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 21:46:36 +00:00
Derek Atkins 77099e3545 Boris Zbarsky's advanced-portfolio patch. (#311549)
* src/report/standard-reports/advanced-portfolio.scm:
	  Apply dividend and brokerage to moneyin and moneyout to more
	  accurately reflect account activity.  Fixes bug #311549.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13242 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 20:29:05 +00:00
Derek Atkins f2c2caa5b0 Mike Alexander's Currency Scrub patch.
* src/engine/Scrub.c:
        * src/engine/Scrub.h:
          Try to fix transactions that have no currency, perhaps because
          of a log replay.  Workaround for bug #143720.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13241 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 20:03:46 +00:00
Derek Atkins 35808690de Des Dougan's patch to let the user choose the fancy-stylesheet image alignment. Fixes #314048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13240 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 19:32:06 +00:00
Derek Atkins 1e2c372b0a Brian's patch to fancy-invoice to parameterize everything.
* src/business/business-utils/business-prefs.scm:
	* src/business/business-utils/business-utils.scm:
	  Add a bunch of new File -> Properties to describe the business.
	* src/business/business-reports/fancy-invoice.scm:
	  Parameterize all the various settings in the report so
	  they can all be set through the options or file->properties
	  settings.  Patch by "Brian", but slightly modified to not
	  hard-code some strings.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13237 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:31:30 +00:00
Derek Atkins dd03084db4 Rework some APIs for the fancy-invoice set the client name font. #327545.
* src/business/business-core/business-core.scm:
	  add gnc:owner-get-name-dep and gnc:owner-get-address-dep APIs
	* src/business/business-reports/fancy-invoice.scm:
	  Change the font of the client company name to match the
	  owner company name.  Fixes #327545.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13233 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 16:16:20 +00:00
Derek Atkins 6dacd59a05 rename gnc:owner-get-address-dep to gnc:owner-get-name-and-address-dep
in preparation of some other patches.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13232 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 15:28:58 +00:00
Derek Atkins c9bef42eda Um, quote the sed script so it actually works right. Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13226 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 01:59:02 +00:00
Derek Atkins 75ef10c0d1 rework the initialization to require autoconf-2.59 and automake-1.9
parse the version out of the AC_PACKAGE_VERSION macro, so
we still only need to set it in one place.  This should
solve a number of old-automake related problems people have seen.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13225 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 23:24:01 +00:00
Derek Atkins 87fd8b71dc set the document title properly AFTER type-str is set.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13224 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 22:50:28 +00:00
Derek Atkins a52e1d9e13 don't need to scm_gc_{un,}protect_object on SCM_BOOL_F.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13219 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 20:22:40 +00:00
Derek Atkins 11a9890323 Better handling of event removal. This allows us to actually
clean up, but also makes sure we don't destroy the handler
list out from under us as we're processing events.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13196 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 22:43:19 +00:00
Derek Atkins 72a28d2063 check that we can find g-wrap-wct.h.
detects that we're running on a "broken" system like Ubuntu.
This is in response to #330539.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13195 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:32:39 +00:00
Derek Atkins c4dd2190b2 added README.dependencies to the dist. Fixes #330614.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13194 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:04:12 +00:00
Derek Atkins f04e5c24bc Test for an empty string when translating. (Fixes #330179)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13193 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:00:28 +00:00
Derek Atkins 9b61f0f6c5 Use xaccTrans{Begin,Commit}Edit in xaccTransDestroy()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13175 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 19:46:15 +00:00
Derek Atkins e371fb4e39 Print more debugging when the guile version check fails.
* macros/legacy_macros.m4: when the guile version check fails,
	  print out the version of guile that we found in order to
	  aid debugging.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13174 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 16:28:01 +00:00
Derek Atkins be29e4e5dd Revert Chris' change in r13128.
Keep in the error check for db-transactional data storage
until the objects can be modified to support db-transactional
autocommit (by calling BeginEdit/CommitEdit internally instead
of checking that the caller did so).  But revert for now to
make sure a caller has called BeginEdit in order to make
sure the data gets "saved" (assuming a SQLish backend).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13129 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-06 06:45:25 +00:00
Derek Atkins e9e033f60e - better fix for #accounts
- don't g_list_free the account_list



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13127 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 21:10:19 +00:00
Derek Atkins 58fd1ba067 A few test changes to make sure we don't fail when we're very unlucky.
- make sure a random group always has at least two accounts
	  - fix "make random transaction" to tell us when we don't
	    have at least two accounts.
	  - free the results of xaccGroupGetSubAccounts().



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13124 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 20:38:46 +00:00
Derek Atkins d1422bd6be * src/backend/file/Makefile.am: link against libcore-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13123 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 20:00:33 +00:00
Derek Atkins 5a9af7ef30 use g_strdup -- cannot feed SCM_STRING_CHARS() back into guile.
(fixes a weird test-case failure in some cases).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13122 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 19:58:20 +00:00
Derek Atkins eb4a06281c Commit msgmerge prior to 1.9.0 release.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13120 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 17:50:56 +00:00
Derek Atkins aab6a13412 * src/backend/file/test/Makefile.am: link against libcore-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13118 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 16:58:50 +00:00
Derek Atkins 52514db6fa Some gnc-numeric fixes (more to come).
- Fixes for handling reciprocal values.
	  - Mark a lot of places where potential overflow bugs
	    are not handled.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13107 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 01:41:27 +00:00
Derek Atkins 3c92b8702f Specify the output xml encoding as utf8.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13078 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 15:55:16 +00:00
Derek Atkins 01d822475c Copy the mt940 UI Data into the dist tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13077 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 14:39:09 +00:00
Derek Atkins 0fe77b9c0e Copy the HBCI UI Data into the dist tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13076 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 14:35:41 +00:00
Derek Atkins 8317f2a72b Copy the OFX UI Data into the dist tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13075 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 14:34:43 +00:00
Derek Atkins eb7c14d20b No need for the blank SUBDIRS +=
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13074 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 04:12:19 +00:00
Derek Atkins 06824ca8f5 Disable testing of the (not finished) qif import re-write.
(the tests fail on amd64).  Since this code isn't used,
yet, there's no need to actually run these tests.  But let's
distribute the code anyways....



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13073 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 01:22:23 +00:00
Derek Atkins 7ecd0df390 Allow specification of invoice sub-type when creating search dialog (#117354)
* src/gnome-search/dialog-search.c:
	* src/gnome-search/dialog-search.h:
	  Modify the gnc_search_dialog_create() API to add an optional
	  "type label" parameter, so you can manually set the string
	  presented to the user for what they are searching for...
	* src/business/business-gnome/dialog-order.c:
	* src/business/business-gnome/dialog-vendor.c:
	* src/business/business-gnome/dialog-customer.c:
	* src/business/business-gnome/dialog-job.c:
	* src/business/business-gnome/dialog-employee.c:
	* src/gnome/dialog-find-transactions.c:
	  Pass NULL into new search API parameter
	* src/business/business-gnome/dialog-invoice.c:
	  Modify how we call the search dialog.  Send in different
	  sets of parameters depending on whether we're searching for
	  a Customer Invoice, Vendor Bill, or Employee Expense Voucher.
	  Pass in a type_label as well so the dialog can properly label
	  the "new" button.  This fixes the UI Bug #117354.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13071 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 22:57:30 +00:00
Derek Atkins 757ab689ca Re-sort an invoice entry list when an entry date changes (#320566)
* src/business/business-core/gncInvoice.[ch]:
	  Add new API: gncInvoiceSortEntries()
	* src/business/business-core/gncEntry.c:
	  re-sort the parent when the entry date changes.
	  Only re-sort when the existing date is non-zero (i.e.
	  don't re-sort on the initial setting of the date).
	  Fixes #320566.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13069 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 21:49:06 +00:00
Derek Atkins 5c94f54a4b Need to put the new split into the txn as well as the acct
before we call xaccSplitSetBaseValue().  Fixes #325890.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13068 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 21:23:54 +00:00
Derek Atkins 1adcc37a8a Get libqof to link against glib and gmodule.
* configure.in: include gmodule in GLIB_LIBS
	* lib/libqof/qof/Makefile.am: link libqof against glib.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13058 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-31 16:29:01 +00:00
Derek Atkins da38b024da Need to insert splits into accounts before called xaccSplitSetBaseValue().
* src/business/business-core/gncInvoice.c:
	  Make sure to insert new splits into an account before we
	  set the Base Value..  Otherwise it will fail to set the
	  value properly.  Closer to fixing 325890, but it's still
	  not completely fixed.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13053 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 17:17:33 +00:00
Derek Atkins ff3e769845 Um, there is no "PDEBUG()", only "DEBUG()". Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13050 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 06:43:41 +00:00
Derek Atkins 8a0f2cf7e3 Clear up the billterm data lossage (due to a broken enum definition).
* src/business/business-core/file/gnc-bill-term-xml-v2.c:
	* src/business/business-core/file/gnc-bill-term-xml-v2.h:
	  Add a new API to "find-or-create" a billterm so all the
	  code is collated in one location.
	  Add more debugging during the scrub phases.
	* src/business/business-core/file/gnc-invoice-xml-v2.c:
	* src/business/business-core/file/gnc-vendor-xml-v2.c:
	* src/business/business-core/file/gnc-customer-xml-v2.c:
	  Use the new bill-term find-or-create API
	* src/business/business-core/gncBillTerm.c:
	  add some additional debugging
	* src/business/business-core/gncBillTerm.h:
	  The Billterm Type ENUM must start at 1, not zero.  The data file
	  now appears to properly save itself without destroying data.
	  Fixes rest of #328790.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13049 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 05:57:08 +00:00
Derek Atkins 3ab99cab85 Properly save the guid of owners (partial fix for 328790).
* src/business/business-core/file/gnc-owner-xml-v2.c:
	  GncOwner is not a QOF_INSTANCE.  Get the GUID correctly.
	  Fixes part of #328790 (but not all of it).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13000 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 17:23:47 +00:00
Derek Atkins ed2263acdb Get "make distcheck" to work....
* src/import-export/test/Makefile.am:
	  Added src/scm directory to test environment
	* lib/goffice-0.0.4/Makefile.am:
	  Don't install libgoffice-1.pc, but distribute it
	* lib/libgsf-1.12.3/tests/Makefile.am:
	  Link to the proper location of libgsf-1.la
	* lib/libgsf-1.12.3/Makefile.am:
	  Don't install the gsf .pc files, but distribute them.
	* lib/Makefile.am:
	  Use DIST_SUBDIRS to distribute qof, gsf, and goffice
	* configure.in:
	  fix QOF_LIBS to use builddir, not srcdir
	* Makefile.am:
	  add po/POTFILES.in to the dist
	  link gsf into the srcdir, not the builddir
	* src/report/report-system/Makefile.am:
	  make sure we distribute gw-report-system.h
	* src/bin/Makefile.am:
	  clean i18n.h in distclean



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12992 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 21:49:03 +00:00
Derek Atkins ce1cddaf6a Commit the msgmerge to reduce the time a clean-checkout "distcheck" takes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12991 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-27 18:09:33 +00:00
Derek Atkins 8277d869c7 * configure.in: fail if we find libgsf >= 1.12.2 but not libgsf-gnome.
This is instead of configure succeeding and then failing the
	  build later.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12983 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-26 19:01:16 +00:00
Derek Atkins ba731b6fbd * src/engine/test/Makefile.am: add explicit libdep on libcore-utils.la
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12971 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-24 01:20:03 +00:00
Derek Atkins 28f2785c9e Need to add a PATH for the tests to succeed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12929 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-22 00:32:08 +00:00
Derek Atkins 36f92f2d23 Thomas Klausner's NetBSD patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12928 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-22 00:27:11 +00:00
Derek Atkins 15ac05406c And don't forget to export the API.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12927 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-21 21:23:02 +00:00
Derek Atkins 67df833829 Replace missing API for config-file loading.
* src/app-utils/prefs.scm: replace an API needed by old scheme
	  config files.  It was removed in r11565.  Replace it now.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12926 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-21 21:20:44 +00:00
Derek Atkins 90b28bb880 * src/bin/gnucash-bin.c: update splash screen while loading modules.
Granted, this has no effect because the splash screen isn't
	  /UP/ when we're loading the modules.  But still, once we
	  initialize the gnome application earlier this will let us
	  update the splash screen.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12925 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-21 19:57:51 +00:00
Derek Atkins dffd616761 Continue to load config.auto even if we find config.user.
* src/bin/gnucash-bin.c: Load config.auto AND config.user files.
	  Load the .user file first, and then load the .auto.
	* src/scm/Makefile.am:  paths.scm was removed.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12913 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-21 04:12:31 +00:00
Derek Atkins f53d3b3151 Fix a fencepost error.
Fixes a crash trying to reload a file with empty windows.
(there's still another bug which is that we should ignore empty windows)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12903 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-19 19:34:23 +00:00
Derek Atkins 7bbe9277ba Get the code to compile against glib-2.4 again.
* src/business/business-gnome/dialog-invoice.c:
	  need to #include gkeyfile.h for glib24 systems
	* src/business/business-gnome/Makefile.am:
	  link against glib26 compatibility library.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12896 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-19 17:15:46 +00:00
Derek Atkins 02153f897e Print SVN version information more often.
* src/bin/gnucash-bin.c:
	* src/gnome-utils/gnc-splash.c:
	  Always print the SVN version and build date.
	  Make "development version" based on GNUCASH_SVN
	* src/gnome-utils/Makefile.am:
	  Define GNUCASH_SVN whenever the source is not a dist tarball.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12880 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-19 04:54:37 +00:00
Derek Atkins d9a99b743f Get gnucash-bin to compile...
- Need to #include "config.h" first.
- Need to make gnucash_command_line static.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12840 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-18 15:57:09 +00:00
Derek Atkins 5bc3898c4d Fix the build so Chris' command-line processing works.
* src/bin/Makefile.am:  Fix some srcdir/builddir issues
	  with #includes and libraries.
	* src/Makefile.am:  Move 'bin' last so that it's built
	  after gnome-utils so Chris' change works.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12839 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-18 15:49:17 +00:00
Derek Atkins d78854a3a3 * configure.in: us AM_PATH_GWRAP properly. Exit configure on failure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12369 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-16 16:50:57 +00:00
Derek Atkins 0775cdbe6d * src/gnome/dialog-new-user.c: some fixes to get file to compile.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12361 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-16 00:24:17 +00:00
Derek Atkins 5c311d702a * lib/libqof/qof/Makefile.am: qofla-dir.h depends on Makefile.
Make sure you rebuild qofla-dir.h when the Makefile changes,
	  which would imply re-configuration.  You never know, the
	  user might have changed --prefix which means you want to
	  rebuild the header.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12349 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-14 02:01:30 +00:00
Derek Atkins cc0f0b205c * configure.in: Properly set QOF_LIB_DIR et. al. for internal qof.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12348 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-14 01:53:47 +00:00
Derek Atkins 5d932d635a Don't install goffice and gsf headers.
* goffice/*/Makefile.am:
	* libgsf/*/Makefile.am:
	  don't install goffice and gsf headers.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12347 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-13 23:57:36 +00:00
Derek Atkins fe153377d4 Fix a typo. Need a backslash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12346 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-13 22:18:31 +00:00
Derek Atkins 9dd9d3a8f8 Remove old gnucash and gnucash-valgrind override scripts.
* src/bin/overrides/gnucash
	* src/bin/overrides/gnucash-valgrind
	* src/bin/overrides/Makefile.am:
	  remove unnecessary override files that are no longer useful.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12345 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-13 21:57:06 +00:00
Derek Atkins 0d571c1848 Revert 12296 -- provide a better fix for gentoo ebuild.
* src/gnome-utils/Makefile.am: revert 12296 and handle the
	  case of an svn checkout without .svn subdirs (gentoo ebuild).
	  In particular, we want to use $(srcdir)/gnc-svninfo.h
	  so that a build from a dist tarball has the svn version.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12344 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-13 21:50:36 +00:00