Commit Graph

337 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
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
1a2b741209 feat: update ProductRequest to require images only when product is new; enhance removeItem function to allow forced removal; add sync-quantity-input event to PurchasePosCartSummaryItems; implement material search functionality in PurchasePosForm; add disabled prop to RawMaterialInfoSection; integrate variant selection in RawMaterialVariantSection 2026-07-27 21:29:55 +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
399b444b54 feat: remove RAW_MATERIALS_DELETE permission from permissions method 2026-07-27 18:39:21 +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
562a2cf38f feat: update activity log permissions and enhance column creation for changes display 2026-07-25 23:31:24 +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
0f5bf66320 feat: enhance Open Graph meta tags in app layout for better sharing experience 2026-07-20 22:50:05 +07:00
Yoga Pangestu
1e8fd5b595 feat: enhance permissions and layout in Analysis component for better role-based display
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 22:35:10 +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
15453779e0 feat: add employee management permissions for viewing, creating, updating, toggling status, and deleting employees 2026-07-14 21:15:01 +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
9b20d26a4e refactor: remove PWA manifest file and update related configurations, improving project structure and icon handling in the PwaManifestController
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-13 19:55:35 +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
c8344f27cb feat: enhance product and raw material request validation by adding imagesRequired parameter, improving image handling based on request method 2026-07-13 12:47:35 +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
bb74fb49c8 feat: require s3_keys for product and raw material variants, enhancing validation and user feedback in forms 2026-07-13 11:28:48 +07:00
Yoga Pangestu
5c1f92e48b feat: add PWA support by updating manifest link and adding apple-touch-icon, enhancing mobile experience
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-12 14:34:51 +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