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.
19 lines
567 B
19 lines
567 B
<?php
|
|
|
|
namespace App\Domains\Accounting\Actions\LedgerConfiguration;
|
|
|
|
use App\Domains\Accounting\DTOs\LedgerConfiguration\AdjustAccountClassificationDTO;
|
|
use App\Domains\Accounting\Models\ChartOfAccount;
|
|
|
|
class AdjustAccountClassification
|
|
{
|
|
public function execute(ChartOfAccount $coa, AdjustAccountClassificationDTO $dto): void
|
|
{
|
|
$coa->update([
|
|
'code' => $dto->code,
|
|
'normal_balance' => $dto->normal_balance,
|
|
'classification' => $dto->classification,
|
|
'parent_id' => $dto->parentId,
|
|
]);
|
|
}
|
|
}
|
|
|