Commit Graph

19 Commits

Author SHA1 Message Date
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
Yoga Pangestu
1ff1e73cd7 feat: hide stock field and adjust layout in ProductForm during update mode 2026-06-14 13:27:41 +07:00
Yoga Pangestu
57c311eaa1 style: update form input placeholders with descriptive examples for improved UX 2026-06-14 02:17:27 +07:00
Yoga Pangestu
8609c68a6d refactor: reorder component imports and optimize code structure across UI forms and composables 2026-06-14 01:26:00 +07:00
Yoga Pangestu
15691a97c4 feat: implement NumberInput and DecimalInput components and reorganize form input imports 2026-06-13 15:00:22 +07:00
Yoga Pangestu
2fe83756a1 Update MasterOutOfStockCatalogSection component to apply padding to Card element for improved layout consistency. 2026-06-13 11:16:08 +07:00
Yoga Pangestu
521e8c5538 Implement stock warning functionality for products and raw materials. Add minStock method to RawMaterialUnit enum and ProductVariant model. Enhance ProductService and RawMaterialService with stockWarningGroups method to identify items below minimum stock levels. Update admin index pages to display stock warning groups in MasterOutOfStockCatalogSection component. 2026-06-13 00:24:05 +07:00
Yoga Pangestu
a473a6644d Refactor raw materials data structure to use enum for unit type. Update migration to define 'unit' as an enum based on RawMaterialUnit cases. Adjust TypeScript types in RawMaterialForm and raw-material.ts to reflect the new enum type for improved type safety and consistency across the application. 2026-06-13 00:16:01 +07:00
Yoga Pangestu
c757b3c9b2 Update dependencies and enhance out-of-stock product management. Upgrade @lucide/vue to version 1.18.0 in package.json and package-lock.json. Implement outOfStockGroups method in ProductService and RawMaterialService to retrieve out-of-stock items. Add MasterOutOfStockCatalogSection component for displaying out-of-stock products in the admin interface, and integrate it into the products and raw materials index pages. 2026-06-13 00:09:27 +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
dc335d4dab Refactor PurchasePosForm to replace MediaImageUpload with ImageUploadField for improved photo upload handling. Update form data structure to accommodate new photo logic and streamline code. Introduce MultipleImageUploadField for variant images in ProductForm and RawMaterialForm, enhancing user experience with better image management. 2026-06-12 16:50:44 +07:00
Yoga Pangestu
f5d562f8e8 Refactor CustomerFormModal and SupplierFormModal to utilize useFormDialog for improved form handling. Remove unnecessary watch statements to streamline code and enhance maintainability. 2026-06-12 16:30:39 +07:00
Yoga Pangestu
c734d18018 Refactor ExpenseFormModal and CategoryFormModal to utilize useFormDialog for improved form handling. Replace MediaImageUpload with ImageUploadField for photo uploads, enhancing user experience. Remove unused ImageUploadField component to streamline codebase. 2026-06-12 16:27:45 +07:00
Yoga Pangestu
09f35db9d8 Refactor form error handling in various components to utilize a centralized formErrors function. This change improves code consistency and readability by standardizing error message retrieval across LoginForm, CashTransactionFormModal, EmployeeAdvanceFormModal, ExpenseFormModal, and others. Update error handling in fields for better user feedback. 2026-06-12 16:00:03 +07:00
Yoga Pangestu
14719445d1 Update placeholder texts in CategoryFormModal and ProductForm components for better user guidance. Remove unused category text in ProductGroupedTable. Adjust MediaImageUpload descriptions to clarify thumbnail behavior. 2026-06-12 11:24:01 +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
426d7ed61c Add customer management features including Customer model, CustomerController for CRUD operations, and CustomerRequest for validation. Integrate permissions in the Permission and Role enums, and update routes for customer management. Enhance UI components for customer listing and management, including a data table and form modal. Update sidebar for customer navigation. 2026-06-10 15:49:03 +07:00
Yoga Pangestu
c21f71563f Add supplier management features including Supplier model, SupplierController for CRUD operations, and SupplierRequest for validation. Integrate permissions in the Permission and Role enums, and update routes for supplier management. Enhance UI components for supplier listing and management, including a data table and form modal. Update sidebar for supplier navigation. 2026-06-10 15:48:34 +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