Commit Graph

351 Commits

Author SHA1 Message Date
Yoga Pangestu
2a0b99c599 feat: implement invoice management features including index, create, update, delete, and print functionalities
- Added InvoiceIndex component for displaying a list of invoices with pagination and search capabilities.
- Created InvoiceShareButton component for sharing invoice details via WhatsApp.
- Developed InvoicePrint component for printing invoice details.
- Defined routes for invoice management including share and print functionalities.
- Implemented InvoiceTest to cover authentication, authorization, and CRUD operations for invoices.
2026-08-22 15:13:28 +07:00
Yoga Pangestu
f562f2babe Refactor SupplierTest to use permission setup function and enhance phone number validation tests
- Introduced `giveSupplierPermissions` function to streamline user permission setup for supplier tests.
- Updated all supplier-related tests to utilize the new permission setup function.
- Enhanced phone number validation tests to accept various formats and special characters.
- Removed redundant tests related to unsupported phone number formats.
- Consolidated tests for supplier creation and updates to improve readability and maintainability.
2026-08-22 13:46:22 +07:00
Yoga Pangestu
7aa802445a feat: add testing environment configuration and update phpunit settings for MySQL 2026-08-20 22:25:11 +07:00
Yoga Pangestu
6539d7dd2d feat: add variant preview functionality with modal for image display in cutting and purchase management 2026-08-20 21:51:38 +07:00
Yoga Pangestu
fbca04bce6 refactor: streamline toast message handling by chaining return statements 2026-08-20 21:01:11 +07:00
Yoga Pangestu
cc112ef253 feat: refactor combo selection to use structured item objects for improved clarity and functionality 2026-08-20 20:40:29 +07:00
Yoga Pangestu
06b9c91948 feat: enhance getVariants method to support multiple media URLs and conversions for product variants 2026-08-20 18:55:13 +07:00
Yoga Pangestu
9cca0427c8 feat: simplify media handling in getVariants method and enhance price mapping for product variants 2026-08-20 11:28:28 +07:00
Yoga Pangestu
f128ace2ea feat: update purchase management to support decimal quantities and improve data handling 2026-08-20 11:12:38 +07:00
Yoga Pangestu
b85bbb1ba4 feat: enhance purchase and restock management with variant support
- Added existing_material_ids to PurchaseForEdit and RestockForEdit types.
- Introduced RawMaterialVariant and ProductVariantForRestock types for better variant handling.
- Updated PurchaseCreate and PurchaseEdit components to fetch and display raw material variants.
- Enhanced RestockCreate and RestockEdit components to manage product variants dynamically.
- Modified TransactionCreate and TransactionEdit components to support product variants.
- Added routes for fetching active products and raw materials.
2026-08-20 10:48:24 +07:00
Yoga Pangestu
051851b90a feat: enhance media URL generation in getForEdit method to support thumbnail conversion 2026-08-20 09:52:33 +07:00
Yoga Pangestu
9fead3dfa9 feat: update cash overview to use cash account balance and add description for clarity 2026-08-19 20:19:09 +07:00
Yoga Pangestu
cd944403bd feat: add materials count and enhance purchase item display in purchase management 2026-08-19 18:46:21 +07:00
Yoga Pangestu
631330d3b4 feat: refactor PurchaseEdit component to streamline material selection and quantity handling 2026-08-19 18:34:52 +07:00
Yoga Pangestu
0908576ef2 feat: implement FixRawMaterialMediaKeys to correct S3 keys and create media records for RawMaterialPrice 2026-08-19 01:09:52 +07:00
Yoga Pangestu
ad4c6d47df feat: add variant search functionality to transaction creation page 2026-08-18 14:38:21 +07:00
Yoga Pangestu
e4b49c7ff8 feat: update card titles in analysis component for clarity and consistency 2026-08-18 14:26:13 +07:00
Yoga Pangestu
db656ee9dd feat: enhance search functionality by adding filters for shopee_order_id and tiktok_order_id in paginated method 2026-08-18 14:11:32 +07:00
Yoga Pangestu
4d94fbe7c6 feat: enhance form history logging by restructuring attribute changes and improving data handling in LogsFormHistory and related components 2026-08-17 23:27:24 +07:00
Yoga Pangestu
3e715518fb feat: implement product logging for status changes and updates in ProductService and ProductVariantService 2026-08-17 23:01:00 +07:00
Yoga Pangestu
42f7214efa feat: add monthly retail revenue calculation and display in analysis component 2026-08-17 22:50:20 +07:00
Yoga Pangestu
a301e96f33 feat: display percentage of net revenue in analysis component when total revenue is greater than zero 2026-08-17 22:42:32 +07:00
Yoga Pangestu
f32544ccce feat: add new transaction type and update cash transaction handling in TransactionService 2026-08-17 22:42:11 +07:00
Yoga Pangestu
1f47ec1939 feat: update layout for cutting create and edit components to improve responsiveness and overflow handling 2026-08-17 22:26:52 +07:00
Yoga Pangestu
910e6b97b6 feat: remove leave_requests permissions from RolePermissionSeeder 2026-08-16 23:01:34 +07:00
Yoga Pangestu
dd92f079c5 feat: add 'delete' permission for raw materials in RolePermissionSeeder 2026-08-16 22:17:16 +07:00
Yoga Pangestu
d5f90a597f feat: update migration to modify ENUM columns and ensure 'reject' is retained during updates 2026-08-16 21:19:29 +07:00
Yoga Pangestu
099a342a20 feat: update migration to modify enum columns and rename 'reject' to 'reject_selling' in product_prices and orders 2026-08-16 21:14:35 +07:00
Yoga Pangestu
99cd75120f feat: update layout for purchase and transaction components to improve readability of price display 2026-08-16 20:56:14 +07:00
Yoga Pangestu
919e8228d2 feat: implement form history logging for CRUD operations and add activity log management interface 2026-08-16 20:41:48 +07:00
Yoga Pangestu
581761398f feat: enhance product title display by including product name alongside variant name in transaction and stok opname components 2026-08-16 20:20:01 +07:00
Yoga Pangestu
aaa85a45ed feat: remove unused myAttendance data and related UI components from analysis page 2026-08-16 20:04:24 +07:00
Yoga Pangestu
097b7f7192 feat: add cashier role checks to filter data in analysis and dashboard services 2026-08-16 20:00:17 +07:00
Yoga Pangestu
05707aad7d feat: add stok opname management functionality
- Implemented StokOpnameEdit component for editing stock opname entries.
- Created StokOpnameIndex component for listing and managing stock opnames.
- Added StokOpnameCardRow and StokOpnameItemSubRow components for displaying stock opname details.
- Introduced routes for stok opname CRUD operations and actions (submit, verify, reject, cancel).
- Integrated UI components for better user interaction and data presentation.
2026-08-16 19:38:36 +07:00
Yoga Pangestu
28f88bb69c feat: add revenue by stock type calculation and update analysis components 2026-08-16 18:06:05 +07:00
Yoga Pangestu
731c8aa6da feat: enhance transaction management by adding cashier role checks and updating price type logic 2026-08-16 16:20:51 +07:00
Yoga Pangestu
85ba5631b3 feat: simplify permission checks by removing redundant role conditions in useCan hook 2026-08-16 15:41:13 +07:00
Yoga Pangestu
953a395f24 feat: enhance variant deletion handling to update loaded variants on success 2026-08-16 15:32:25 +07:00
Yoga Pangestu
078d4e2461 feat: remove product price deletion logic in update and destroy methods of ProductService and ProductVariantService 2026-08-16 15:31:28 +07:00
Yoga Pangestu
b0cb117e60 feat: update button visibility logic to check variant length in ProductCreate and ProductEdit components 2026-08-16 15:20:38 +07:00
Yoga Pangestu
8ea9378c78 feat: update variant and price deletion logic to preserve media collections in ProductService and RawMaterialService 2026-08-16 15:17:32 +07:00
Yoga Pangestu
50ece97933 feat: add getForEdit method to RestockService for enhanced restock item retrieval and media handling 2026-08-16 15:13:34 +07:00
Yoga Pangestu
3535480266 feat: update photo conversion URL handling across services to check for generated conversions before retrieving URLs 2026-08-16 14:39:18 +07:00
Yoga Pangestu
0998c81803 feat: split 'reject' price type into 'reject_capital' and 'reject_selling', update related components and database migration 2026-08-16 14:27:19 +07:00
Yoga Pangestu
0947cf3737 feat: add salary type to cash transaction enum and update related components 2026-08-16 14:26:55 +07:00
Yoga Pangestu
c415493ee1 feat: implement push notification subscription handling and improve service worker configuration 2026-08-16 13:42:37 +07:00
Yoga Pangestu
cc3cd03e41 feat: enhance raw material management by adding validation for updates and deletions, and improve error handling in the UI 2026-08-15 22:40:36 +07:00
Yoga Pangestu
6fa9224983 feat: fix raw material photo display in Cutting and Purchase pages by adding conversion URLs 2026-08-15 20:30:04 +07:00
Yoga Pangestu
ef136bd1e7 feat: add total price calculations for raw materials and products in analysis components 2026-08-15 20:16:49 +07:00
Yoga Pangestu
25a316ccf0 feat: add negotiation price to marketing sales calculations and update header label for discounts 2026-08-15 20:03:08 +07:00