pdf-invoice-simple
v0.4.0
Published
A Simple PDF Invoice Template
Downloads
8
Readme
pdf-invoice-simple
A Simple PDF Invoice Template
Currently german only.
Usage
import moment from "moment";
import simpleInvoice from "pdf-invoice-simple";
simpleInvoice({
invertHeader: true,
organizationAddress: {
name: "Orbin",
street: "Strasse 333",
postCode: "3474",
city: "Stadt"
},
billingAddress: {
name: "Mein Kontakt",
attn: "Mr. Melk",
street: "Strasse 2",
postCode: "78556",
city: "Andere Stadt"
},
date: moment(),
dueDate: moment().add(12, "days"),
invoiceNumber: 12,
customerName: "MyCompany GmbH",
items: [{
name: "Item Name",
description: "Item Description",
quantity: 2,
rate: 200,
total: 400
}, {
name: "Item Name 2",
quantity: 2,
rate: 200,
total: 400
}],
subTotal: 400,
taxGroups: [{
name: "Mehrwertsteuer",
amount: 10
}],
adjustment: 20,
total: 430,
currency: "EUR",
note: "Meine Notiz"
}).download("invoice.pdf");