feat(web): más campos en los maestros (vendedor, contabilidad, unidades, proveedor principal, valoración)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
abc1cc4ac6
commit
e853b1b76c
5 files changed
+120
-2
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import type { ListColumn } from '../../shared/list/list.types';
|
||||
import type { VhLookup } from '../../shared/value-help/value-help.types';
|
||||
import { ACCOUNT_LOOKUP } from '../documents/dimension-lookups';
|
||||
|
||||
const col = (key: string, title: string, extra: Partial<ListColumn> = {}): ListColumn => ({ key, title, ...extra });
|
||||
|
||||
@@ -34,6 +35,24 @@ export const MASTER_LOOKUPS = {
|
||||
valueType: 'number',
|
||||
columns: [col('PriceListNo', 'Código', { width: '90px', mono: true }), col('PriceListName', 'Nombre')],
|
||||
} satisfies VhLookup,
|
||||
salesPerson: {
|
||||
title: 'Empleados de ventas',
|
||||
resource: 'SalesPersons',
|
||||
orderby: 'SalesEmployeeCode',
|
||||
valueType: 'number',
|
||||
baseFilter: `Active eq 'tYES'`,
|
||||
columns: [col('SalesEmployeeCode', 'Código', { width: '90px', mono: true }), col('SalesEmployeeName', 'Nombre')],
|
||||
} satisfies VhLookup,
|
||||
/** Cuenta contable del socio de negocio (cuentas por cobrar o por pagar). */
|
||||
account: ACCOUNT_LOOKUP,
|
||||
/** Proveedor principal de un artículo. */
|
||||
supplier: {
|
||||
title: 'Proveedores',
|
||||
resource: 'BusinessPartners',
|
||||
orderby: 'CardCode',
|
||||
baseFilter: `CardType eq 'cSupplier'`,
|
||||
columns: [col('CardCode', 'Código', { width: '130px', mono: true }), col('CardName', 'Nombre')],
|
||||
} satisfies VhLookup,
|
||||
itemGroup: {
|
||||
title: 'Grupos de artículos',
|
||||
resource: 'ItemGroups',
|
||||
|
||||
Reference in new issue
Block a user