Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
575 B

<?php
namespace App\Domains\Accounting\Actions\LedgerConfiguration;
use App\Domains\Accounting\DTOs\LedgerConfiguration\RegisterChartOfAccountDTO;
use App\Domains\Accounting\Models\ChartOfAccount;
class RegisterChartOfAccount
{
public function execute(RegisterChartOfAccountDTO $dto): void
{
ChartOfAccount::create([
'code' => $dto->code,
'name' => $dto->name,
'classification' => $dto->classification,
'normal_balance' => $dto->normal_balance,
'parent_id' => $dto->parentId,
]);
}
}