fix(web): lista de cuentas de título propia (sin FormatCode: su código visible es el Code)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 10:13:35 -05:00
1 parent 15dff47899
commit 5dfe096c5d
1 file changed
+13 -2
@@ -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[] = [