mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
add comment
This commit is contained in:
@@ -1553,6 +1553,7 @@ func (s *TransactionService) getAccountModels(sess *xorm.Session, transaction *m
|
||||
return nil, nil, errs.ErrSourceAccountNotFound
|
||||
}
|
||||
|
||||
// check whether the related account is valid
|
||||
if transaction.Type == models.TRANSACTION_DB_TYPE_MODIFY_BALANCE {
|
||||
if transaction.RelatedAccountId != 0 && transaction.RelatedAccountId != transaction.AccountId {
|
||||
return nil, nil, errs.ErrAccountIdInvalid
|
||||
|
||||
Reference in New Issue
Block a user