Sha256: f9abf2e6579e3218cd0529f0bc133b1bec7c9f90a643bea9c6d00d242ed7188e

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

require 'polish_invoicer'

invoice = PolishInvoicer::Invoice.new(
  number: '1/2014',                       # numer faktury
  create_date: Date.today,                # data wystawienia
  trade_date: Date.today,                 # data wykonania usługi
  seller: ['Systemy Internetowe S.A.',    # dane sprzedawcy
           'ul. Jasna 10',
           '12-345 Kraków'],
  seller_nip: '123-456-78-90',            # NIP sprzedawcy
  buyer: ['Mała Firma sp. z o.o.',        # dane nabywcy
          'ul. Czerwona 20/4',
          '10-043 Olsztyn'],
  buyer_nip: '987-654-32-10',             # NIP nabywcy
  item_name: 'Usługi programistyczne',    # nazwa usługi
  price: 100,                             # cena (domyślnie brutto)
  payment_date: Date.today + 14,          # data płatności
  gross_price: false,
  # proforma: true,
  # paid: false,
  foreign_buyer: true,
  reverse_charge: true,
  currency: 'EUR',
  exchange_rate: 3.5432,
  comments: 'To jest komentarz w ważnej sprawie do dokumentu'
)
invoice.save_to_html('/tmp/invoice.html')
invoice.save_to_pdf('/tmp/invoice.pdf')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
polish_invoicer-0.0.26 doc/invoice.rb
polish_invoicer-0.0.25 doc/invoice.rb
polish_invoicer-0.0.24 doc/invoice.rb
polish_invoicer-0.0.23 doc/invoice.rb
polish_invoicer-0.0.22 doc/invoice.rb
polish_invoicer-0.0.21 doc/invoice.rb