cuma buat liat change - #448
Open
HugoYaw22 wants to merge 398 commits into
Open
Conversation
…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.
- Format constructor and string concatenations for consistency - Adjust foreign key definitions with explicit constraint names - Remove unused `amount_due` column from `sales` table migration - Add spacing in migrations for better readability
- Prefix columns with `customer_groups` table name to avoid ambiguity in joined queries
…validation, clean routes, and update tests - Fixed incorrect `is_active` assignment in CashAccountActions (was using `remarks` value). - Updated `read` method to use `load()` instead of `with()->first()`. - Added `branch_id` validation in `CashAccountRequest` with `IsValidBranch` rule. - Decoded `branch_id` in `prepareForValidation` for store requests. - Adjusted search scopes in CashAccount and Investor models to use fully qualified column names. - Removed redundant nested `cash_account` route groups for cleaner API routes. - Deleted obsolete `NonCapitalWithdrawalCategoryController`. - Updated feature and unit tests to: - Include `branch_id` in create/read scenarios. - Replace old `capital_account.cash_account` route names with new `cash_account` routes. - Add tests for negative `page` and `perPage` parameters in `readAny`.
…e models - Added new validation attributes for 'date', 'investor_id', 'cash_account_id', and 'amount' in CapitalAdditionRequest and NonCapitalAdditionRequest. - Updated search queries in models to include table names for clarity and prevent ambiguity. - Enhanced search functionality in CapitalAddition, CapitalWithdrawal, Company, CustomerAddress, Employee, NonCapitalAddition, NonCapitalWithdrawal, Product, ProductCategory, ProductUnit, Purchase, PurchaseAdditionalCost, PurchaseOrder, Sale, and others to include additional fields like 'date' and 'remarks'. - Removed unused NonCapitalWithdrawalCategory model and added a new one with the same name, ensuring it follows the correct structure and includes necessary relationships and search functionality. - Adjusted factory for CapitalAddition to generate a more realistic 'amount' value. - Updated CapitalAdditionAPICreateTest to simplify the creation of test data.
Enhance validation attributes and search functionality across multipl…
- Updated CashAccount API tests to ensure that branch_id is included in create, read, update, and delete operations. - Adjusted test data generation to associate cash accounts with branches, enhancing the accuracy of test cases. - Replaced deprecated route names with the new structure for cash account operations.
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
Extend journal entry data interfaces with new metadata fields including journal_type, source_type, source_id, account_type and normal_balance. Add translation entries for journal remarks in English and Indonesian language files. Restructure filter controls for better responsive layout, update the list view to display additional journal and account context, add helper functions for text formatting, and adjust amount cell styling for consistent visual design.
…se orders, invoices, and returns
… to entity relationship diagram
…s return services - Created SalesInvoicePaymentRequest.ts for handling payment requests related to sales invoices. - Added SalesInvoiceRequest.ts to manage sales invoice data and operations. - Introduced SalesOrderDeliveryRequest.ts for managing sales order delivery requests. - Implemented SalesOrderItemRequest.ts for handling sales order item requests. - Added SalesOrderPaymentRefundRequest.ts for managing payment refund requests related to sales orders. - Created SalesOrderPaymentRequest.ts for handling payment requests related to sales orders. - Introduced SalesOrderRequest.ts for managing sales order data and operations. - Added SalesReturnRequest.ts for handling sales return requests and related operations.
…ed routes - Added a mechanism to load Ziggy route configuration from sessionStorage. - Introduced a pending request to avoid multiple fetches for the Ziggy route list. - Updated router to check if the route is public before ensuring Ziggy is loaded. fix(index.html): update script reference to new asset version
- Updated the handling of purchase order changes in PurchaseInvoiceCreate.vue and PurchaseInvoiceEdit.vue to ensure validation and error handling for 'purchase_order_id'. - Enhanced the handling of purchase receipt changes in PurchaseReceiptCreate.vue and PurchaseReceiptEdit.vue with similar validation improvements. - Improved the handling of purchase return changes in PurchaseReturnCreate.vue and PurchaseReturnEdit.vue to validate 'purchase_invoice_id' correctly. - Refined sales order handling in SalesOrderDeliveryCreate.vue and SalesOrderDeliveryEdit.vue to ensure proper validation for 'sales_order_id'. - Enhanced sales invoice handling in SalesInvoiceCreate.vue and SalesInvoiceEdit.vue to validate 'sales_order_id' and manage customer and branch errors. - Updated sales return handling in SalesReturnCreate.vue and SalesReturnEdit.vue to validate 'sales_invoice_id' and manage customer and branch errors. - Added base_product_unit to Product model to handle cases where the API returns this data. - Updated index.html to reference the new JavaScript asset index-B3IDifDH.js.
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.