Files
sure/app/models/transaction/splittable.rb
soky srm ae5b23fe67 Initial split transaction support (#1230)
* Initial split transaction support

* Add support to unsplit and edit split

* Update show.html.erb

* FIX address reviews

* Improve UX

* Update show.html.erb

* Reviews

* Update edit.html.erb

* Add parent category to dialog

* Update en.yml

* Add UI indication to totals

* FIX ui update

* Add category select like rest of app

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2026-03-20 21:19:30 +01:00

8 lines
187 B
Ruby

module Transaction::Splittable
extend ActiveSupport::Concern
def splittable?
!transfer? && !entry.split_child? && !entry.split_parent? && !pending? && !entry.excluded?
end
end