Sha256: e6fff7e33bdbcef3798eea22718f5b796cce32800b3450589843b530fb6221c3
Contents?: true
Size: 940 Bytes
Versions: 2
Compression:
Stored size: 940 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polish_invoicer-0.0.29 | doc/proforma.rb |
polish_invoicer-0.0.28 | doc/proforma.rb |