Commit Graph

374 Commits

Author SHA1 Message Date
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
Hafizh A. Y. c9b4b3008e Merge branch 'feat/BE/US-35/stock-transfer' into 'development-before-sso'
(BE-58,,59): extend db schema & build stock transfer api

See merge request mbugroup/lti-api!19
2025-10-17 03:35:43 +00:00
ragilap 8c0790627a FIX[BE]: period and adjustment helper to function 2025-10-16 16:44:26 +07:00
ragilap 62a1011a4b FIX[BE]: period and adjustment helper to function 2025-10-16 16:35:01 +07:00
ragilap 3ec05eb76f FIX[BE]: period without autoincrement 2025-10-16 15:30:36 +07:00
aguhh18 9f26d5c784 feat(BE): add product flags to product warehouse response 2025-10-16 12:51:41 +07:00
ragilap 6c7ab8a0f8 feat/BE/US-74/pengajuan-flock 2025-10-16 10:06:18 +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 cd4c908334 refactor(BE-48): clean up ProductWarehouse entity structure
- Remove JSON tags from Product, Warehouse, and CreatedUser relations
- Keep GORM tags for database functionality
- Simplify entity definition for better maintainability
2025-10-10 13:52:50 +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
Hafizh A. Y 2d49ffe4cd Feat(BE-36,37,38,39): finish master data management api 2025-10-03 21:04:21 +07:00
Hafizh A. Y e8905be856 Feat(BE-36,37,38,39): master area, customer, kandang, location, warehouse 2025-10-02 10:51:15 +07:00
Hafizh A. Y dbc1f79a36 chore: update port so it doesn't conflict with sso 2025-09-30 16:48:05 +07:00
Hafizh A. Y 94a6d41a61 fix: adjust docker and any file for starting project 2025-09-30 14:45:54 +07:00
Hafizh A. Y c136206f2d fix: adjust from boilerplate to lti project 2025-09-25 11:08:01 +07:00
Hafizh A. Y 10506238ae initial commit 2025-09-25 10:47:28 +07:00