mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-30 08:08:15 -05:00
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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user