feat: boletas de venta (Invoices con DocumentSubType bod_Bill); la lista de facturas las excluye
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d926519f1b
commit
1834c64f6f
18 files changed
+122
-19
No files matched your search
@@ -225,11 +225,11 @@ describe('DocumentFormPage', () => {
|
||||
describe('copiar a', () => {
|
||||
const items = () => [...el().querySelectorAll<HTMLButtonElement>('sbo-menu-button')].map((m) => m.textContent?.trim());
|
||||
|
||||
it('un documento abierto y guardado ofrece Copiar a con entrega y factura', async () => {
|
||||
it('un documento abierto y guardado ofrece Copiar a con entrega, factura y boleta', async () => {
|
||||
await open('41', order());
|
||||
expect(items().join(' ')).toContain('Copiar a');
|
||||
const ids = page().copyToItems().map((i: { id: string; disabled: boolean }) => [i.id, i.disabled]);
|
||||
expect(ids).toEqual([['/ventas/entrega', false], ['/ventas/facturas', false]]);
|
||||
expect(ids).toEqual([['/ventas/entrega', false], ['/ventas/facturas', false], ['/ventas/boletas', false]]);
|
||||
});
|
||||
|
||||
it('abre el documento nuevo de destino llevando el origen', async () => {
|
||||
|
||||
Reference in new issue
Block a user