fixed bulk actions edit transaction issue

This commit is contained in:
Cihan Şentürk 2024-07-11 12:07:17 +03:00 committed by GitHub
parent e910b01301
commit fe5202bd75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -65,7 +65,21 @@ class Transactions extends BulkAction
$types[] = $r_type;
$real_type = $r_type;
$contact_type = $transaction->contact->type;
if (! $contact_type) {
if ($real_type == Transaction::INCOME_TYPE
|| $real_type == Transaction::INCOME_TRANSFER_TYPE
|| $real_type == Transaction::INCOME_SPLIT_TYPE
|| $real_type == Transaction::INCOME_RECURRING_TYPE
) {
$contact_type = 'customer';
} else {
$contact_type = 'vendor';
}
}
$account_currency_code = $transaction->account->currency_code;
}