2004-03-13 Joshua Sled <jsled@asynchronous.org>

* src/gnome/dialog-scheduledxaction.c (gnc_sxed_check_consistent):
	Bug#133709 fix: when we have a problem parsing a credit/debit
	cell, indicate to the user what occurred.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9860 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled
2004-03-14 00:25:46 +00:00
parent e19df01f5f
commit 7f937768d4
2 changed files with 29 additions and 7 deletions
+7 -1
View File
@@ -1,3 +1,9 @@
2004-03-13 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-scheduledxaction.c (gnc_sxed_check_consistent):
Bug#133709 fix: when we have a problem parsing a credit/debit
cell, indicate to the user what occurred.
2004-03-08 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/dialog-hbcitrans.c, dialog-hbcitrans.h,
@@ -45,7 +51,7 @@
* src/gnome/dialog-sxsincelast.c (create_each_transaction_helper):
Better handling of various error cases in
transaction-creation. Bug#120311; Bug#130330.
transaction-creation. Bug#102311; Bug#130330.
2004-03-03 Derek Atkins <derek@ihtfp.com>
+22 -6
View File
@@ -743,9 +743,17 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
&& (str = kvp_value_get_string(v))
&& strlen( str ) != 0 ) {
if ( parse_vars_from_formula( str, vars, &tmp ) < 0 ) {
PERR( "Couldn't parse credit formula for "
"\"%s\" on second pass",
xaccSchedXactionGetName( sxed->sx ) );
GString *errStr;
errStr = g_string_sized_new( 32 );
g_string_sprintf( errStr,
_( "Couldn't parse credit formula for "
"split \"%s\"." ),
xaccSplitGetMemo( s ) );
gnc_error_dialog( GTK_WIDGET(sxed->dialog),
errStr->str );
g_string_free( errStr, TRUE );
return FALSE;
}
tcds->creditSum =
@@ -761,9 +769,17 @@ gnc_sxed_check_consistent( SchedXactionEditorDialog *sxed )
&& (str = kvp_value_get_string(v))
&& strlen(str) != 0 ) {
if ( parse_vars_from_formula( str, vars, &tmp ) < 0 ) {
PERR( "Couldn't parse debit formula for "
"\"%s\" on second pass",
xaccSchedXactionGetName( sxed->sx ) );
GString *errStr;
errStr = g_string_sized_new( 32 );
g_string_sprintf( errStr,
_( "Couldn't parse debit formula for "
"split \"%s\"." ),
xaccSplitGetMemo( s ) );
gnc_error_dialog( GTK_WIDGET(sxed->dialog),
(gchar*)errStr->str );
g_string_free( errStr, TRUE );
return FALSE;
}
tcds->debitSum = gnc_numeric_add( tcds->debitSum, tmp, 100,