Class: YDIM::Html::State::Debitors

Inherits:
Global
  • Object
show all
Defined in:
lib/ydim/html/state/debitors.rb

Constant Summary collapse

VIEW =
Html::View::Debitors

Constants inherited from Global

Global::EVENT_MAP

Instance Attribute Summary

Attributes inherited from Global

#sort_reverse, #sortby

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

#initObject



15
16
17
18
19
20
# File 'lib/ydim/html/state/debitors.rb', line 15

def init
   lnf = @session.lookandfeel
	@model = @session.debitors.sort_by do |deb|
     [ lnf.lookup(deb.debitor_type) || '', deb.name.to_s.downcase ]
   end
end