hecha funcionalidad de modificacion/cancelacion de facturas

Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
fede committed 2026-12-02 20:27:38 -03:00
1 parent 94a4e292c4
commit 6331e16dc5
39 files changed
+2283 -104

No files matched your search

@@ -12,6 +12,7 @@ import (
dto_directors "repuestera_back/dto/Builders/Directors"
dto_facturas "repuestera_back/dto/Facturas"
r "repuestera_back/repositorios"
"repuestera_back/services"
)
// ObtenerComprobante devuelve el detalle de una factura junto con sus pagos,
@@ -75,8 +76,15 @@ func ObtenerComprobante(c *gin.Context) {
})
}
notas, err := services.ObtenerNotasFactura(repo, factura.ID)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
c.JSON(http.StatusOK, dto_facturas.ComprobanteResponse{
FacturaResponse: respuesta,
Pagos: pagosResumen,
Notas: notas,
})
}