feat(web): columna «Nombre de la cuenta» en las líneas de servicio (solo lectura)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
80a65cbc62
commit
3c1d02a263
3 files changed
+14
-2
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import type { GridColumn, GridLine, GridMultiAdd } from '../../shared/grid/grid.types';
|
||||
import { ACCOUNT_CODES } from '../../core/sl/account-codes';
|
||||
import { ACCOUNT_LOOKUP, PROJECT_LOOKUP, dimensionLookup } from './dimension-lookups';
|
||||
import { hasBaseRef, objectLabel } from './document-objects';
|
||||
|
||||
@@ -227,6 +228,8 @@ export const serviceLineColumns = (taxResource = 'SalesTaxCodes'): readonly Grid
|
||||
}),
|
||||
},
|
||||
},
|
||||
// el nombre de la cuenta (SAP lo muestra aunque la línea no tenga descripción propia): solo se ve, no se guarda
|
||||
{ key: '_AccountName', title: 'Nombre de la cuenta', width: '230px', format: (l) => ACCOUNT_CODES.label?.(String(l['AccountCode'] ?? '')) ?? '' },
|
||||
{ ...LINE_COLUMNS.description, width: '260px' },
|
||||
LINE_COLUMNS.tax,
|
||||
{ ...LINE_COLUMNS.total, readonly: false, required: true },
|
||||
|
||||
Reference in new issue
Block a user