Yoga Pangestu
9089b32d7b
refactor: streamline variant and price loading in product-related services
...
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
- Removed unnecessary ordering by 'created_at' in variant loading across multiple services and models.
- Implemented global scopes for ordering product variants and raw material prices by 'name' and 'variant', respectively.
- Enhanced code readability and maintainability by simplifying query structures in ProductController, OrderService, and others.
2026-07-29 15:06:16 +07:00
Yoga Pangestu
d74d120a6c
feat: refactor stock mutation relationships in ProductVariant and RawMaterialPrice models
2026-07-27 22:46:25 +07:00
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
fe5dfd382f
refactor: update relationships in models to include withTrashed() for soft deletes, ensuring proper handling of related records
2026-07-10 11:07:07 +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
393c36e932
refactor: reorganize model structure and enhance attribute handling across multiple models, including improved casting, scope definitions, and attribute formatting
2026-06-28 14:47:19 +07:00
Yoga Pangestu
0986ec780b
refactor: standardize model structure, normalize bidirectional relations, and update documentation.
2026-06-22 11:26:47 +07:00
Yoga Pangestu
21adde11fd
style: refine layout and formatting in Index.vue for improved readability and consistency
2026-06-20 21:48:26 +07:00
Yoga Pangestu
e77f0ebc8a
Refactor price handling in product and raw material requests, models, and migrations to use integers instead of decimals. Update validation rules and data types in related TypeScript files for consistency across the application.
2026-06-12 23:37:44 +07:00
Yoga Pangestu
eb2047a3e2
Implement FlashesEntityMessage trait across multiple controllers for consistent flash messaging. Update flash messages in various methods to utilize the new trait, enhancing code maintainability and readability. Additionally, add attribute methods in request classes for improved validation feedback.
2026-06-12 22:48:23 +07:00
Yoga Pangestu
1d1f0e7941
Add activity logging features by integrating Spatie's laravel-activitylog package. Update Permission and Role enums to include activity log permissions. Implement activity logging in Login and Logout controllers. Enhance sidebar navigation to include activity logs section. Update models to interact with activity logs through InteractsWithActivityLog concern.
2026-06-12 11:10:36 +07:00
Yoga Pangestu
ec8b49be05
Add cutting management features including Cutting, CuttingMaterial, and CuttingResult models. Implement CuttingController for CRUD operations and request validation. Introduce CuttingStatus enum for status management and enhance sidebar navigation for cuttings. Integrate UI components for creating, editing, and listing cuttings, along with permissions in the Permission and Role enums.
2026-06-12 10:56:50 +07:00
Yoga Pangestu
f8322566da
Add media management features across various models and services. Implement media handling in Product, RawMaterial, Attendance, CashTransaction, EmployeeAdvance, and Expense models. Introduce ValidatesMediaUploads trait for consistent media validation in requests. Enhance services to support media synchronization and retrieval, improving user experience with image uploads and management.
2026-06-11 19:32:33 +07:00
Yoga Pangestu
887b811cee
Refactor admin controllers for categories, products, and raw materials. Introduce new Master namespace for CategoryController, ProductController, and RawMaterialController, enhancing organization and maintainability. Migrate existing logic to dedicated service classes for improved separation of concerns and code clarity. Remove outdated controllers to streamline the codebase.
2026-06-10 15:02:14 +07:00
Yoga Pangestu
9e3325c16a
Add raw materials management features including permissions in the Permission and Role enums, routes for CRUD operations in RawMaterialController, and UI updates in the sidebar for raw materials navigation. Enhance the application structure to support raw materials alongside existing product and category management.
2026-06-10 14:00:29 +07:00