fix(web): fechas de SAP con hora, enlaces como botones y un solo maestro de impuestos
Probado contra el SAP real (solo lectura): órdenes de venta y facturas de proveedor. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4d4df17d07
commit
6978fed6fb
8 files changed
+34
-10
No files matched your search
@@ -16,8 +16,8 @@ const order = (over: Record<string, unknown> = {}) => ({
|
||||
CardCode: 'C1',
|
||||
CardName: 'ACME',
|
||||
NumAtCard: '',
|
||||
DocDate: '2026-09-11',
|
||||
DocDueDate: '2026-09-20',
|
||||
DocDate: '2026-09-11T00:00:00Z',
|
||||
DocDueDate: '2026-09-20T00:00:00Z',
|
||||
DiscountPercent: 0,
|
||||
Comments: 'hola',
|
||||
DocumentStatus: 'bost_Open',
|
||||
@@ -77,6 +77,11 @@ describe('DocumentFormPage', () => {
|
||||
expect(buttonText()).toContain('Actualizar');
|
||||
});
|
||||
|
||||
it('las fechas de SAP (con hora) se muestran y se comparan como AAAA-MM-DD', () => {
|
||||
expect(page().header().DocDate).toBe('2026-09-11');
|
||||
expect(page().dirty()).toBe(false);
|
||||
});
|
||||
|
||||
it('sin cambios, Actualizar no envía nada', async () => {
|
||||
(el().querySelector('.actions .btn.main') as HTMLElement).click();
|
||||
await tick();
|
||||
|
||||
Reference in new issue
Block a user