feat(web): código de cuenta con separadores de segmento, ramas vacías sin flecha y Cuenta de mayor con formato
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
456b0f4ac0
commit
a10de1ff29
11 files changed
+108
-6
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { formatAccountCode } from '../../core/sl/account-segments';
|
||||
import type { VhLookup } from '../../shared/value-help/value-help.types';
|
||||
|
||||
/** Dimensión de costos (centro de costo, `CostingCode` 1 a 5): reglas de distribución activas de esa dimensión. */
|
||||
@@ -45,6 +46,6 @@ export const ACCOUNT_LOOKUP: VhLookup = {
|
||||
{ key: 'Code', title: 'Código', width: '160px', mono: true },
|
||||
{ key: 'Name', title: 'Nombre' },
|
||||
// en un plan de cuentas segmentado, `Code` es interno (`_SYS…`): se muestra también el código con formato
|
||||
{ key: 'FormatCode', title: 'Cuenta', width: '140px', mono: true },
|
||||
{ key: 'FormatCode', title: 'Cuenta', width: '140px', mono: true, format: (r) => formatAccountCode(String(r['FormatCode'] ?? '')) },
|
||||
],
|
||||
};
|
||||
Reference in new issue
Block a user