cuma buat liat change - #448
Open
HugoYaw22 wants to merge 417 commits into
Open
Conversation
…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.
…stency - Changed "round_digit" to "rounding_digit" and "round_on" to "rounding_type" in English and Indonesian localization files for clarity and consistency in terminology.
… test setup
- Remove direct `branch_id` assignment in `CapitalAdditionActions::update`
- Update `CapitalAdditionRequest` to validate:
- `investor_id` against `company_id`
- `cash_account_id` against `branch_id`
- Add decoding for `company_id`, `branch_id`, `investor_id`, and `cash_account_id` in `prepareForValidation`
- Update `IsValidInvestor` and `IsValidCashAccount` rules to accept related entity IDs and validate accordingly
- Add `date` cast in `CapitalAddition` model
- Fix `OpenFilesCommand` to use `{Name}Seeder.php` naming
- Adjust feature and unit tests:
- Ensure related `Branch`, `CashAccount`, and `Investor` entities exist
- Include new required IDs in request payloads
- Update assertions for new required fields
…y model - Added `employees()` relationship to Company model. - Added `customerAddresses()` relationship to Company model. - Added `nonCapitalWithdrawals()` relationship to Company model. fix: Update Capital Withdrawal and Non-Capital Addition factories - Changed amount generation in CapitalWithdrawalFactory to use numberBetween(0, 1000) * 1000. - Updated NonCapitalAdditionFactory to use numberBetween(0, 1000000) for amount. fix: Correct foreign key references in capital additions migration - Updated branch_id reference from companies to branches. - Updated investor_id and cash_account_id references to point to investors and cash_accounts respectively. test: Enhance Capital Addition and Withdrawal actions tests - Updated tests to include branch and cash account creation. - Adjusted assertions to validate additional fields in the database. test: Update Customer actions tests to include customer group - Modified customer creation tests to associate with a customer group. - Enhanced assertions to validate additional customer fields. test: Update Customer Address actions tests - Added customer association in CustomerAddress creation tests. - Enhanced assertions to validate additional address fields. delete: Remove Non-Capital Withdrawal Category actions tests - Deleted tests related to Non-Capital Withdrawal Category actions as they are no longer needed.
- Updated validation rules in CapitalWithdrawalRequest and PurchaseOrderDownPaymentRequest to include company_id for investor_id and cash_account_id. - Removed NonCapitalWithdrawalCategory related classes and files, including resource, policy, and validation rules. - Implemented NonCapitalWithdrawalCategoryActions for managing non-capital withdrawal categories, including create, read, update, and delete functionalities. - Added NonCapitalWithdrawalCategoryResource for API responses. - Updated factories for NonCapitalWithdrawalCategory and related models. - Enhanced unit tests for Capital and Non-Capital Withdrawal actions to ensure proper handling of new fields (branch_id, investor_id, cash_account_id).
- Updated validation rules in CapitalAdditionRequest to include 'bail' for branch_id. - Added insertStringInName method in CapitalAdditionFactory to customize remarks. - Modified UserFactory to generate unique email addresses with a prefix. - Updated CapitalAdditionAPI tests to ensure proper creation of related entities (branch, investor, cash account) and adjusted assertions accordingly.
- Updated NonCapitalAdditionActions to return the loaded model directly instead of the first instance. - Enhanced test cases for CapitalAddition and NonCapitalAddition actions to include proper creation of related entities (branch, cash account, category) for more robust testing. - Adjusted assertions in tests to validate that results can be greater than or equal to expected counts, improving test reliability.
…alAdditionCategory logic - Changed cash_account_id validation to reference branch_id instead of company_id. - Added 'bail' rule for branch_id in update scenario. - Enhanced IsValidNonCapitalAdditionCategory to validate category against company_id, ensuring proper association with the company.
- Updated emit definitions in CompanyList.vue and CustomerCreate.vue for improved readability. - Refactored lifecycle hooks and methods in Customer components to enhance clarity and maintainability. - Standardized the handling of customer and company data structures across components. - Introduced a new CustomerEdit.vue component for editing customer details. - Updated routing to include the new customer edit functionality. - Enhanced form validation and error handling in customer-related components. - Improved the overall structure and formatting of the code for better readability.
- Added braces to single-line if statements for better readability - Improved code formatting and spacing - Standardized string concatenation using dots with spaces - Fixed indentation and alignment issues - Removed commented code in CustomerSeeder - Simplified some conditional statements - Added empty constructors with proper spacing - Improved cache key formatting consistency - Cleaned up database seeder parameter handling - Fixed LaratrustSeeder formatting and quotes
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.
…n with search functionality
…ollapsible item details - Removed viewport width tracking and layout computation from PurchaseOrderCreate.vue and PurchaseOrderEdit.vue. - Introduced collapsible sections for item price breakdown and additional details in both components. - Updated the corresponding template structure to support the new collapsible functionality. - Adjusted the state management for expanded item details to accommodate the new collapsible sections. - Updated index.html to reference the new JavaScript bundle index-CvhgzouD.js.
… functionality - Updated script reference in index.html to use the latest build (index-DWcEITtQ.js). - Modified the label formatting in ProductUnitSelectSearch.vue for better readability by changing the separator from brackets to dots.
- Updated the script reference in index.html to the new asset version. - Added "subtotal_column" translation to English and Indonesian purchase order JSON files. - Changed the display of subtotal in PurchaseOrderCreate.vue and PurchaseOrderEdit.vue to use the new "subtotal_column" translation. - Improved tooltip for product unit conversion in PurchaseOrderCreate.vue and PurchaseOrderEdit.vue. - Added new asset file index-Dnx3I37d.js.
- Updated the script reference in index.html to use the new asset version. - Refactored PurchaseOrderCreate.vue and PurchaseOrderEdit.vue to utilize InputGroup for better structure and readability. - Enhanced PurchaseReceiptCreate.vue and PurchaseReceiptEdit.vue to implement InputGroup for quantity fields, improving UI consistency. - Added InputGroup component to form inputs across purchase order and receipt pages for better layout and styling.
…onality and new asset version - Updated the script source in index.html to use the new asset version index-DW0G6IzH.js. - Enhanced the handleFocus function in ProductUnitSelectSearch.vue to clarify the lazy loading behavior and ensure options are fetched when the dropdown is opened, even if a value is already selected.
- Updated the `buildItemInitialOption` function in both `PurchaseOrderCreate.vue` and `PurchaseOrderEdit.vue` to include additional properties for product unit options, such as price, VAT profile, and VAT rates. - Modified the `handleProductUnitSelected` function to ensure that the product unit price is retained if the selected option does not provide a new price. - Changed the script reference in `index.html` to use the latest build of the JavaScript assets.
- Changed the base unit price label to include the unit dynamically in English and Indonesian translations. - Introduced a new function to calculate the effective unit price based on item quantity and subtotal after discount. - Updated the PurchaseOrderCreate and PurchaseOrderEdit components to use the effective unit price for display. - Updated the index.html to reference the new JavaScript file index-DLQJFEtv.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.