Commit Graph

18 Commits

Author SHA1 Message Date
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
42f7214efa feat: add monthly retail revenue calculation and display in analysis component 2026-08-17 22:50:20 +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
28f88bb69c feat: add revenue by stock type calculation and update analysis components 2026-08-16 18:06:05 +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
Yoga Pangestu
b954e3cb84 refactor: update AnalysisService and index.tsx to streamline stock calculations and remove unused values 2026-08-14 06:07:47 +07:00
Yoga Pangestu
ae1cc7b9a9 feat: enhance expense summary and monthly expense calculations with user role-based purchase visibility 2026-08-14 04:21:26 +07:00
Yoga Pangestu
0aae00a96b feat: enhance revenue analysis by adding payroll and expense calculations 2026-08-14 00:32:37 +07:00
Yoga Pangestu
95df2e9dc7 feat: optimize cash overview calculations for total balance, deposits, and withdrawals 2026-08-13 21:20:53 +07:00
Yoga Pangestu
8053ea2db4 feat: Enhance leave request and transaction management with user-specific data
- Added current user ID to leave request index for better context.
- Updated transaction management to include user-specific filters and summaries.
- Enhanced analysis service methods to incorporate user context for attendance and revenue metrics.
- Modified dashboard service to reflect user-specific attendance and financial summaries.
- Implemented role-based access control in leave request service for update and delete actions.
- Adjusted frontend components to utilize user-specific data for leave requests and transactions.
- Removed unused permissions from role seeder for cleaner access control.
2026-08-13 21:08:39 +07:00
Yoga Pangestu
b905c0a2c6 feat: update EmployeeAdvance status values and related logic, modify notifications accordingly 2026-08-13 17:36:55 +07:00
Yoga Pangestu
a3c642e173 refactor: standardize spacing in lambda functions and SQL queries across services 2026-08-12 20:17:09 +07:00
Yoga Pangestu
27beb38e55 feat: add revenue trend analysis feature with chart visualization in Analysis component 2026-08-09 16:45:53 +07:00
Yoga Pangestu
0cce4ee73d feat: enhance StatCard component with description prop and update chart tooltips for better localization
- Added optional description prop to StatCard for additional context.
- Updated ChartTooltipContent to format numbers according to Indonesian locale.
- Refactored revenue and expense charts in the Analysis page to use new chart configurations and improved tooltip content.
- Introduced DashboardPieChart component for displaying order statistics by channel, payment type, marketing, and status.
- Adjusted revenue summary calculations in the Dashboard page to reflect changes in data structure.
2026-08-09 16:30:16 +07:00
Yoga Pangestu
0023309a8f Refactor services to improve role checks and streamline data retrieval
- Updated CustomerService to simplify getAll method.
- Refactored ProductService to utilize HasRoleChecks trait and improved role verification logic.
- Enhanced ProductVariantService with new methods for fetching data for restocking and transactions.
- Cleaned up RawMaterialService by removing unused methods and improving data retrieval.
- Adjusted SupplierService to streamline getAll method.
- Refactored RoleService to use Spatie's Role model and improved role filtering logic.
- Updated NotificationService to handle role labels more effectively.
- Improved StockMutationService by removing redundant paginated method.
- Cleaned up various frontend components to directly accept necessary props instead of nested data objects.
- Updated tests to reflect changes in service method names and ensure proper notification handling.
2026-08-09 11:33:25 +07:00
Yoga Pangestu
6627422655 feat: enhance analysis page with additional revenue metrics and improve data handling 2026-08-08 13:40:18 +07:00
Yoga Pangestu
c6a87a64c9 feat: enhance dashboard with detailed statistics and charts
- Refactored the dashboard component to include attendance, revenue, and expense summaries.
- Added donut charts for order statistics by channel, payment type, marketing, and status.
- Implemented a greeting message based on the current time and user information.
- Updated routing to use DashboardController for the dashboard view.
- Introduced a new AnalysisController for future analysis features.
2026-08-07 08:35:01 +07:00