When deriving, don't carry over the code or not

This commit is contained in:
John Wiegley 2010-03-10 03:56:08 -05:00
parent 8f06e75e05
commit 9a0ae50ce7

View file

@ -277,15 +277,15 @@ xact_t * draft_t::insert(journal_t& journal)
if (matching) {
added->payee = matching->payee;
added->code = matching->code;
added->note = matching->note;
//added->code = matching->code;
//added->note = matching->note;
#if defined(DEBUG_ON)
DEBUG("derive.xact", "Setting payee from match: " << added->payee);
if (added->code)
DEBUG("derive.xact", "Setting code from match: " << *added->code);
if (added->note)
DEBUG("derive.xact", "Setting note from match: " << *added->note);
//if (added->code)
// DEBUG("derive.xact", "Setting code from match: " << *added->code);
//if (added->note)
// DEBUG("derive.xact", "Setting note from match: " << *added->note);
#endif
} else {
added->payee = tmpl->payee_mask.str();