Sha256: 9c9f9de205b31f61fafa0ce6231cb0d3d4d49e8010ffda2315d1f08a80869c85

Contents?: true

Size: 929 Bytes

Versions: 5

Compression:

Stored size: 929 Bytes

Contents

# encoding: utf-8
require 'polish_invoicer'

invoice = PolishInvoicer::Invoice.new({
  number: '1/2014/PROFORMA',              # 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: 3500,                            # cena (domyślnie brutto)
  payment_date: Date.today + 14,          # data płatności
  proforma: true,
  paid: false
})
invoice.save_to_html('/tmp/proforma.html')
invoice.save_to_pdf('/tmp/proforma.pdf')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
polish_invoicer-0.0.5 doc/proforma.rb
polish_invoicer-0.0.4 doc/proforma.rb
polish_invoicer-0.0.3 doc/proforma.rb
polish_invoicer-0.0.2 doc/proforma.rb
polish_invoicer-0.0.1 doc/proforma.rb