Commit Graph

9030 Commits

Author SHA1 Message Date
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
David Hampton
0c33f64499 Regularize the naming of the Finance::Quote auxiliary scripts. Remove
the obsolete gnc-prices script.  Move the to the bin directory the
scripts that weren't already there.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13303 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 22:16:49 +00:00
Joshua Sled
86bd7b9238 Build fix; finish removing obsolete merge "error" check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13302 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 20:52:10 +00:00
Christian Stimming
9ff822ad75 Fix uninitialized variable warning
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13301 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 20:48:50 +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
Joshua Sled
abae418947 Implement new-hierarchy-druid placeholder-value merge policy as discussed on -devel.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13297 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 16:36:08 +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
Christian Stimming
f80dfa5a28 Fix old truncation of filename prefix that is no longer valid
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13290 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 10:08:19 +00:00
Christian Stimming
f1f7f58134 Make update-po because of recent massive string changes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13289 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 10:01:33 +00:00
David Hampton
d0e0f4e8cf Remove all explicit claiming of the selection in these files. The
GtkEntry they use already performs claims, and the additional just
mess things up.  Fixes #330153.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13288 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 05:18:29 +00:00
David Hampton
0ea6ebe253 Prepare for gtk change that will issue warnings if the return value of
the gtk_tree_model iter functions are not used.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13287 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 03:02:32 +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
Chris Shoemaker
11c0a19191 Use GPOINTER_TO_INT to avoid casting pointer to integer of different size.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13280 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 15:03:23 +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
Joshua Sled
9fb01762df Andreas Kohler's patch to not scroll the tree view headers in the new-account hierarchy druid. Bug#330850.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13274 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 03:56:03 +00:00
Joshua Sled
88f70b0508 Fix test (init) failure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13273 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 03:34:59 +00:00
Chris Shoemaker
cdf1e2e316 Convert the AccountType selection functions to work with GtkTreeSelections
from views using the filtered GncTreeModelAccountTypes.
   Privatize the unfiltered GncTreeModelAccountTypes - now, every accessible
     account-types TreeModel is a new GtkTreeModelFilter, and their 
     ref-counting is always the same.
   Add some tweaks to gnc-tree-model-account-types.[ch] from 
     Andreas Köhler <andi5.py@gmx.net>, plus the conversion of the Account 
     Dialog's account-types field to use the filtered GncTreeModelAccountTypes
     instead of a GtkListStore, but simplified to use the AccountType 
     selection functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13271 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 22:06:37 +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
Chris Shoemaker
9808b664a5 Remove --enable-opt-style-install configure option.
That's one less thing to test.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13267 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 14:58:34 +00:00
Chris Shoemaker
387b8eca2f Changed balance calculations in three reports from using local
copies of buggy accountlist-get-comm-balance-at-date to using a new
   gnc:accountlist-get-comm-balance-interval provided by
   report-utilities.scm.  For the affected calculations, the balances no 
   longer exclude transactions on the first day of the reporting period.  
   This fixes http://bugzilla.gnome.org/show_bug.cgi?id=331005.

   Changed calculations:
     Income Statement: Total Expenses, Total Revenues
     Balance Sheet: Retained Earnings (*)
     Equity Statement: Retained Earnings (*), Net Income

   (*) The Retained Earning calculations use a start-date of "forever-ago"
   so they are not affected, but still converted to the new function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13266 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 01:52:15 +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
Christian Stimming
fae052e775 Updated German translation - 3524 out of 3716 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13263 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 21:16:42 +00:00
Christian Stimming
3fc8a1b10b Make the gconf key wordings consistent across all of our schemas
files, as discussed and prepared on
http://wiki.gnucash.org/wiki/GConf_Wording .



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13262 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 21:03:36 +00:00
Christian Stimming
e081feb3a8 For latest aqbanking changes, define AQBANKING_NOWARN_DEPRECATED to
disable aqbanking compiler warnings because we will still use those
functions for some time to come.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13261 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 19:58:50 +00:00
Christian Stimming
54002fd73c Updated French translation by Didier Vidal <didier-devel@9online.fr>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13260 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 19:41:31 +00:00
David Hampton
b3e92f5c24 Andreas Köhler's patch to convert the account types list in the
account edit dialog to a GtkTreeView/GtkListStore.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13259 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 23:45:18 +00:00
David Hampton
f4ee1b4226 Andreas Köhler's patch to prevent crash when voiding a transaction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13258 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 23:21:09 +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
David Hampton
b85cd56cc5 Andreas Köhler's patch to wrap label text in a couple of dialogs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13256 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 15:42:09 +00:00
Neil Williams
f07a0d5a73 correcting the logic in the error state
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13255 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 14:06:48 +00:00
Neil Williams
c2d72fa910 make it clearer that the return value of 0.0 is an error by using g_return_val_if_fail - cannot use assert as return value needs to be modified.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13254 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 11:22:36 +00:00