class ComptaTransfer
To change this template, choose Tools | Templates and open the template in the editor.
Public Instance Methods
layout()
click to toggle source
# File Views/Compta/Transfer.rb, line 7 def layout @update = true @order = 10 set_data_class :Persons gui_hbox do gui_vbox :nogroup do show_entity_person :persons, :single, :callback => true show_date :upto show_button :do_transfer, :update end gui_vbox :nogroup do show_table :report, :headings => [:Date, :Desc, :Amount, :Sum], :widths => [100, 300, 75, 75], :height => 400, :width => 570, :columns => [0, 0, :align_right, :align_right] show_print :print end window_print_status end end
rpc_list_choice_persons(session, data)
click to toggle source
# File Views/Compta/Transfer.rb, line 50 def rpc_list_choice_persons(session, data) reply(:empty_nonlists, :report) + reply(:update, :upto => data._upto) + reply(:update, :report => data._persons.report_list(:all, data._upto.date_from_web)) end
rpc_update(session)
click to toggle source
# File Views/Compta/Transfer.rb, line 42 def rpc_update(session) dputs(3) { "rpc_update with #{session.inspect}" } reply(:empty_nonlists, :persons) + reply(:update, :persons => Persons.listp_account_due) + reply(:update, :upto => Date.today.to_web) + reply_print(session) end