Module: YDIM::Html::State::InvoiceKeys

Included in:
CreateInvoice, Invoice
Defined in:
lib/ydim/html/state/invoice.rb

Instance Method Summary collapse

Instance Method Details

#invoice_keyObject



21
22
23
# File 'lib/ydim/html/state/invoice.rb', line 21

def invoice_key
  :invoice
end

#invoice_keysObject



24
25
26
# File 'lib/ydim/html/state/invoice.rb', line 24

def invoice_keys
  invoice_mandatory + [:precision, :suppress_vat]
end

#invoice_mandatoryObject



27
28
29
# File 'lib/ydim/html/state/invoice.rb', line 27

def invoice_mandatory
  [:description, :date, :currency]
end