Commit Graph

10 Commits

Author SHA1 Message Date
Yoga Pangestu
2a2cc0fb96 feat: add shipping cost field to purchase management, including validation, calculations, and UI updates for total cost 2026-06-19 19:19:50 +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
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
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
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
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