Commit Graph

74 Commits

Author SHA1 Message Date
Yoga Pangestu
636508c5c0 feat: enhance stock calculations by loading all variants and prices in product and raw material 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-30 11:42:52 +07:00
Yoga Pangestu
9089b32d7b refactor: streamline variant and price loading in product-related 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
- 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
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
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
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
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
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
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
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
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
c16cfac861 feat: enhance stock filtering in paginateForIndex method to improve inventory management 2026-07-16 11:06:24 +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
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
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
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
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
1c7fc17531 feat: enhance search functionality in RawMaterialService for improved filtering of raw materials
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-07 10:48:01 +07:00
Yoga Pangestu
dc594c9daa feat: enhance raw material filtering and selection in RawMaterialController and related components for improved data 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-07 10:37:13 +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
9d0075d7b2 feat: implement transaction management in RawMaterialService for create, update, delete, and toggle status operations; refactor error handling for improved clarity; enhance tests for raw material and price models to ensure proper functionality and validation 2026-07-04 17:32:06 +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
d02af40836 feat: implement presigned upload functionality for S3 in PresignedUploadController; update media upload handling across various components to support S3 keys and improve user experience
Some checks failed
linter / quality (push) Waiting to run
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-02 14:28:51 +07:00
Yoga Pangestu
15f2f0e1d0 feat: add marketing sales analysis feature; enhance AnalysisService to retrieve marketing sales data and update Analysis.vue to display marketing sales table with relevant metrics 2026-07-02 13:11:18 +07:00
Yoga Pangestu
47289d158e feat: update ProductRequest and related components to conditionally handle price fields based on user roles; enhance form behavior for better variant price management 2026-07-02 10:44:47 +07:00
Yoga Pangestu
4a647cb3e6 feat: enhance product variant management by adding price fields and functionality for copying, pasting, and applying prices across variants 2026-07-01 17:28:31 +07:00
Yoga Pangestu
8eee3b04ce refactor: remove mandatory image validation for product variants and improve error handling in owner verification actions 2026-07-01 11:50:39 +07:00
Yoga Pangestu
86ee45c1fb feat: implement owner verification detail modal with data fetching and display functionality 2026-06-30 17:42:48 +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
aeb7d1f292 feat: enhance cutting status management by adding verified status transition and refining user permissions for verification actions 2026-06-28 22:02:21 +07:00
Yoga Pangestu
ce553f9aed refactor: remove unused inventory stock warning components and service logic 2026-06-28 18:11:26 +07:00
Yoga Pangestu
62e6995191 feat: improve owner verification notifications by adding search parameters to index routes and updating product variant UI layout. 2026-06-28 17:56:50 +07:00
Yoga Pangestu
16fe9a3d9f refactor: remove redundant blank lines across all services and update dashboard imports 2026-06-28 17:33:46 +07:00
Yoga Pangestu
816c2a0e2a feat: overhaul POS management workflows including enhanced purchase, order, cutting, and stock-opname forms with updated master data handling. 2026-06-28 17:33:13 +07:00
Yoga Pangestu
b3790f2b2f feat: enhance service and controller logic for Cutting and Order management, implement best practices for method handling, and improve pagination defaults 2026-06-28 16:23:57 +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
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
1f27acc63a refactor: remove owner verification index functionality and related components, streamline approval and rejection processes 2026-06-27 21:51:48 +07:00
Yoga Pangestu
5cffe43a07 feat: implement owner verification actions in various management tables and enhance request handling in the OwnerVerificationRowActions component 2026-06-27 15:11:20 +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
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