cuma buat liat change#448
Open
HugoYaw22 wants to merge 390 commits into
Open
Conversation
- Implement tests for creating, reading, updating, and deleting purchase order down payments. - Ensure proper authorization checks and validation for API endpoints. - Include tests for handling script tags and SQL injection attempts in payloads. - Validate unique constraints for codes within the same company. - Test pagination and search functionality in reading down payments.
…onstructor syntax
…g; add supplier seeder functionality in AppSeed and SupplierFactory
…, rounding types, and record statuses
…ller, CustomerGroupRequest, and related files
…del with company reference
Removes old seeder files and updates references to use new seeder naming conventions. Simplifies the database seeding process and improves consistency by aligning with Laravel standards.
Eliminates a redundant seeder to streamline database setup and reduce maintenance overhead. No longer needed for test data generation or application setup.
Replaces all instances of rounding-related field names to use 'rounding_type' and 'rounding_digit' instead of 'round_on' and 'round_digit' across backend, frontend, validation, migrations, and localization. Improves code clarity and data model consistency.
- Standardize seeder method names from `run*TableSeeder` to `run*Seeder` - Adjust interactive seeder calls accordingly - Fix `CustomerGroupRequest` to use route parameter for validation rule - Remove unused `id` merge in `prepareForValidation` - Replace `UnitType` with `UnitTypeEnum` in `Unit` model and factory - Improve `CustomerGroupFactory` name generation list
…mployee model - Change employee code prefix from WH to EMP - Use whenLoaded() for company in EmployeeResource - Add user relation and new fields (user_id, join_date, status, remarks) to Employee model - Add employees relation to User model - Update employees migration to include remarks - Simplify AppSeed seeder calls formatting
…luding service and model updates
- Updated API routes in StockTransferProductUnitAPICreateTest, StockTransferProductUnitAPIDeleteTest, StockTransferProductUnitAPIEditTest, StockTransferProductUnitAPIReadTest, StockTransferProductUnitSerialAPICreateTest, StockTransferProductUnitSerialAPIDeleteTest, StockTransferProductUnitSerialAPIEditTest, and StockTransferProductUnitSerialAPIReadTest to use the new route structure for stock transfer product units. - Added a new validation rule `IsValidUnit` to ensure that the unit being validated exists within the authenticated user's product units.
…ance serial validation - Add purchase and purchase receipt permissions to laratrust seeder - Replace purchase_item_id with has_purchase_item_product flag in purchase receipt items - Add is_paid_off filter to purchase listings - Implement duplicate serial validation for purchase and purchase receipt items - Update purchase receipt summary to track items by product instead of purchase item - Remove direct purchase mode flag from purchase receipt forms - Fix purchase receipt policy to use correct permission names
- Add progress status fields to Purchase and PurchaseOrder models - Remove direct purchase order item linking from purchase items - Add calculated quantity tracking for purchase order items - Implement progress status filtering for purchase orders - Add progress status badge display in UI - Update validation rules to remove purchase order item requirement - Add progress status enum and API endpoint for status options
- Link purchase receipt items to stock transactions via morphOne relation - Add DTO methods for stock transaction creation/update from purchase receipt items - Implement duplicate product validation across purchase orders, purchases, and purchase receipts - Update purchase order summary when related purchases are created, updated, or deleted - Add authorization check for purchase order progress statuses endpoint
- Split purchase receipt item DTOs into separate classes for direct and manual modes - Add direct receipt code field to direct purchase DTO and validation - Remove additional cost field from purchase DTOs and requests - Add product_id column to purchase order items, purchase items, and purchase receipt items tables - Update relationships and queries to use product_id instead of joining through product_units - Add validation rules for item and serial references in purchase receipt updates - Add purchase item relationship to purchase receipt items for direct purchases - Update purchase order summary logic to track items by product_id - Add validation for direct receipt code uniqueness in direct purchases - Update purchase item deletion to handle associated direct receipt items
- Create ChartOfAccount model, migration, enum, policy, resource, and requests - Add default chart of accounts configuration and initialization service - Implement chart of accounts CRUD endpoints and frontend routes - Add menu translations and dashboard integration for chart of accounts - Include frontend types, services, and Vue components for tree view management
Introduce new journal entry feature including models, migrations, controllers, policies, and frontend components. The module supports creating, reading, updating, and deleting journal entries with validation for balanced debit/credit amounts. Includes localization in English and Indonesian, menu integration, and comprehensive API endpoints. - Add JournalEntry and JournalEntryLine models with relationships - Create database migrations for journal entries and lines tables - Implement CRUD operations with validation rules and policies - Add frontend Vue components for list, create, and edit views - Include localization files for both English and Indonesian - Integrate into dashboard menu and routing structure - Add service layer and TypeScript interfaces - Implement proper error handling and caching mechanisms
Clear alert placeholders before navigation to prevent stale alert messages from appearing on list pages after successful create/edit operations across multiple modules.
…ntry detail report - Introduce new ChartOfAccountNormalBalanceEnum for debit/credit validation - Implement ChartOfAccountSyncService for system account synchronization - Add journal entry detail report with filtering by date range - Automatically derive account_type from parent instead of manual input - Create DTOs (ChartOfAccountCreateDTO, WarehouseCreateDTO) for type-safe data transfer - Link investors and expense categories to chart of accounts via morph relationships - Update system account structure with new equity hierarchy (capital, earnings) - Move journal entry from master data to finance menu - Remove account_type field from frontend forms as it's now derived from parent - Add validation rules for parent account requirement - Update company initialization to use DTO pattern for warehouse creation
Replace direct array inputs to create and update methods across all resource action classes with properly typed DTOs. Replace array access syntax with object property access, and update property references from snake_case to camelCase to match DTO definitions. This improves type safety, code clarity, and maintainability.
add numerous strongly typed Data Transfer Object classes to standardize input data handling for all core CRUD operations across business modules including companies, branches, customers, suppliers, employees, financial accounts, payments, and inventory categories
Add new typed DTO classes for core business entities to enforce type safety and data structure Update HTTP controllers, database seeders, and unit tests to pass DTO instances instead of raw arrays to action classes Refactor test setup classes to use Laravel's service container for action class instantiation Clean up unused import statements in several test files
Replace the BootableModel trait across all core Eloquent models with inline booted methods. Add automatic ULID generation, audit user fields for all operations, and cross-company relation validation prior to saving records.
Move default data seeding logic from the AppInstall console command to the CompanyInitializationService. Add new methods to create default investors and stock adjustment categories during company initialization. Rename default warehouse and cash account names for clearer naming. Refactor DTO creation code for cash accounts and VAT profiles to improve readability.
This commit includes multiple new features and system refinements: - implement full Balance Sheet financial report with English and Indonesian localization - refactor journal entry handling to use strongly-typed JournalEntryLineDTO for improved type safety - add morphic ChartOfAccount relationships to core models (Customer, Supplier, CustomerGroup, CashAccount, Investor) with automatic COA management on CRUD - update sidebar and mobile menu dropdown logic to properly close sibling menus when opening a new one - refactor selected user location storage to use localStorage for cross-session persistence - add new system keys for cash and bank current asset accounts in ChartOfAccount configuration - update application menu structure to include Financial Statements category with Balance Sheet submenu - fix logout flow to clear stored user location data - add smooth transition animations to TreeList component for row interactions
Adds `journalEntry` morphOne relationships to all relevant Eloquent financial models, plus `chartOfAccount` relation to DebtCreditor. Introduces the new deferred income liability chart of account type and updates all transaction action classes to handle the full journal entry lifecycle: creating accurate debit/credit line items, updating existing entries, and cleaning up entries on deletion. Adds required validation for chart of account associations across all financial operations.
This commit renames all journal entry line entities to journal entry items across the entire app: - Replace the JournalEntryLine model, DTO, resource and database migration with their JournalEntryItem equivalents - Update the JournalEntry Eloquent relationship from `lines()` to `items()` - Refactor backend and frontend code, including controllers, requests, components and localization - Clean up deprecated line-related files Also add new system chart of account relationship methods to the Company model for common account types.
Add support for separating expense categories into operating and other expense types, with full backend and frontend implementation: - Create ExpenseCategoryTypeEnum for the two category values - Add category_type field to DTOs, validation rules, and API resources - Extend Company model with other expense root COA relationship - Update expense category logic to use correct parent chart of account based on type - Add frontend category type selector for forms without parent category - Seed default operating and other expense categories for new companies - Add translation strings for en/id locales - Add validation for required category type when no parent is set and type matching parent
- add `journal_type` column to journal entries table and adjust the unique source constraint to include journal type - create `JournalEntryTypeEnum` for standard transaction and closing entry categories - update all journal entry-related code (DTOs, requests, controllers, models, resources) to support typed entries, including enum casting for API responses - add `ChartOfAccountAccountTypeEnum` and `ChartOfAccountNormalBalanceEnum`, refactor chart of account configurations and models to use typed account types - remove hardcoded account type list in ChartOfAccountController and replace with enum validation - add system suspense chart of account and corresponding company relationship accessors - implement automatic generation of expense closing journal entries: current month earnings, month-end, month-to-year, and year-to-retained earnings, including full CRUD for these entries - add date range filter controls to frontend journal entry list and detail pages - update validation attribute translations for `journal_type` in English and Indonesian locales - fix dashboard financial statement submenu ordering - adjust journal entry list query ordering to sort by ID ascending after date
This commit adds all necessary components for asset category management, including database migration, backend API with CRUD operations and validation, frontend UI pages, multi-language translations, menu integration, and role-based permission controls.
Add complete end-to-end asset and asset unit management functionality including: - Backend implementations: models, migrations, DTOs, controllers, policies and API routes - Frontend components: pages, routes, services and type definitions - Multilingual translation strings for English and Indonesian locales - Updated menu navigation and role permissions in laratrust seeder Also adjust AssetCategory DTOs and validation rules to enforce non-null required fields for estimated useful life and remarks
add migrations for asset purchases, sales, and stock adjustments, including line items and serial tracking tables for each transaction type
This commit adds full asset management functionality including: - Serial number tracking for asset line items - Backend structures: models, DTOs, API resources and migrations - Frontend localization for en and id locales - Navigation menu entries and CRUD permissions for asset modules Also include a minor cleanup in PurchaseOrderActions to return models directly instead of using refresh
- Add new scoped validation rules for company, branch, and warehouse operations - Remove deprecated WarehouseStoreValidStatus and WarehouseUpdateValidStatus rules - Migrate inline validation and reset logic from controllers to appropriate classes - Clean up redundant duplicate validation checks across the codebase - Adjust action return statements to eliminate unnecessary model refreshes
…rations - Rename test input array variables from `$*Arr` to consistent `$payload` across all action test files - Add new unit tests for WarehouseActions (create, edit, delete, read) - Add new feature tests for unique name validation within same company for branches and warehouses - Fix duplicate database migration files for asset_units and assets tables - Update existing test cases to properly use DTOs and add default state reset tests for companies and branches
Correct the `default` field data type from string to bool in both CompanyCreateDTO and CompanyUpdateDTO. Refactor ExecutePaginationDTO to add input sanitization: clamp page and perPage values to positive integers, default to 1 and 10 respectively when null, and use modern explicit property declaration syntax. Fix warehouse test factory setup to explicitly associate models instead of using nested factory chaining, ensuring reliable test data creation.
- fix DataListFlex to handle null pagination with fallback values - refactor JournalEntryDetailList to use reusable DataListFlex component - update imports, event handlers and template for journal entry details page
- Add full backend and frontend implementation for the standalone journal entry item API, including request/response types, service classes, and controller logic - Correct the sequence parameter order in JournalEntryItemDTO across all transaction action classes - Restructure JournalEntry eager loading into separate list and detail load sets to optimize database queries - Update JournalEntry and JournalEntryItem type definitions and resource responses to use nested relations instead of flat IDs - Refactor frontend JournalEntryEdit and BalanceSheet components to work with updated data structures and new API endpoints - Add missing summary field group translation strings for English and Indonesian locales
add new JournalEntryItemReadAnyPaginateRequest type and readAnyPaginate service method update backend readAny action to join journal_entries table, simplify filters and reorder results update frontend JournalEntryDetailList to use paginated API, swap DataListFlex for DataList and add pagination support
Add translation strings for the new filter in English and Indonesian locales. Extend API request types and service layer to support the include_system_journals parameter. Add a UI toggle switch in the journal entry detail list to control filtering, with data refresh on toggle. Add backend validation and query logic to exclude system-generated closing and earnings journals when the filter is disabled. Enable system journals by default for the balance sheet list.
update four request files for capital transactions and cash transfers, replace generic date validation rule with custom IsValidDate rule and add required imports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.