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:
GeorgeandClaude Sonnet 5.5 committed 2026-10-15 17:13:33 -05:00
1 parent d926519f1b
commit 1834c64f6f
18 files changed
+122 -19

No files matched your search

+3 -2
View File
@@ -17,7 +17,7 @@ export interface SlResource {
expand?: string[];
}
const document = (name: string, path: string): SlResource => ({
const document = (name: string, path: RequiredPath): SlResource => ({
name,
key: 'number',
methods: ['GET', 'POST', 'PATCH'],
@@ -44,7 +44,8 @@ export const SL_RESOURCES: readonly SlResource[] = [
document('Quotations', '/ventas/ofertas'),
document('Orders', '/ventas/ordenes'),
document('DeliveryNotes', '/ventas/entrega'),
document('Invoices', '/ventas/facturas'),
// Las boletas de venta son facturas con `DocumentSubType = bod_Bill`: mismo recurso, dos pantallas.
document('Invoices', ['/ventas/facturas', '/ventas/boletas']),
document('Returns', '/ventas/devoluciones'),
document('CreditNotes', '/ventas/notas-credito'),