Commit Graph

58 Commits

Author SHA1 Message Date
masoodafar-web 4d6d77531d feat(commission): add per-package calculation support
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 15m3s
- SP sp_CalculateWeeklyBalances: added @PackageId, @InputMaxBalancesPerLeg, @InputMaxNetworkLevel params; filters by PackageId
- SP sp_CalculateWeeklyCommissionPool: added @PackageId param; all queries filter by PackageId/WeeklyPoolId for isolation
- ICommissionCalculationStrategy: added optional PackageId param to both methods
- StoredProcedureCommissionCalculationStrategy: loops per-package for both Balance and Pool methods; filters by packageId if provided
- OrmCommissionCalculationStrategy: signature updated to match interface
- TriggerWeeklyCalculationCommand: added PackageId optional field
- TriggerWeeklyCalculationCommandHandler: passes PackageId to strategy
- GetWeeklyCommissionPoolQuery: added optional PackageId filter
- GetWeeklyCommissionPoolQueryHandler: filters pool by PackageId if provided
- GetAllWeeklyPoolsQuery/Handler/DTO: added PackageId filter + PackageTitle in response
- Proto commission.proto: added package_id to TriggerWeeklyCalculationRequest, GetWeeklyCommissionPoolRequest, WeeklyCommissionPoolModel, GetWeeklyCommissionPoolResponse, GetAllWeeklyPoolsRequest
- CommissionProfile: added explicit mappings for TriggerWeeklyCalculation, GetWeeklyCommissionPool, GetAllWeeklyPools

Fixes: SP picks wrong pool when multiple packages per week
Fixes: SP ignores PackageId on ForceRecalculate (now uses WeeklyPoolId)
Fixes: Zero-balance pools not fully recorded (now sets TotalBalances=0, ValuePerBalance=0)
2026-04-24 03:43:20 +03:30
masoodafar-web b42d9e141d feat: Implement file management and authorization features
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 3m9s
- Add RequiresPermissionAttribute for gRPC method access control.
- Create IFileManagementService interface for file upload and management.
- Implement AddProductImageCommand and handler for adding product images.
- Implement CreateNewProductsCommand and handler for creating new products with image uploads.
- Implement DeleteProductsCommand and handler for deleting products and their associations.
- Implement RemoveProductImageCommand and handler for removing product images from galleries.
- Implement UpdateProductsCommand and handler for updating product details and images.
- Create GetProductGalleryQuery and handler for retrieving product galleries.
- Implement PermissionService for role-based access control using JWT claims.
- Implement FileManagementService for handling file uploads and image optimization.
- Define gRPC service and messages for file management in fms.proto.
- Add FluentValidation for request validation in various commands.
- Create PermissionInterceptor for enforcing permissions on gRPC methods.
2026-02-10 22:04:54 +03:30
masoodafar-web ca9b02a902 chore: update Protobuf project version to 0.0.169
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m4s
2026-01-03 15:38:33 +03:30
masoodafar-web dde4c68b2f feat: Implement inventory and warehouse management features
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m33s
- Add GetLowStockItemsResponseDto and LowStockItemDto for low stock item queries.
- Create CreateStockMovementCommand and its handler for managing stock movements.
- Implement CreateStockMovementCommandValidator for validating stock movement commands.
- Add GetStockMovementsQuery and its handler to retrieve stock movement records.
- Create GetStockMovementsResponseDto and StockMovementListDto for stock movement responses.
- Implement GetStockMovementsByInventoryItemQuery and its handler for fetching movements by inventory item.
- Add CreateWarehouseCommand and its handler for creating new warehouses.
- Implement CreateWarehouseCommandValidator for warehouse creation validation.
- Add DeleteWarehouseCommand and its handler for removing warehouses.
- Implement SetDefaultWarehouseCommand and its handler for setting a default warehouse.
- Create UpdateWarehouseCommand and its handler for updating warehouse details.
- Implement GetAllWarehousesQuery and its handler to retrieve all warehouses.
- Add GetWarehouseQuery and its handler for fetching a specific warehouse by ID.
- Implement SearchWarehousesQuery and its handler for searching warehouses based on criteria.
2026-01-03 11:59:08 +03:30
masoodafar-web 288b85a59b feat: implement Chatika account activation job for new club members 2025-12-23 22:52:49 +03:30
masoodafar-web ff1c1d5d61 feat: add IsActive field to UserClubFeatures for admin management 2025-12-12 01:40:26 +03:30
masoodafar-web 78606cc5cc feat: Add ClearCart command and response, implement CancelOrder command with validation, and enhance DeliveryStatus and User models 2025-12-02 03:30:36 +03:30
masoodafar-web 25fc73ae28 feat: Enhance network membership and withdrawal processing with user tracking and logging 2025-12-01 20:52:18 +03:30
masoodafar-web 8d31a8c026 feat: Add GetClubStatistics and GetNetworkStatistics APIs with corresponding request and response messages 2025-12-01 16:43:53 +03:30
masoodafar-web 199e7e99d1 feat: Add monitoring alerts skeleton and enhance worker with notifications 2025-11-30 20:18:10 +03:30
masoodafar-web 55fa71e09b docs: Complete Phase 8 documentation
Added comprehensive Phase 8 documentation:
- Migration 20251129002222_AddNetworkClubSystemV2 details
- 11 new tables created
- 3 existing tables updated
- Complete index and foreign key specifications
- 10 default SystemConfigurations seeded
- ApplicationDbContextInitialiser logic documented
- Updated project statistics (15 commits total)
- System marked as fully operational

Database Status:  Ready for production
All phases except Testing (optional) complete!
2025-11-29 05:00:41 +03:30
masoodafar-web 6651063297 docs: Update progress for Phase 6 completion
Added Phase 6 (gRPC API Integration) documentation:
- 4 Protobuf files with complete RPC definitions
- 4 gRPC Service classes with MediatR integration
- 26 RPC endpoints (Configuration: 5, ClubMembership: 6, NetworkMembership: 6, Commission: 9)
- HTTP transcoding support
- Auto-registration mechanism
- Updated overall project statistics

Total project stats:
- 145+ files created
- ~10,830 lines of code
- 12 successful commits
- 6 phases completed
2025-11-29 04:49:21 +03:30
masoodafar-web 3010881b4e docs: Update implementation-progress.md for Phase 5 completion
Added Phase 5 (CommissionCQ) complete documentation:
- 5 Commands with detailed logic explanations
- 4 Queries with filters and features
- Recursive Binary Tree algorithm documentation
- State machine and withdrawal system
- Type conversion fixes documented
- Overall project statistics updated

Total lines: ~9,670 | Total files: 137+ | Total commits: 11
2025-11-29 04:34:58 +03:30
masoodafar-web e68a7182d9 docs: Update implementation progress - Phase 4 complete 2025-11-29 04:21:54 +03:30
masoodafar-web b21dda515e docs: Update implementation progress - Phase 3 complete 2025-11-29 04:15:05 +03:30
masoodafar-web fb911cd0fd docs: Update progress - ConfigurationCQ completed (Phase 2)
ConfigurationCQ Implementation Summary:
 2 Commands: SetConfigurationValue, DeactivateConfiguration
 3 Queries: GetByKey, GetAll, GetHistory
 6 Validators with FluentValidation
 6 Handlers with history tracking
 4 DTOs for clean data transfer
 612+ lines of code added
 Build successful (0 errors)

Next: ClubMembershipCQ implementation
2025-11-29 04:03:22 +03:30
masoodafar-web 0d52515be4 docs: Update implementation progress - Phase 1 completed
Phase 1 (Domain Layer) - 100% Complete:
 All enums created (8 files)
 All entities created (11 new + 3 updated)
 All EF configurations created (14 files)
 Migration created and tested
 6,300+ lines of code added
 Build successful with no errors

Ready for Phase 2: Application Layer (CQRS)
2025-11-29 03:54:49 +03:30
masoodafar-web 6089181bcf Add documentation for network club commission system and wallet management 2025-11-29 03:33:42 +03:30
masoodafar-web c871f8e4c0 Update model.ndm2 2025-11-25 04:31:56 +03:30
masoodafar-web 358ffc438d Update model.ndm2 2025-11-25 02:18:45 +03:30
masoodafar-web 87842f0b9b update 2025-11-25 01:58:45 +03:30
masoodafar-web a2d293ed01 update 2025-11-25 00:39:31 +03:30
masoodafar-web 744f71ce6c update 2025-11-24 23:01:35 +03:30
masoodafar-web 6cd0a45336 update 2025-11-24 22:55:14 +03:30
masoodafar-web fb9d2f6a9c Update model.ndm2 2025-11-22 21:57:52 +03:30
masoodafar-web a1c934c2de update 2025-11-20 23:12:17 +03:30
masoodafar-web b0a760d063 update 2025-11-20 18:27:05 +03:30
masoodafar-web b9d8afdf00 update 2025-11-20 00:51:05 +03:30
masoodafar-web 7840f3b463 update 2025-11-20 00:40:28 +03:30
masoodafar-web f6dcd43346 update 2025-11-18 22:38:50 +03:30
masoodafar-web da07a3da38 Update model.ndm2 2025-11-17 23:51:40 +03:30
masoodafar-web 78e461909f update 2025-11-17 23:49:48 +03:30
masoodafar-web 84aa7c20e6 Update model.ndm2 2025-11-16 01:17:45 +03:30
masoodafar-web 2bc40db528 Update model.ndm2 2025-11-16 01:08:43 +03:30
masoodafar-web b646eec140 Merge branch 'newmain' 2025-11-16 00:58:57 +03:30
masoodafar-web 974f3c788f Update model.ndm2 2025-11-16 00:48:28 +03:30
masoodafar-web d46aa6ef41 Update model.ndm2 2025-11-16 00:41:44 +03:30
masoodafar-web 8686cacd73 Update model.ndm2 2025-11-16 00:39:23 +03:30
masoodafar-web e3b6007aee update 2025-11-14 15:54:12 +03:30
masoodafar-web 0adb0713f3 update 2025-11-12 23:17:56 +03:30
masoodafar-web f68b9d7a89 update 2025-11-12 22:13:55 +03:30
masoodafar-web 3707dfebf6 update 2025-11-12 20:44:53 +03:30
masoodafar-web b27c765731 Generator Changes at 11/12/2025 1:32:03 AM +03:30 2025-11-12 02:24:02 +03:30
masoodafar-web 826ae4589f Implement feature X to enhance user experience and fix bug Y in module Z 2025-11-10 00:24:32 +03:30
masoodafar-web 23d8308a12 Implement feature X to enhance user experience and fix bug Y in module Z 2025-11-10 00:07:24 +03:30
masoodafar-web 872838567d Implement code changes to enhance functionality and improve performance 2025-11-09 23:57:00 +03:30
masoodafar-web 174e0b328c Implement feature X to enhance user experience and fix bug Y in module Z 2025-11-09 23:52:52 +03:30
MeysamMoghaddam afad9b62be Update model.ndm2 2025-10-13 08:08:16 +03:30
MeysamMoghaddam cbf4d4f376 u 2025-09-28 06:45:26 +03:30
MeysamMoghaddam 1a99a88552 Update model.ndm2 2025-09-28 06:18:50 +03:30