Fixed transfer and split transaction show/create pages real_type issue ( #3qec0xc )

This commit is contained in:
Cüneyt Şentürk
2022-10-31 00:43:30 +03:00
parent 6bb35cf3a3
commit 083ea42aa6
4 changed files with 25 additions and 13 deletions

View File

@ -204,6 +204,15 @@ trait Transactions
];
}
public function getRealTypeTransaction(string $type): string
{
$type = $this->getRealTypeOfRecurringTransaction($type);
$type = $this->getRealTypeOfTransferTransaction($type);
$type = $this->getRealTypeOfSplitTransaction($type);
return $type;
}
public function getRealTypeOfRecurringTransaction(string $recurring_type): string
{
return Str::replace('-recurring', '', $recurring_type);