feat(web): celdas de cuenta con código con formato (asientos y documentos): se ven con separadores y se pueden escribir por FormatCode

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 10:05:55 -05:00
1 parent a10de1ff29
commit 2733339c7f
9 files changed
+201 -5

No files matched your search

@@ -1,3 +1,4 @@
import { ACCOUNT_CODES } from '../../core/sl/account-codes';
import { formatAccountCode } from '../../core/sl/account-segments';
import type { VhLookup } from '../../shared/value-help/value-help.types';
@@ -42,6 +43,9 @@ export const ACCOUNT_LOOKUP: VhLookup = {
resource: 'ChartOfAccounts',
orderby: 'Code',
baseFilter: `ActiveAccount eq 'tYES'`,
// el usuario conoce el código con formato; SAP guarda el interno
alsoMatch: ['FormatCode'],
codes: ACCOUNT_CODES,
columns: [
{ key: 'Code', title: 'Código', width: '160px', mono: true },
{ key: 'Name', title: 'Nombre' },