https://github.com/mateuszkubuszok/b2binvoicetextemplate
TeX template for Polish B2B invoice (szablon TeX polskiej faktury B2B)
https://github.com/mateuszkubuszok/b2binvoicetextemplate
Last synced: 3 months ago
JSON representation
TeX template for Polish B2B invoice (szablon TeX polskiej faktury B2B)
- Host: GitHub
- URL: https://github.com/mateuszkubuszok/b2binvoicetextemplate
- Owner: MateuszKubuszok
- License: gpl-2.0
- Created: 2015-09-01T12:59:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T08:30:22.000Z (over 9 years ago)
- Last Synced: 2025-01-21T19:11:11.057Z (5 months ago)
- Language: TeX
- Homepage:
- Size: 180 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Polish B2B Invoice TEX template
===Example
---You can see example PDF [here](https://github.com/MateuszKubuszok/B2BInvoiceTexTemplate/releases/download/0.3/example.pdf). It uses example TeX below as input.
How to use
---Create commands for your own company as `.sty` file (in example we named it `issuer.sty`):
\ProvidesPackage{issuer}
\newcommand{\Issuer}[0]{
ExampleSoft Jan Kowalski \\
ul. Papierowa 1 \\
69-666 Warszawa \\
NIP: 1234567890 \\
REGON: 123456789
}\newcommand{\IssuerBankAccount}{
ExampleSoft Jan Kowalski \\
ul. Papierowa 1 \\
69-666 Warszawa \\
Bank Bankowy \\
99 1050 1000 1000 0000 1111 2222
}\newcommand{\IssuerInvoiceSigner}{Jan Kowalski}
Similarly we create commands for generating client data as another `.sty` file (in this example `client.sty`):
\ProvidesPackage{scalac}
\newcommand{\Client}[0]{
Klient Sp. z o.o. \\
ul. Papierowa 2 \\
69-666 Warszawa \\
NIP: 0987654321 \\
REGON: 987654321
}Now all we need to do is to create an invoce with them:
\documentclass[12pt,a4paper]{article}
\usepackage{invoice}
\usepackage{issuer} % to invoice with another issuer you can simply use some different package
\usepackage{client} % similarly here you can invoice another client simply by swapping packages\pagestyle{empty}
\begin{document}
\begin{invoice}[Number=2015/1, % invoice number - required to be unique, but there are not strict format guidelones
SellingDate=30.02.2015,
InvoiceDate=30.02.2015,
PaymentDate=14.03.2015,
Seller=\Issuer, % here you can simply use command to fill invoice issuer data for you
Buyer=\Client, % here you can simply use command to fill client data for you
Paid=0.00, % how much client already paid
TotalWords=tysiąc siedemset siedemdziesiąt złotych, % for now has to be filled manually
BankAccount=\IssuerBankAccount, % here you can use command to fill bank account for you
Signer=\IssuerInvoiceSigner] % here you can use command to fill invoice signer for you% First you have to define VAT rate and service cost, then name of the service. For now template supports:
% 1. \withVatZero{cost}\printItem{name}
% 2. \withVatFive{cost}\printItem{name}
% 3. \withVatEight{cost}\printItem{name}
% 4. \withVatTwentyThree{cost}\printItem{name}\withVatTwentyThree{1000.00}\printItem{Usługi dla klienta}
\hline
\withVatEight{500.00}\printItem{Refaktura kosztów delegacji (bilety lotnicze)}
\end{invoice}
\end{document}Then use something like TexStudio to generate your invoice, and make sure your accountant checks it before sending it out to client.