Class: YDIM::Html::View::AutoInvoiceComposite

Inherits:
InvoiceComposite
  • Object
show all
Defined in:
lib/ydim/html/view/autoinvoice.rb

Constant Summary collapse

COMPONENTS =
{
	[0,0]	=>	AutoInvoiceInnerComposite,
	[0,1]	=>	:items,
	[0,2]	=>	InvoiceTotalComposite,
	[0,3]	=>	AutoInvoiceReminderComposite,
	[0,4]	=>	:submit,
	[1,4]	=>	:generate_invoice,
}
CSS_MAP =
{
	4	=>	'padded'
}

Constants inherited from InvoiceComposite

InvoiceComposite::EVENT, InvoiceComposite::FORM_ID

Instance Method Summary collapse

Methods inherited from InvoiceComposite

#button, #hidden_fields, #init, #items, #pdf, #send_invoice

Instance Method Details

#generate_invoice(model) ⇒ Object



70
71
72
# File 'lib/ydim/html/view/autoinvoice.rb', line 70

def generate_invoice(model)
  button(:generate_invoice, model)
end