Assign as payment - when random transaction is selected, reset transaction description to owner

This will make the assigned payment more in line with traditionally created business payments
This commit is contained in:
Geert Janssens 2017-11-18 17:42:46 +01:00
parent ce900d1df3
commit cd9c3807c0

View File

@ -751,6 +751,8 @@ gncOwnerCreatePaymentLot (const GncOwner *owner, Transaction **preset_txn,
if (txn)
{
xaccTransSetDescription (txn, name ? name : "");
/* Pre-existing transaction was specified. We completely clear it,
* except for the split in the transfer account, unless the
* transaction can't be reused (wrong currency, wrong transfer account).