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