[Gnucash-changes] QOF/CashUtil Sync: Engine

Derek Atkins warlord at MIT.EDU
Wed Aug 17 08:49:18 EDT 2005


Instead of adding new functions here I think it would've been
better to just add the begin_edit/commit_edit around the
description and notes fields.  IMHO it's a bug that they
don't have begin/commit.

-derek

Neil Williams <codehelp at cvs.gnucash.org> writes:

> +static void
> +qofTransSetDescription (Transaction *trans, const char *desc)
> +{
> +	qof_begin_edit(&trans->inst);
> +	xaccTransSetDescription(trans, desc);
> +	qof_commit_edit(&trans->inst);
> +}
> +
>  void
>  xaccTransSetDescription (Transaction *trans, const char *desc)
>  {
> @@ -2484,6 +2515,14 @@
>     trans->description = tmp;
>  }
>  
> +static void
> +qofTransSetNotes (Transaction *trans, const char *notes)
> +{
> +	qof_begin_edit(&trans->inst);
> +	xaccTransSetNotes(trans, notes);
> +	qof_commit_edit(&trans->inst);
> +}
> +
>  void
>  xaccTransSetNotes (Transaction *trans, const char *notes)
>  {

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list