Commit Graph

246 Commits

Author SHA1 Message Date
Yoga Pangestu
4027363729 feat: enhance analysis functionality with new revenue metrics
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
- Added methods to AnalysisService for retrieving monthly revenue by channel and revenue by payment type.
- Updated AnalysisController to include new metrics in the index response.
- Enhanced Analysis.vue to visualize revenue data by channel and payment type with appropriate charts and tooltips.
2026-07-29 09:36:22 +07:00
Yoga Pangestu
1f9aba6ba5 feat: enhance order management with additional filters and pagination support
- Added channel, status, and payment type filters to the order index functionality.
- Updated OrderService to handle new filter parameters in pagination queries.
- Introduced filter definitions and values in the OrderGroupedTable component for improved data filtering.
- Enhanced the frontend to support dynamic filtering options for orders based on the new criteria.
2026-07-29 08:59:56 +07:00
Yoga Pangestu
d316266da7 fix: handle missing product variants gracefully in applyPayloadToProduct method
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-28 15:38:40 +07:00
Yoga Pangestu
1d5863efaf feat: integrate activity log functionality in ProductPrice model and enhance change formatting in ActivityLogService
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-27 23:00:22 +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
afdd0905db feat: add status field to product variant form and ensure it defaults to 'active' 2026-07-27 21:40:03 +07:00
Yoga Pangestu
562c5721dd feat: add checkVariantUsage endpoint and implement price usage validation in RawMaterial management 2026-07-27 19:02:54 +07:00
Yoga Pangestu
3c264dc706 feat: add Restock model import in OwnerVerificationService
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
2026-07-26 10:32:28 +07:00
Yoga Pangestu
bca6da8653 feat: implement raw material deletion validation to prevent deletion if used in active cutting
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-24 23:31:08 +07:00
Yoga Pangestu
78f422b1cf feat: enhance purchase management by adding photo and S3 key support in requests and services
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-24 22:48:26 +07:00
Yoga Pangestu
57040f1875 feat: add logging for validation errors in CuttingRequest and CuttingService
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-24 13:32:28 +07:00
Yoga Pangestu
6c47be8821 fix: set default value for reject_stock in product variant updates
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
2026-07-21 11:26:36 +07:00
Yoga Pangestu
ee08188190 Add reject_stock input to product CRUD form
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
- Add reject_stock field alongside stock (renamed to 'Stok Bagus') and retail_stock ('Stok Ecer')
- Update TypeScript types (ProductVariantFormItem, ProductFormInitialData)
- Update ProductVariantSection, ProductVariantEditModal, and ProductForm with new field
- Add validation rule and attribute label for reject_stock
- Update ProductService to persist reject_stock in create, update, and apply flows
2026-07-21 10:56:28 +07:00
Yoga Pangestu
ee9bff3043 feat: replace OwnerVerificationService with PushNotificationService and update notification logic in SettingController and MarketplaceService
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-20 23:02:28 +07:00
Yoga Pangestu
f82b56d540 fix: update product name reference in RowShareAction component and clean up imports
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-19 20:20:55 +07:00
Yoga Pangestu
0070d0c49e feat: add updateCombinationResult method to CuttingDraftItemController and corresponding route 2026-07-19 20:05:08 +07:00
Yoga Pangestu
fc9a8b1f0e fix: update error keys in CuttingService, ProductService, and RawMaterialService to use 's3_keys' instead of 'images'
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-19 19:06:58 +07:00
Yoga Pangestu
70531b443d feat: enhance pagination query in PurchaseService to support search functionality
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-19 18:29:03 +07:00
Yoga Pangestu
1db67a9a07 feat: update raw material status management to use status enum instead of is_active 2026-07-19 18:17:49 +07:00
Yoga Pangestu
03ea092d39 feat: add product ID filter to product index page and update pagination logic 2026-07-19 17:38:46 +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
b3184de155 feat: enhance attendance retrieval by filtering roles based on view permissions
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-16 15:10:06 +07:00
Yoga Pangestu
5d11741f1d feat: enhance attendance retrieval by filtering employees based on roles with attendance view permissions
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-16 15:05:56 +07:00
Yoga Pangestu
735b7fa9ed feat: update attendance and cash overview methods to support date range filtering for improved analysis 2026-07-16 13:28:36 +07:00
Yoga Pangestu
b3f59708a6 refactor: remove 'direktur' role from push notifications in multiple services for clarity 2026-07-16 12:33:28 +07:00
Yoga Pangestu
a29e6af430 refactor: remove unnecessary clearMediaCollection calls in various services to improve performance
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-16 11:38:04 +07:00
Yoga Pangestu
ba01039b41 feat: clear cache for assignable roles and permissions in various services to ensure data consistency 2026-07-16 11:23:32 +07:00
Yoga Pangestu
ef90f8361f feat: clear cache for default account after cash transactions to ensure data consistency 2026-07-16 11:15:40 +07:00
Yoga Pangestu
c16cfac861 feat: enhance stock filtering in paginateForIndex method to improve inventory management 2026-07-16 11:06:24 +07:00
Yoga Pangestu
bb17bf6ad4 Refactor HomepageService to remove caching and simplify pageData method; disable SSR in Inertia config; improve service worker registration in app.ts; fix URL parameters in Analysis.vue router call. 2026-07-16 10:38:28 +07:00
Yoga Pangestu
2e578cd976 refactor: streamline raw material update process by consolidating price handling into payload application, improving code clarity and maintainability
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
2026-07-15 04:01:10 +07:00
Yoga Pangestu
0489badf03 feat: update services and controllers to include user information in transaction notifications for improved clarity
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-14 21:41:39 +07:00
Yoga Pangestu
08d3982aa5 feat: enhance employee pagination by incorporating user role checks for improved access control 2026-07-14 21:30:15 +07:00
Yoga Pangestu
2ae41c2f83 fix: correct notification message formatting for marketplace settings verification
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-14 19:26:59 +07:00
Yoga Pangestu
245d636cd4 feat: enhance employee management by adding notification support for create, update, delete, and status toggle actions 2026-07-14 19:22:27 +07:00
Yoga Pangestu
9da452d505 feat: update notification messages to include user's full name for better clarity in purchase and restock requests
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-14 13:42:03 +07:00
Yoga Pangestu
0cd6612d95 fix: update notification messages to use user's full name instead of username for better clarity
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-14 13:31:37 +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
26a10071b2 feat: update system settings to include media items for logo, favicon, and login cover, enhancing data handling in forms and validation 2026-07-13 13:04:45 +07:00
Yoga Pangestu
e431cbb54b refactor: simplify raw material creation, update, and deletion processes by removing owner verification checks and enhancing user feedback 2026-07-13 11:57:59 +07:00
Yoga Pangestu
3c5389e541 feat: add search functionality by ID for purchases, products, and raw materials, enhancing data retrieval in index views 2026-07-10 11:47:10 +07:00
Yoga Pangestu
b87203d6ab feat: implement permission-based messaging for purchase and stock verification actions, enhancing user feedback based on roles 2026-07-10 11:26:06 +07:00
Yoga Pangestu
fa4f6d4737 feat: enhance raw material stock filtering in index view, adding tests for low stock and out of stock scenarios 2026-07-10 11:15:26 +07:00
Yoga Pangestu
b93a200284 refactor: remove quick-create raw material functionality and associated request, streamlining the CuttingDraftItemController and related components 2026-07-09 15:22:12 +07:00
Yoga Pangestu
a3954faab6 feat: add functionality to create new raw materials and store them in the purchase draft, enhancing the purchasing process 2026-07-09 14:54:23 +07:00
Yoga Pangestu
897d9c62b7 feat: enhance ProductController and ProductService to support owner verification permissions; add ProductVariantEditModal for editing product variants and implement JSON response for product details 2026-07-08 16:09:57 +07:00
Yoga Pangestu
8c3847ade3 feat: enhance RawMaterialController and RawMaterialService to support owner verification permissions; add RawMaterialVariantEditModal for editing price variants and implement JSON response for raw material details
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-08 15:48:38 +07:00
Yoga Pangestu
1c4f82529c feat: enhance stock formatting methods in Product and RawMaterial models to handle unloaded relations gracefully
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-08 13:11:19 +07:00
Yoga Pangestu
e4318fd244 feat: add push notification for new variant addition in PurchaseService to enhance user awareness 2026-07-07 23:55:18 +07:00