mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug 797482 - Can't edit date when using Edit Payment function
This commit is contained in:
parent
3be7f993ac
commit
cd8698321d
@ -838,8 +838,6 @@ gncOwnerCreatePaymentLotSecs (const GncOwner *owner, Transaction **preset_txn,
|
||||
xaccTransSetDescription (txn, name ? name : "");
|
||||
/* set per book option */
|
||||
xaccTransSetCurrency (txn, commodity);
|
||||
xaccTransSetDateEnteredSecs (txn, gnc_time (NULL));
|
||||
xaccTransSetDatePostedSecs (txn, date);
|
||||
|
||||
|
||||
/* The split for the transfer account */
|
||||
@ -892,6 +890,10 @@ gncOwnerCreatePaymentLotSecs (const GncOwner *owner, Transaction **preset_txn,
|
||||
gnc_set_num_action (txn, NULL, num, _("Payment"));
|
||||
xaccTransSetTxnType (txn, TXN_TYPE_PAYMENT);
|
||||
|
||||
/* Set date for transaction */
|
||||
xaccTransSetDateEnteredSecs (txn, gnc_time (NULL));
|
||||
xaccTransSetDatePostedSecs (txn, date);
|
||||
|
||||
/* Commit this new transaction */
|
||||
xaccTransCommitEdit (txn);
|
||||
if (preset_txn)
|
||||
|
Loading…
Reference in New Issue
Block a user