Class: YDIM::Html::State::Debitors
- Defined in:
- lib/ydim/html/state/debitors.rb
Constant Summary collapse
Constants inherited from Global
Instance Attribute Summary
Attributes inherited from Global
Instance Method Summary collapse
Methods inherited from Global
#_create_invoice, #autoinvoice, #create_autoinvoice, #create_debitor, #create_invoice, #debitor, #invoice, #logout, #pdf, #send_invoice
Instance Method Details
#init ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ydim/html/state/debitors.rb', line 14 def init lnf = @session.lookandfeel @model = @session.debitors.sort_by do |deb| [ lnf.lookup(deb.debitor_type) || '', deb.name.to_s.downcase ] end end |