Skip to content

feat: add VentaDetalle CRUD (productos) with delete, guardar, and cli…#25

Merged
edelomeza merged 3 commits into
mainfrom
CrudVentaDetalle
Jul 16, 2026
Merged

feat: add VentaDetalle CRUD (productos) with delete, guardar, and cli…#25
edelomeza merged 3 commits into
mainfrom
CrudVentaDetalle

Conversation

@edelomeza

Copy link
Copy Markdown
Owner

…ent-side filtering

  • Add VentaDetalle model, viewmodels, service and controller actions
  • Add Productos page with autocomplete, table, delete button, and total
  • Add EliminarProducto AJAX endpoint with anti-forgery validation
  • Add Guardar action that sends full Venta object for PUT
  • Add client-side filtering for idVenVenta (API ignores query param)
  • Add integration tests for VentaDetalle delete
  • Add security tests for EliminarProducto endpoint
  • Clean up unused JS variables

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

…ent-side filtering

- Add VentaDetalle model, viewmodels, service and controller actions
- Add Productos page with autocomplete, table, delete button, and total
- Add EliminarProducto AJAX endpoint with anti-forgery validation
- Add Guardar action that sends full Venta object for PUT
- Add client-side filtering for idVenVenta (API ignores query param)
- Add integration tests for VentaDetalle delete
- Add security tests for EliminarProducto endpoint
- Clean up unused JS variables
Comment on lines +302 to +306
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error autocomplete productos");
return [];
}
Comment on lines +215 to +219
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error fetching venta {Id}", id);
return null;
}
Comment on lines +257 to +261
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error fetching venta detalles");
return [];
}
Comment on lines +313 to +317
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error creating venta detalle");
return OperationResult.Fail("Error inesperado. Intente nuevamente.");
}
Comment on lines +373 to +377
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error updating venta {Id}", id);
return OperationResult.Fail("Error inesperado. Intente nuevamente.");
}
Comment on lines +431 to +435
catch (Exception ex)
{
_logger.LogError(ex, "Unexpected error deleting venta detalle {Id}", id);
return OperationResult.Fail("Error inesperado. Intente nuevamente.");
}
@edelomeza
edelomeza merged commit f7cd727 into main Jul 16, 2026
10 checks passed
@edelomeza
edelomeza deleted the CrudVentaDetalle branch July 16, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants