CaiWuXiTong/app/Utilities/FinanceLedgerFlowSummaryDataSource.php
shanshi 90a0466220 feat(财务台账): 增加银行分类数量弹窗和账户来源维护 (#1156)
- 增加银行分类数量弹窗与保留状态统计\n- 账户分类页增加是否保留列\n- 数据来源统一为手动/银企直连
2026-11-13 14:43:58 +08:00

20 lines
407 B
PHP

<?php
namespace App\Utilities;
final class FinanceLedgerFlowSummaryDataSource
{
public const MANUAL = '手动';
public const DIRECT = '银企直连';
public const OPTIONS = [self::MANUAL, self::DIRECT];
public static function normalize(mixed $value): string
{
$text = trim((string) ($value ?? ''));
return in_array($text, self::OPTIONS, true) ? $text : '';
}
}