sort accounts by full name when finalizing a Book
This commit is contained in:
1 parent
c3f3b80bf3
commit
309e8a9c29
1 file changed
+3
@@ -76,6 +76,9 @@ module Gnucash
|
||||
end
|
||||
|
||||
def finalize
|
||||
@accounts.sort! do |a, b|
|
||||
a.full_name <=> b.full_name
|
||||
end
|
||||
@accounts.each do |account|
|
||||
account.finalize
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user