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:
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' },
|
||||
|
||||
@@ -107,7 +107,7 @@ export class JournalFormPage {
|
||||
|
||||
protected readonly columns: readonly DetailColumn[] = [
|
||||
{ key: 'AccountCode', title: 'Cuenta', type: 'lookup', required: true, lookup: ACCOUNT_LOOKUP, width: '170px' },
|
||||
{ key: 'ShortName', title: 'Cuenta / socio', type: 'text', width: '150px' },
|
||||
{ key: 'ShortName', title: 'Cuenta / socio', type: 'lookup', lookup: ACCOUNT_LOOKUP, width: '170px' },
|
||||
{ key: 'Debit', title: 'Debe', type: 'number', decimals: 2, width: '120px' },
|
||||
{ key: 'Credit', title: 'Haber', type: 'number', decimals: 2, width: '120px' },
|
||||
{ key: 'DueDate', title: 'Vencimiento', type: 'date', width: '120px' },
|
||||
|
||||
Reference in new issue
Block a user