Commit Graph

93 Commits

Author SHA1 Message Date
Yoga Pangestu
3052398ad8 feat: add stock mutation tracking and history feature
- Introduced StockMutation model and service to handle stock changes.
- Created migration for stock_mutations table.
- Implemented stock mutation recording in various services (CuttingService, OrderService, PurchaseService, RestockService, RetailStockService).
- Added StockHistoryController to manage stock history views.
- Developed frontend components for displaying stock history and actions.
- Updated routes to include stock history access with appropriate permissions.
- Enhanced ProductVariant and RawMaterialPrice models to support stock mutations.
- Added RowHistoryAction button for accessing stock history in product and raw material tables.
2026-07-27 22:45:49 +07:00
Yoga Pangestu
9539ff7042 refactor: remove StockController and related stock verification logic
- Deleted `data-table-actions.vue` component as it is no longer needed.
- Removed `CuttingResultPriceItem` type and related properties from `cutting.ts`.
- Updated routes in `web.php` to eliminate stock verification routes and permissions.
- Removed `StockTest.php` file and its associated tests for stock verification and management.
- Adjusted `CuttingTest.php` to reflect changes in cutting results handling and removed references to product variants.
2026-07-19 17:29:19 +07:00
Yoga Pangestu
cf5b300895 Refactor product status management: replace is_active with status enum
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (8.3) (push) Waiting to run
tests / ci (8.4) (push) Waiting to run
tests / ci (8.5) (push) Waiting to run
- Updated the OwnerVerificationRequest model to change pendingToggleIsActive to pendingToggleStatus, reflecting the new status structure.
- Refactored the Product model to replace is_active with status, utilizing the ProductStatus enum for better clarity and type safety.
- Modified the ProductService to accommodate the new status field, including pagination and creation logic.
- Adjusted the AnalysisService to filter products based on their status.
- Updated the VerificationChangeFormatter to handle the new status field.
- Created a migration to remove is_active from the products table and add status with appropriate default values.
- Refactored the ProductSeeder to use the new status field.
- Updated frontend components and types to reflect the changes from is_active to status.
- Adjusted tests to ensure they validate the new status logic correctly.
2026-07-18 16:34:34 +07:00
Yoga Pangestu
62beb309a8 feat: implement restock management features including CRUD operations, permissions, and UI components for creating and editing restocks 2026-07-13 19:15:17 +07:00
Yoga Pangestu
00ef124fb3 feat: add predis/predis dependency and implement caching in various services for improved performance 2026-07-05 23:31:55 +07:00
Yoga Pangestu
0d77d6a4fd feat: add stock quality management to StokOpname; update validation rules, database schema, and frontend components to support stock quality categorization (good, retail, reject) for improved inventory tracking and reporting
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (8.3) (push) Waiting to run
tests / ci (8.4) (push) Waiting to run
tests / ci (8.5) (push) Waiting to run
2026-07-05 13:46:50 +07:00
Yoga Pangestu
15e2b7ec5b feat: add material_result field to CuttingMaterial and CuttingMaterialCombination; update validation rules and service logic to handle new material result calculations; enhance frontend components for displaying material results in cutting management
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (8.3) (push) Waiting to run
tests / ci (8.4) (push) Waiting to run
tests / ci (8.5) (push) Waiting to run
2026-07-04 23:14:37 +07:00
Yoga Pangestu
a3ff10d6e1 refactor: remove unused Carbon imports from Attendance and Employee models; update ProfileService to use UserProfile directly; clean up imports in various service files for improved clarity 2026-07-04 21:54:31 +07:00
Yoga Pangestu
ba3f7ef9f9 feat: add CuttingMaterialCombination management with store and destroy functionalities; implement validation for combination requests; enhance CuttingService to handle draft combinations; update frontend components for combination handling and display 2026-07-04 21:54:01 +07:00
Yoga Pangestu
80e1542151 feat: implement transaction management in ProductService for create, update, delete, and toggle status operations; refactor error handling to improve clarity and maintainability; update routes to ensure proper permission checks and enhance product management functionality 2026-07-04 17:14:01 +07:00
Yoga Pangestu
4466c61352 feat: make cutting results nullable and update UI to support create mode 2026-06-30 21:35:52 +07:00
Yoga Pangestu
69762c6539 feat: add stok opname employee to seeders 2026-06-29 10:35:29 +07:00
Yoga Pangestu
ebd48d4cb4 refactor: consistently rename 'hasilCuttingDiluarsample' to 'originalOutsideSample' across models, requests, and UI components for improved clarity in cutting results management 2026-06-29 08:49:38 +07:00
Yoga Pangestu
4e3e935f43 refactor: rename 'sampel' to 'sample' across models, requests, and UI components for consistency in cutting results management 2026-06-29 08:37:30 +07:00
Yoga Pangestu
b4e93fa329 refactor: rename 'hasil_cutting_diluar_sampel' to 'original_outside_sample' across models, requests, and UI components for consistency and clarity in cutting results management 2026-06-29 08:36:24 +07:00
Yoga Pangestu
05bada62f9 feat: add CashAccountSeeder to DatabaseSeeder for improved database initialization 2026-06-29 00:07:15 +07:00
Yoga Pangestu
8f66502f25 feat: implement retail stock transfer functionality with new controller, request validation, and service logic, while updating related models and UI components 2026-06-28 22:57:07 +07:00
Yoga Pangestu
7a1c4efe4a feat: enhance controller best practices and introduce new Cutting and Order management features with updated services and validation handling 2026-06-28 16:12:15 +07:00
Yoga Pangestu
b43835335a refactor: update enum handling in migrations and seeder, replace array_column with values() method for better performance and consistency 2026-06-28 12:06:05 +07:00
Yoga Pangestu
a5158c3992 feat: add stok opname management with new models, controllers, services, and frontend components for creating, editing, and viewing stok opnames 2026-06-28 11:53:37 +07:00
Yoga Pangestu
607bae444e feat: add nego_price handling to order management, update validation, formatting, and frontend components 2026-06-28 10:53:22 +07:00
Yoga Pangestu
8146da86c6 feat: add stock ecer transfer functionality with new controller, service, and frontend modal integration 2026-06-28 10:42:57 +07:00
Yoga Pangestu
414ce51904 feat: implement employee advance payment management with new model, migration, and frontend updates 2026-06-28 09:33:40 +07:00
Yoga Pangestu
9dba5e1491 refactor: replace remaining material with sampel and hasil cutting diluar sampel in cutting requests and models, update related validation and frontend components 2026-06-27 23:50:41 +07:00
Yoga Pangestu
4fb137d57d feat: implement notification system with controller, model, and frontend integration 2026-06-27 20:45:01 +07:00
Yoga Pangestu
7c0b59b998 feat: add partially paid status to employee advances and update related functionalities 2026-06-27 20:07:12 +07:00
Yoga Pangestu
d5ca41a764 refactor: update DatabaseSeeder to include staging environment for data initialization 2026-06-26 19:36:13 +07:00
Yoga Pangestu
1f92b662af feat: add CashAccountSeeder to DatabaseSeeder for improved data initialization 2026-06-26 19:14:05 +07:00
Yoga Pangestu
21b990799e feat: implement owner verification system with enums, service, and controller updates for managing verification requests 2026-06-26 19:13:10 +07:00
Yoga Pangestu
ad9ee3a99b refactor: update DatabaseSeeder to conditionally load seeders based on environment (local vs production) 2026-06-25 23:16:38 +07:00
Yoga Pangestu
58ba7512a5 refactor: implement error handling and logging in various service methods to enhance transaction safety and improve code robustness 2026-06-25 21:40:21 +07:00
Yoga Pangestu
d2b763ba57 feat: add owner user creation in UserSeeder with associated profile and role assignment 2026-06-25 20:37:41 +07:00
Yoga Pangestu
66bdd86b4f refactor: remove unused check_out_photo_path from checkedInOnly state in AttendanceFactory 2026-06-22 20:54:58 +07:00
Yoga Pangestu
da3e3a6895 refactor: enhance permission and role management by introducing group categorization for permissions and streamlining role permission assignments for improved maintainability 2026-06-22 17:57:18 +07:00
Yoga Pangestu
27c5b5fffa refactor: streamline enum management and enhance role assignment logic in EmployeeController for improved maintainability 2026-06-22 14:41:52 +07:00
Yoga Pangestu
bc365ebb4d refactor: standardize migration schema structures and remove redundant approval and status modifications 2026-06-22 11:14:12 +07:00
Yoga Pangestu
4cbd296c0c feat: add submittedBy relationship to Cutting model and enhance notification system for cutting updates and deletions 2026-06-21 15:16:58 +07:00
Yoga Pangestu
50f9328ebc feat: implement owner verification process with new status and related functionality for improved stock management 2026-06-21 14:51:15 +07:00
Yoga Pangestu
5e71277056 feat: add harga_modal price type and related logic for improved stock management and pricing accuracy 2026-06-21 14:08:53 +07:00
Yoga Pangestu
ec80f2145b refactor: remove ProductPendingAction and ProductStatus enums, update related references in Product model and services for improved code clarity and maintainability 2026-06-21 12:36:36 +07:00
Yoga Pangestu
13f2c6d745 refactor: standardize material usage and remaining material precision to two decimal places across CuttingService and related components for improved consistency 2026-06-21 12:23:51 +07:00
Yoga Pangestu
175e0dc5af refactor: update material usage and remaining material precision to four decimal places across cutting management components for improved accuracy 2026-06-21 11:02:54 +07:00
Yoga Pangestu
9c205cf3d0 feat: enhance cutting management by adding draft materials and results functionality, improving user experience with new API endpoints and UI components for better material handling 2026-06-21 10:29:45 +07:00
Yoga Pangestu
0cb93c4e05 refactor: update AttendanceController and related components to use new CheckInRequest and CheckOutRequest classes, streamline attendance handling by removing location tags, and enhance UI components for better user experience 2026-06-21 01:35:30 +07:00
Yoga Pangestu
256b13ad73 feat: add prices relationship to ProductVariant model and update related services and UI for improved product pricing management 2026-06-21 00:09:23 +07:00
Yoga Pangestu
6273d1a31d feat: integrate homepage settings management in Admin and HomeController, enhancing homepage configuration capabilities 2026-06-20 12:04:58 +07:00
Yoga Pangestu
5dc24b1494 feat: implement product approval workflow by adding verification, rejection, and approval functionalities, including UI updates and permission checks 2026-06-19 20:53:42 +07:00
Yoga Pangestu
2a2cc0fb96 feat: add shipping cost field to purchase management, including validation, calculations, and UI updates for total cost 2026-06-19 19:19:50 +07:00
Yoga Pangestu
db3f6887ea feat: add sewing and other cost fields to cutting management, including validation, calculations, and UI updates for total production cost 2026-06-19 19:11:58 +07:00
Yoga Pangestu
2db6dfece9 feat: enhance cutting management by adding result prices handling, including validation and calculations for total material cost and cost per unit 2026-06-19 19:04:23 +07:00