lib/africompta/views/compta/edit_movements.rb in africompta-1.9.11 vs lib/africompta/views/compta/edit_movements.rb in africompta-1.9.13.pre.10

- old
+ new

@@ -105,11 +105,12 @@ total_old.separator]] }) end def update_accounts() - reply(:empty_nonlists, [:account_archive, :account_src, :account_dst]) + + if AccountRoot.actual + reply(:empty_nonlists, [:account_archive, :account_src, :account_dst]) + reply(:update_silent, :account_archive => [[AccountRoot.actual.id, 'Actual']].concat( if archive = AccountRoot.archive archive.accounts.collect { |a| [a.id, a.path] }.sort_by { |a| a[1] } @@ -117,10 +118,11 @@ [] end)) + update_list(AccountRoot.actual, AccountRoot.actual) + reply(:update, :account_src => AccountRoot.actual.listp_path, :account_dst => AccountRoot.actual.listp_path) + end end def rpc_update_view(session) super(session) + update_list + @@ -162,6 +164,5 @@ # 10,5 == 10.5 def to_money(str) return str.delete('^0123456789.,-').gsub(/,/, '.').to_f end end -