feat(web): serie, indicador y proyecto en la cabecera; dimensiones, proyecto, cuenta, referencia base y precio con IVA en el detalle
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f003ee4bf
commit
f66ef108cf
22 files changed
+698
-100
No files matched your search
@@ -3,7 +3,19 @@ import { HttpTestingController, provideHttpClientTesting } from '@angular/common
|
||||
import { Component, signal } from '@angular/core';
|
||||
import { type ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
import { DOCUMENT_LINE_COLUMNS, ITEMS_MULTI_ADD, newDocumentLine, recalcLine } from '../../features/documents/line-columns';
|
||||
import { ITEMS_MULTI_ADD, LINE_COLUMNS, newDocumentLine, recalcLine } from '../../features/documents/line-columns';
|
||||
|
||||
/** Las ocho columnas básicas de una línea (las posiciones que usan estos tests). */
|
||||
const BASIC_COLUMNS = [
|
||||
LINE_COLUMNS.item,
|
||||
LINE_COLUMNS.description,
|
||||
LINE_COLUMNS.quantity,
|
||||
LINE_COLUMNS.warehouse,
|
||||
LINE_COLUMNS.price,
|
||||
LINE_COLUMNS.discount,
|
||||
LINE_COLUMNS.tax,
|
||||
LINE_COLUMNS.total,
|
||||
];
|
||||
import type { GridLine } from './grid.types';
|
||||
import { LinesGrid } from './lines-grid';
|
||||
|
||||
@@ -21,7 +33,7 @@ import { LinesGrid } from './lines-grid';
|
||||
`,
|
||||
})
|
||||
class Host {
|
||||
columns = DOCUMENT_LINE_COLUMNS;
|
||||
columns = BASIC_COLUMNS;
|
||||
lines = signal<readonly GridLine[]>([]);
|
||||
readonly = signal(false);
|
||||
newLine = newDocumentLine;
|
||||
|
||||
Reference in new issue
Block a user