samber / invoice-as-a-service Goto Github PK
View Code? Open in Web Editor NEW๐ฐ Simple invoicing service (REST API): from JSON to PDF
License: MIT License
๐ฐ Simple invoicing service (REST API): from JSON to PDF
License: MIT License
Better integration with web: just in time pdf generation.
Link could be sent by email and be opened by random people.
Disable 3rd-party storage (to prevent credential leak)
Body should be serialized to base64 and passed in url query params.
Hi, thanks for contributing.
Wonder if we can format the numbers displayed on the invoice with the locale value?
Number("100000").toLocaleString("en-US")
@samber can you make an skeleton to support translation/localization of the Invoice template?
I need to make Spanish translation, I can make small changes but do not really have the skills to make the generalization for upstream.
Load PDF into page after POST req => https://stackoverflow.com/questions/42106584/displaying-pdf-from-arraybuffer
Save last invoice config in localstorage.
Save "templates" or "presets" in localstorage.
Configuration located in environment variables.
Body request should override that.
For local legal requirements (including french "siret").
FTP credentials must be received in request (like S3).
{
"id": "42",
"currency": "โฌ",
"lang": "en",
"date": 1520852472,
"due_date": 1521457272,
"paid": false,
"decimals": 2,
"items": [
{
"title": "'Growth' plan Screeb.app",
"description": "1 year subscription",
"price": 42,
"quantity": 1,
"tax": 20
}
],
"customer": {
"summary": "Cliente prueba",
"address_line_1": "Mesquita Hnos",
"address_line_2": "Manhattan, NY, 11234",
"address_line_3": "United States",
"address_line_4": "Earth",
"phone": "1-888-548-0034",
"email": "[email protected]"
},
"company": {
"summary": "Screeb",
"address_line_1": "123, place de Bretagne",
"address_line_2": "44000 Nantes",
"address_line_3": "France",
"address_line_4": "Earth",
"phone": "1-888-548-0034",
"email": "[email protected]",
"logo_url": "https://raw.githubusercontent.com/samber/invoice-as-a-service/master/screeb-logo.png",
"other": [
"EMEA office",
{
"title": "Business hours",
"content": "9am - 6pm"
}
]
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.