Commit Graph

14 Commits

Author SHA1 Message Date
aguhh18 68a670a2bd feat(BE-116): add project chick in database schema 2025-10-18 16:30:13 +07:00
aguhh18 a45c20d2ff fix(BE): improve product and warehouse existence check in adjustment service 2025-10-17 20:43:31 +07:00
aguhh18 79700420d4 fix(BE): add missing product json in transfer get all & support flag param filter in product warehouses 2025-10-17 12:04:19 +07:00
aguhh18 9f26d5c784 feat(BE): add product flags to product warehouse response 2025-10-16 12:51:41 +07:00
aguhh18 f6f62246c6 feat(BE-59,60,61): build stock transfer API with validation and audit log 2025-10-16 07:37:10 +07:00
aguhh18 0ffb8a44f2 feat(BE-59,60,61): build stock transfer API with validation and audit log
- Implement CreateOne for stock transfer with multi-delivery and validation
- Preload warehouse, location, and area relations in transfer response
- Add audit log for transfer
- Improve transaction handling and error management
2025-10-15 22:26:06 +07:00
aguhh18 4107cf19ec feat(BE-59,60,61): build stock transfer API with validation and audit log
- Implement CreateOne for stock transfer with multi-delivery and validation
- Preload warehouse, location, and area relations in transfer response
- Add audit log for transfer
- Improve transaction handling and error management
2025-10-15 22:25:50 +07:00
aguhh18 d1b377ddac feat(BE-58,59,60,61): implement stock transfer API, validation, audit log, and schema update
- Build stock transfer API with nested details, deliveries, and items
- Extend DB schema for stock transfers
- Implement validation for transfer request and stock
- Prepare/implement transfer audit log structure
- Preload all relations for complete response
- Update DTOs for nested response
- Remove redundant root fields, use relation objects
2025-10-15 11:20:32 +07:00
aguhh18 9b016dc30a (BE-58,,59): extend db schema & build stock transfer api
- Extend DB schema for stock transfers
- Build stock transfer API (create,)
2025-10-14 22:16:50 +07:00
aguhh18 5283aed996 feat(BE-48): auto-create product_warehouse on stock adjustment & remove unused APIs
- Change logic: automatically create product_warehouse if it does not exist during stock adjustment
- Remove unnecessary/unused API endpoints
- Ensure adjustment process continues even if product_warehouse was not previously available
2025-10-13 11:38:05 +07:00
aguhh18 ce28429efd feat(BE-50): add getOne endpoint for adjustment history 2025-10-13 09:36:38 +07:00
aguhh18 81cbb230f3 fix(BE-48): improve adjustment history filtering and fix pointer conversion
- Add search parameter to adjustment history API
- Fix JOIN query logic to avoid duplicate JOINs
- Use EXISTS subquery for cleaner product/warehouse filtering
- Fix pointer conversion issue in slice iteration
- Improve query performance and code readability
2025-10-10 12:36:11 +07:00
aguhh18 91b320d489 feat(BE-47,48,49,50): implement inventory adjustment system
- Extend DB schema with product_warehouses and stock_logs tables
- Implement stock adjustment API (increase/decrease operations)
- Add comprehensive validation for all adjustment operations
- Implement audit log system for each adjustment with history tracking
- Include transaction handling, DTOs, seeders, and proper error handling
- Add adjustment history API with pagination and filtering

TODO: Integration testing pending
2025-10-10 09:24:17 +07:00
aguhh18 a0bdc7b23c feat(BE-34): extend DB schema and update master data APIs [partial]
 DB Schema: product_warehouse entity and migration
 Master Data: added filter params to getall APIs
🚧 Pending: stock_logs implementation and adjustment APIs
2025-10-09 13:33:30 +07:00