Commit Graph

10 Commits

Author SHA1 Message Date
Yoga Pangestu
0023309a8f Refactor services to improve role checks and streamline data retrieval
- Updated CustomerService to simplify getAll method.
- Refactored ProductService to utilize HasRoleChecks trait and improved role verification logic.
- Enhanced ProductVariantService with new methods for fetching data for restocking and transactions.
- Cleaned up RawMaterialService by removing unused methods and improving data retrieval.
- Adjusted SupplierService to streamline getAll method.
- Refactored RoleService to use Spatie's Role model and improved role filtering logic.
- Updated NotificationService to handle role labels more effectively.
- Improved StockMutationService by removing redundant paginated method.
- Cleaned up various frontend components to directly accept necessary props instead of nested data objects.
- Updated tests to reflect changes in service method names and ensure proper notification handling.
2026-08-09 11:33:25 +07:00
Yoga Pangestu
42e04673c6 feat: update CashTransactionType enum and improve transaction labels; refactor EmployeeAdvanceService and PayrollPeriodService for consistency 2026-08-06 15:26:46 +07:00
Yoga Pangestu
1fc058f974 feat: streamline lambda function syntax and enhance readability in RestockService 2026-08-06 14:01:37 +07:00
Yoga Pangestu
fc1c84f420 refactor: remove readonly modifier from S3PresignedService property for consistency 2026-08-05 22:35:46 +07:00
Yoga Pangestu
705f0d3efa refactor: update select statements to use array syntax for improved readability 2026-08-05 20:45:16 +07:00
Yoga Pangestu
3f77a9436d refactor: improve formatting consistency in various models and services 2026-08-05 20:27:27 +07:00
Yoga Pangestu
b70a40af4d feat: implement sorting for lines in purchase and restock create/edit components; enhance user experience 2026-08-05 20:26:58 +07:00
Yoga Pangestu
d90d2261ac feat: implement cash and stock handling traits for improved transaction management 2026-08-04 21:57:38 +07:00
Yoga Pangestu
00a848747f feat: add reject price handling in restock management and update related components 2026-08-03 13:03:03 +07:00
Yoga Pangestu
cf0e772159 feat: implement restock management functionality
- Add RestockIndex component for displaying and managing restocks.
- Create RestockCardRow component for rendering individual restock items.
- Implement RestockItemSubRow component for displaying detailed item information.
- Define routes for restock management in web.php.
- Create RestockTest to cover various scenarios for restock creation, updating, and deletion.
- Ensure proper handling of permissions for restock actions.
- Add validation for restock data and ensure correct relationships are maintained.
2026-08-02 22:34:10 +07:00