Open
Conversation
…for eager loading
…oduct seeder methods for improved functionality
… and update database schema
…ums for payment terms and rounding options
…migration for employee management
…der; enhance relationships in Supplier, Company, and Branch models
…r_group_id for improved data structure
…, and seeder for cash account management
…nd seeder for investor management
… routes for purchase order product unit management
…r, and migration for down payment management
…t for improved code organization and readability
…nce validation and data handling
…rules, and resource for down payment application management
…ctory, add PurchaseOrderDownPaymentTableSeeder, and implement validation rules and resources for down payment management
… Purchase model attributes
- Implement tests for creating, reading, updating, and deleting PurchaseProductUnitSerial records. - Ensure proper authorization checks for API endpoints. - Validate input parameters and handle exceptions appropriately. - Test for SQL injection vulnerabilities in read operations. - Verify pagination and search functionality in read operations. - Include tests for soft deletion of records.
- Implement tests for creating, reading, updating, and deleting PurchaseAdditionalCost records. - Ensure proper authorization checks and response status codes for API calls. - Validate input parameters and handle exceptions appropriately. - Test for SQL injection vulnerabilities in read operations. - Include pagination and search functionality in read tests. - Verify soft deletion behavior for delete operations.
- Implement tests for deleting PurchaseReturnProductUnit with various scenarios including authorization checks, successful deletion, and handling non-existent records. - Create tests for editing PurchaseReturnProductUnit, ensuring proper authorization, validation of input, and successful updates. - Add tests for reading PurchaseReturnProductUnit, covering authorization, pagination, search functionality, and SQL injection prevention. - Develop unit tests for PurchaseReturnProductUnitActions, validating create, delete, edit, and read functionalities with appropriate assertions.
- Introduce ProductStockFilterEnum and SortDirectionEnum for stock filtering - Add user timezone field to users table with middleware for automatic updates - Implement remaining stock filtering in product queries with DTO and helper - Extend product search to include product units in search scope - Update frontend services to send timezone headers and handle stock filters
Update the whereCompanyId scope in ScopeableByCompany trait to accept an optional table parameter, allowing explicit table qualification for company_id column in queries. This prevents ambiguous column errors when joining tables with company_id columns. Modify all Action classes and validation rules to pass the table name as the first argument to whereCompanyId scope, ensuring queries work correctly with table joins.
…dering - Add remaining stock column to stock adjustment product tables for better visibility - Fix product ordering by status instead of is_active field - Ensure timezone conversion for stock adjustment dates - Enable branch and company scoping for stock adjustment model - Improve product search to always refresh stock data - Adjust UI to conditionally enable out product search only when warehouse is selected
…t component - Introduce FormInputDateTime component with auto mode toggle - Update stock adjustment service to use '_AUTO_' as default date value - Add IsValidDate validation rule supporting auto keyword - Modify FormSelectSearch to lock input when option is selected - Replace manual datetime handling with new component in create/edit views - Update stock adjustment actions to generate current date for auto mode
…atures - Add new report menu and page for products with remaining stock - Introduce cash transaction model, DTOs, and actions for financial tracking - Extend cash account model with remaining balance calculation - Add FormInputDateTimeAuto component for automatic datetime selection - Update product interface to include remaining_stock_base_unit field - Enhance stock adjustment forms with auto datetime functionality - Add localization entries for new features in English and Indonesian - Update routing to include product with remaining stock report pages
- Add translation keys for "Stock as of date" in English and Indonesian - Replace date filter label from stock adjustment to product-specific label - Adjust z-index for dropdowns to ensure proper layering with date picker
- Add clear button (X icon) inside FormSelectSearch component - Emit @clear event when clear button is clicked - Remove manual clear buttons from all usage pages (ProductWithRemainingStockList, CustomerEdit, CustomerCreate, StockAdjustmentEdit, StockAdjustmentCreate, ProductEdit, ProductCreate) - Update grid layout in ProductEdit and ProductCreate to consolidate fields into fewer cards
Add ImageHelper class with methods to create dummy images with customizable text, position, size, and color. Include image storage with resizing, path/URL retrieval, and binary conversion utilities. Add Arial font files to support text rendering.
- create product images model, migration, DTO, and resource - add image upload endpoint with camera capture functionality - integrate image management in product create/edit forms - update product DTOs to include image arrays - add FormImageUpload component with drag-and-drop and camera support - implement ProductImagesField component for managing thumbnails - extend product services to handle image uploads and attachments - update validation rules for product creation/editing with images - add translations for image-related UI elements - ensure backward compatibility with existing product functionality
The field 'is_thumbnail' has been renamed to 'is_main' across the codebase to better reflect its purpose as the primary product image rather than just a thumbnail representation. This change updates: - Database migration, model, DTO, and resource files in the API - TypeScript interfaces and request types in the web frontend - Product image handling logic in both backend actions and frontend components - UI components and pages to use 'main' terminology instead of 'thumbnail'
The slug field is no longer needed as product identification is handled through other means. This change simplifies the data model and removes unnecessary validation logic, slug generation, and display code across both backend and frontend layers.
…ucts - Introduce new models, DTOs, migrations, and policies for stock adjustment product serials (both in and out) - Add serials relationship to StockAdjustmentInProduct and StockAdjustmentOutProduct models - Update DTOs and requests to include serial arrays for creation and update operations - Implement serial management in actions, including creation, update, and deletion - Add new validation attributes and permissions for serial management - Fix BootableModel trait to conditionally set ulid only if column exists - Remove obsolete validation rule classes StockAdjustmentInProductRules and StockAdjustmentOutProductRules
- Add ULID field to stock adjustment product serial resources and database tables - Implement TypeScript interfaces for stock adjustment product serials - Refactor ScopeableByBranch trait to support table prefix in branch filtering - Update DTOs for serial creation and update to include relational context - Add serial management to stock adjustment product creation and update flows - Create frontend pages, services, and translations for serial management - Display serial numbers in stock adjustment list view - Fix route parameter naming for consistency - Update dashboard menu to include serial management submenus
- Add serial number field to product forms and translations - Include serials in stock adjustment product resources - Add new filter parameters for stock adjustment products - Move product images to separate card in create/edit forms - Create reusable product image preview component - Update service rules for consistent query parameter ordering - Clean storage directories during app installation - Fix nullable field handling in request validations
- Change nullable form fields from empty string to null in frontend services - Add 'present' rule to nullable fields in Laravel form request validations - Remove redundant null coalescing logic in controllers - Standardize company_id preparation across request classes
Ensure serial numbers are unique within each stock adjustment product entry to prevent duplicate serials.
The build process generated new JavaScript and CSS bundles with different hash suffixes. This commit updates the HTML entry point to reference the latest production assets.
- Add validation rules to ensure base quantity (qty * conversion) is integer for serialized products - Validate that serial count matches calculated base quantity in stock adjustment requests - Include stock adjustment details (category, warehouses) in product list API responses - Improve UX by removing unnecessary async calls when clearing filters in list pages - Display detailed stock adjustment info and validation errors in product serial lists
… grid layout - Introduce DataListFlex.vue as a responsive alternative to DataList for product and stock adjustment lists - Migrate ProductWithRemainingStockList, StockAdjustmentInProductSerialList, StockAdjustmentOutProductSerialList, and StockAdjustmentOutProductList to use DataListFlex - Update API resources and actions to include baseProductUnit and additional relations for proper data display - Add "Base Unit COGS" translation keys for stock adjustment product views - Update frontend coding standards documentation to recommend DataListFlex for responsive list layouts
…d routes - Add DTOs for stock transfer, product unit, and serial creation/update - Update models to include relationships, scopes, and proper casting - Add policy, resource, and request validation for stock transfer operations - Implement stock transfer actions for CRUD operations with serial handling - Update Laratrust seeder to include stock transfer permissions - Add stock transfer routes with proper middleware and throttling - Fix parameter names in stock adjustment controllers for consistency - Update stock transfer product unit factory to use proper decimal calculations - Add stock serial transaction DTO methods for stock transfer serials - Remove old stock transfer request files in favor of structured requests
- Add store and update request classes for stock transfer product units with serial validation - Implement serial management in stock transfer product unit actions and controller - Update stock adjustment request validations to require non-nullable serial arrays - Enhance stock transfer product unit serial controller with transaction support - Refactor stock transfer product unit actions to use ExecuteDTO pattern - Improve stock transfer product unit resource with conditional relation loading - Update test execution rule to always apply - Fix search scope in stock transfer product unit model to use proper closure
- Adjust search scopes in serial models to target serial field directly - Add relationships and adjust field names in purchase order models and resources - Remove unused factories and seeders for purchase order modules - Update policy permission keys to use snake_case for consistency - Add new models, DTOs, and requests for purchase order discounts and employee management - Update validation attributes for discount fields in multiple languages
…ckend integration - Add new TypeScript interfaces for StockTransfer, StockTransferProductUnit, and StockTransferProductUnitSerial - Create English and Indonesian language files for stock transfer pages and menu items - Implement stock transfer CRUD operations with nested product units and serials - Add stock transaction integration for source and destination warehouses - Update FormSelectSearch component to use Teleport for proper dropdown positioning - Fix foreign key constraint naming in purchase_order_product_unit_discounts migration - Update dashboard menu structure to include stock transfer in transaction and report sections - Improve UI consistency by adjusting button styles and removing unnecessary z-index classes - Add stock transfer validation and error handling in API controllers
- Delete models, migrations, factories, seeders, policies, and resources - Remove validation rules and HTTP resources - Eliminate related API routes and controllers - Update Eloquent relationships in Company, CashAccount, Investor, and Branch - Remove permission entries from Laratrust seeder - Delete validation attribute translations - Remove unit and feature tests for deleted features
Introduce new finance management modules for capital opening and capital transaction. This includes database migrations, models, DTOs, policies, controllers, resources, and frontend components for both modules. The implementation follows project standards with proper route definitions, validation requests, and service layer patterns. Both modules support CRUD operations with proper authorization and include integration with cash transactions for financial tracking. Frontend components include list, create, and edit views with multilingual support (English and Indonesian). The modules are added to the finance management menu for easy navigation. All code follows existing project patterns including consistent field ordering, proper search scopes, and adherence to architectural guidelines for resources, actions, and services.
- Add new report page "Cash Accounts With Remaining Balance" accessible from Reports menu - Extend CashAccount model with optional remaining_balance field - Add filtering by end date and account type (bank/cash) for balance calculation - Update API endpoints to support remaining balance queries with date filtering - Add Indonesian and English translations for new UI elements - Create dedicated Vue components for the report interface
…y methods Group parameters in readAny method signatures and calls into three visual blocks: context, filters, and execution. This improves readability and consistency across the codebase by separating core scope parameters (withTrashed, companyId, branchId, search) from specific module filters and the execute DTO. The change aligns with updated internal coding standards for non-legacy modules.
Delete models, factories, seeders, migrations, policies, resources, validation rules, and tests for non-capital addition and withdrawal modules. Remove related permissions from Laratrust configuration and clean up validation attributes. This removal simplifies the codebase by eliminating unused financial modules.
Delete models, factories, seeders, migrations, policies, resources, validation rules, and tests for non-capital addition and withdrawal modules. Remove related permissions from Laratrust configuration and clean up validation attributes. This removal simplifies the codebase by eliminating unused financial modules.
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.