Open Donnie opened 3 years ago
If we make the above alteration it would also be nice to consider transactions which are returning loaned money. For e.g. I lend money to a friend and he returns the same back to me at a later date.
Currently it shows refund/cancelled transactions as gains in /view
.
It does not show lent money repaid as gains because of course the accounts are not expense accounts as in they are self accounts.
Refund/cancelled transactions have also been marked as expenses while issuing.
Both of which are technically wrong.
Ideally they should be removed from being expenses, and they should never be shown as gains.
In order to remove them from expenses/gains, on using the /refund command, it can soft delete the original transaction add REFUNDED $ID
as a word with the id of the newly created entry in the description.
At the same time soft delete also the newly auto created transaction and add REFUND $ID
in the description.
This can solve the expense/gain issue, and can also be ignored systematically from any calculations.
If I return something and get cash back, I need to enter it as a separate entry in through
/record
This can be done away with if we start marking payments as refunds.
/refund
This can show a list of payments with next and previous buttons/refund 774
We can simply send the id of the transaction like so.This will create a new entry automatically reverting the payment.