feat(facturacion): cuenta predial para régimen 606 (arrendamiento)

- Frontend: muestra input 'No. Cuenta Predial' en sección 'Datos del Inmueble'
  cuando el régimen del emisor es 606 (Arrendamiento), antes de Conceptos
- Frontend: incluye cuentaPredial en payload; se resetea al cambiar contribuyente
- Backend: pasa property_tax_account a nivel de cada item en Facturapi
  para facturapi.service.ts y contribuyente-facturapi.service.ts
- Build y deploy exitosos
This commit is contained in:
Horux Dev
2026-05-22 23:20:36 +00:00
parent 0c8ae05919
commit a91a2f415d
4 changed files with 30 additions and 0 deletions

View File

@@ -443,6 +443,7 @@ export async function createInvoiceContribuyente(
...(t.withholding ? { withholding: true } : {}),
})) || [{ type: 'IVA', rate: 0.16 }],
},
...(data.cuentaPredial ? { property_tax_account: data.cuentaPredial } : {}),
}));
}

View File

@@ -323,6 +323,7 @@ export async function createInvoice(
...(t.withholding ? { withholding: true } : {}),
})) || [{ type: 'IVA', rate: 0.16 }],
},
...((data as any).cuentaPredial ? { property_tax_account: (data as any).cuentaPredial } : {}),
}));
}