Spaces:
Runtime error
Runtime error
Commit History
-
self direct GRN
d1994fc
-
feat(po-returns): make warehouse_id optional and refactor validation logic
- Change warehouse_id column to nullable in PoReturn model - Update validation to work without warehouse context - Simplify PO items validation against received/returned quantities - Add UUID type casting for SQL query parameters - Create database migration to alter warehouse_id column constraint - Add migration scripts for applying SQL fixes and managing functions - Update purchase orders service to handle has_grn filter with status mapping - Enhance test coverage for purchase return flow - Remove dependency on stock table for return validation - Allow creating returns without specifying warehouse for improved flexibilityd5f79b7