class Sie::Document::VoucherSeries
Constants
- DEBTOR_INVOICE
- DEBTOR_PAYMENT
- OTHER
- SUPPLIER_INVOICE
- SUPPLIER_PAYMENT
Public Class Methods
for(creditor, type)
click to toggle source
# File lib/sie/document/voucher_series.rb, line 9 def self.for(creditor, type) case type when :invoice creditor ? SUPPLIER_INVOICE : DEBTOR_INVOICE when :payment creditor ? SUPPLIER_PAYMENT : DEBTOR_PAYMENT else OTHER end end