feat: Implement Split Transactions#139
Merged
Merged
Conversation
- Add parent_entry_id column to entries table for parent-child relationships - Add SplitsController with new, create, edit, update, destroy actions - Add Stimulus split_transaction_controller for dynamic form management - Add views: split creation/editing forms, split group display, parent row - Update transaction views to show split indicators and child entries - Add TransactionsController#split and #unsplit actions - Add EntriesHelper for split-related view helpers - Add comprehensive model tests (entry_split_test.rb) - Add comprehensive controller tests (splits_controller_test.rb) - Security: Brakeman clean, RuboCop compliant
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.
Summary
Implements split transactions feature, allowing users to break a single transaction into multiple categorized sub-entries while maintaining the original total amount.
Changes
Database
parent_entry_idcolumn toentriestable with foreign key and indexModels
split!,unsplit!,update_parent_from_splits!methods,split_children/parent_entryassociations, validations for split integritysplittable?helpersplit_transaction/unsplit_transactionpermission methodsControllers
split/unsplitactionsViews
JavaScript
Tests
Security
How to Test
bin/rails db:migrate