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
550 B
20 lines
550 B
<?php
|
|
|
|
namespace App\Domains\Finance\Actions\LedgerConfiguration;
|
|
|
|
use App\Domains\Finance\DTOs\LedgerConfiguration\RegisterChartOfAccountDTO;
|
|
use App\Domains\Finance\Models\ChartOfAccount;
|
|
|
|
class RegisterChartOfAccount
|
|
{
|
|
public function execute(RegisterChartOfAccountDTO $dto): void
|
|
{
|
|
ChartOfAccount::create([
|
|
'code' => $dto->code,
|
|
'name' => $dto->name,
|
|
'classification' => $dto->classification,
|
|
'status' => $dto->status,
|
|
'parent_id' => $dto->parentId,
|
|
]);
|
|
}
|
|
}
|
|
|