mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix for auto-completion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2964 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
76b75693ef
commit
5ffafb4654
@ -839,6 +839,7 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
case CURSOR_TRANS: {
|
||||
Transaction *auto_trans;
|
||||
GList *refresh_accounts;
|
||||
Timespec post_date;
|
||||
char *desc;
|
||||
|
||||
/* we must be on the blank split */
|
||||
@ -878,6 +879,11 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
xaccTransBeginEdit(trans, FALSE);
|
||||
gnc_copy_trans_onto_trans(auto_trans, trans, FALSE);
|
||||
|
||||
xaccDateCellGetDate (reg->dateCell, &post_date);
|
||||
xaccTransSetDateTS (trans, &post_date);
|
||||
|
||||
xaccTransSetNum (trans, reg->numCell->cell.value);
|
||||
|
||||
if (info->default_source_account != NULL)
|
||||
{
|
||||
int num_splits;
|
||||
|
Loading…
Reference in New Issue
Block a user