Private
Public Access
1 parent
77b27df6dd
commit
b6b2e7d465
2 files changed
+1
-2
No files matched your search
@@ -51,7 +51,7 @@ func registrarDevolucion(db *gorm.DB, repo *repositorios.Repositorios, empresaID
|
||||
return nil, fmt.Errorf("%w: la devolución debe tener al menos un ítem", ErrCantidadInvalida)
|
||||
}
|
||||
|
||||
factura, err := repo.Factura.ObtenerPorID(entrada.FacturaID)
|
||||
factura, err := repo.Factura.ObtenerConRelaciones(entrada.FacturaID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("%w: factura %d", ErrItemNoEncontrado, entrada.FacturaID)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user