From 5dfe096c5d5e149b1d9c93837db7ae66d9ca4249 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 19 Oct 2026 10:13:35 -0500 Subject: [PATCH] =?UTF-8?q?fix(web):=20lista=20de=20cuentas=20de=20t=C3=AD?= =?UTF-8?q?tulo=20propia=20(sin=20FormatCode:=20su=20c=C3=B3digo=20visible?= =?UTF-8?q?=20es=20el=20Code)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- .../features/masters/finanzas/finanzas.screens.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/features/masters/finanzas/finanzas.screens.ts b/apps/web/src/app/features/masters/finanzas/finanzas.screens.ts index 031a84e..8836dd3 100644 --- a/apps/web/src/app/features/masters/finanzas/finanzas.screens.ts +++ b/apps/web/src/app/features/masters/finanzas/finanzas.screens.ts @@ -1,6 +1,7 @@ import type { SelectFilter } from '../../../core/sl/list-filters'; import type { HeaderField } from '../../documents/document-layouts'; -import { ACCOUNT_LOOKUP, PROJECT_LOOKUP, dimensionLookup } from '../../documents/dimension-lookups'; +import { PROJECT_LOOKUP, dimensionLookup } from '../../documents/dimension-lookups'; +import type { VhLookup } from '../../../shared/value-help/value-help.types'; import { MASTER_LOOKUPS } from '../master-lookups'; import type { MasterScreen } from '../master-types'; @@ -25,7 +26,17 @@ const postableFilter: SelectFilter = { }; /** Cuentas de título: las únicas que pueden ser la cuenta padre de otra. */ -const TITLE_ACCOUNTS = { ...ACCOUNT_LOOKUP, title: 'Cuentas de título', baseFilter: `ActiveAccount eq 'tNO'` }; +const TITLE_ACCOUNTS: VhLookup = { + title: 'Cuentas de título', + resource: 'ChartOfAccounts', + orderby: 'Code', + baseFilter: `ActiveAccount eq 'tNO'`, + // una cuenta de título no tiene `FormatCode`: su código visible es el `Code` + columns: [ + { key: 'Code', title: 'Cuenta', width: '170px', mono: true }, + { key: 'Name', title: 'Nombre' }, + ], +}; /** Plan de cuentas (`ChartOfAccounts`): solo campos estándar de SAP. */ export const FINANZAS_SCREENS: readonly MasterScreen[] = [