Files
BarangaySystem/database/seeders/AccountSeeder.php
2026-06-06 18:43:00 +08:00

22 lines
528 B
PHP

<?php
declare(strict_types=1);
use Hyperf\Database\Seeders\Seeder;
use App\Support\AccountingTheme;
class AccountSeeder extends Seeder
{
/**
* Seed the chart of accounts from the active theme.
*
* Idempotent: existing accounts are matched by (theme_key, theme_account_code)
* with a parent+name fallback for pre-theme rows. User-added accounts (theme_key
* NULL) and user-renamed accounts are never touched.
*/
public function run(): void
{
AccountingTheme::apply();
}
}