feat(web): columna Indicador también en las listas de notas de crédito
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cef62dc1a
commit
1bb8efa77e
3 files changed
+8
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { BILLING_DOCUMENT, TAX_DOCUMENT, type DocumentScreen, docDate, docNum, invoiceColumns, marketing, referenceColumns, statusColumn, statusFilter, dateFilter } from '../screen-kit';
|
||||
import { BILLING_DOCUMENT, TAX_DOCUMENT, type DocumentScreen, docDate, docNum, indicatorColumn, invoiceColumns, marketing, referenceColumns, statusColumn, statusFilter, dateFilter } from '../screen-kit';
|
||||
import { purchaseRequestLayout } from './compras.layouts';
|
||||
|
||||
/** Compras: solicitudes de compra y documentos de proveedor. */
|
||||
@@ -24,5 +24,5 @@ export const COMPRAS_SCREENS: readonly DocumentScreen[] = [
|
||||
marketing('/compras/recepcion', 'PurchaseDeliveryNotes', 'Nueva recepción', 'Proveedor', TAX_DOCUMENT),
|
||||
marketing('/compras/facturas', 'PurchaseInvoices', 'Nueva factura', 'Proveedor', { ...BILLING_DOCUMENT, columns: invoiceColumns }),
|
||||
marketing('/compras/devoluciones', 'PurchaseReturns', 'Nueva devolución', 'Proveedor'),
|
||||
marketing('/compras/notas-credito', 'PurchaseCreditNotes', 'Nueva nota de crédito', 'Proveedor', BILLING_DOCUMENT),
|
||||
marketing('/compras/notas-credito', 'PurchaseCreditNotes', 'Nueva nota de crédito', 'Proveedor', { ...BILLING_DOCUMENT, columns: [indicatorColumn] }),
|
||||
];
|
||||
@@ -79,6 +79,9 @@ export const referenceColumns: readonly ListColumn[] = [
|
||||
{ key: 'FederalTaxID', title: 'RUT', width: '110px', mono: true, searchable: true },
|
||||
];
|
||||
|
||||
/** Indicador del documento (tipo de documento tributario: 33 factura, 39 boleta). */
|
||||
export const indicatorColumn: ListColumn = { key: 'Indicator', title: 'Indicador', width: '90px', mono: true, searchable: true };
|
||||
|
||||
/** Facturas: folio tributario (en el Service Layer `FolioPrefixString` y `FolioNumber`), indicador (tipo de documento: 33 factura, 39 boleta), referencia y RUT. */
|
||||
export const invoiceColumns: readonly ListColumn[] = [
|
||||
{ key: 'FolioPrefixString', title: 'Folio pref.', width: '90px', mono: true, searchable: true },
|
||||
@@ -92,7 +95,7 @@ export const invoiceColumns: readonly ListColumn[] = [
|
||||
searchable: true,
|
||||
format: (r) => String(r['FolioNumber'] ?? ''),
|
||||
},
|
||||
{ key: 'Indicator', title: 'Indicador', width: '90px', mono: true, searchable: true },
|
||||
indicatorColumn,
|
||||
...referenceColumns,
|
||||
];
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BILLING_DOCUMENT, TAX_DOCUMENT, type DocumentScreen, invoiceColumns, marketing, referenceColumns } from '../screen-kit';
|
||||
import { BILLING_DOCUMENT, TAX_DOCUMENT, type DocumentScreen, indicatorColumn, invoiceColumns, marketing, referenceColumns } from '../screen-kit';
|
||||
|
||||
/**
|
||||
* Filtros que separan las cuatro pantallas de `Invoices`: `ReserveInvoice` (reserva sí/no) y el subtipo
|
||||
@@ -45,5 +45,5 @@ export const VENTAS_SCREENS: readonly DocumentScreen[] = [
|
||||
fixed: { ReserveInvoice: 'tYES', DocumentSubType: 'bod_Bill' },
|
||||
}),
|
||||
marketing('/ventas/devoluciones', 'Returns', 'Nueva devolución', 'Cliente'),
|
||||
marketing('/ventas/notas-credito', 'CreditNotes', 'Nueva nota de crédito', 'Cliente', BILLING_DOCUMENT),
|
||||
marketing('/ventas/notas-credito', 'CreditNotes', 'Nueva nota de crédito', 'Cliente', { ...BILLING_DOCUMENT, columns: [indicatorColumn] }),
|
||||
];
|
||||
Reference in new issue
Block a user