lnbits-legend/lnbits/extensions/invoices
Lee Salminen c32ff1de59
New Extension: Invoicing (#733)
* initial commit

* add docs

* black & prettier

* mobile styles

* add print view

* prettier

* make format

* initial migrations un-messed

* make migrations work for sqlite

* add invoices table

* clean migrations

* add migration to conv

* fix card size

* hopefully fix test migration

* add missing status

* timestamp

* init testing

* remove draft invoice by default on create

* what should i test

* make format

* raise if not invoice

* new test and renaming

* fix issue reported by @talvasconcelos which prevented users from setting status on creation

* readme

* run black

* trying to make tests work

* make it work again

* send paid amount

* partial pay flow

* good coding

* can't get these test to work

* clean up and commenting

* make format

* validation for 2 decimals

Co-authored-by: ben <ben@arc.wales>
Co-authored-by: Tiago vasconcelos <talvasconcelos@gmail.com>
2022-08-13 21:37:44 +02:00
..
static/css New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
templates/invoices New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
__init__.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
config.json New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
crud.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
migrations.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
models.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
README.md New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
tasks.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
views.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00
views_api.py New Extension: Invoicing (#733) 2022-08-13 21:37:44 +02:00

Invoices

Create invoices that you can send to your client to pay online over Lightning.

This extension allows users to create "traditional" invoices (not in the lightning sense) that contain one or more line items. Line items are denominated in a user-configurable fiat currency. Each invoice contains one or more payments up to the total of the invoice. Each invoice creates a public link that can be shared with a customer that they can use to (partially or in full) pay the invoice.

Usage

  1. Create an invoice by clicking "NEW INVOICE"
    create new invoice
  2. Fill the options for your INVOICE
    • select the wallet
    • select the fiat currency the invoice will be denominated in
    • select a status for the invoice (default is draft)
    • enter a company name, first name, last name, email, phone & address (optional)
    • add one or more line items
    • enter a name & price for each line item
  3. You can then use share your invoice link with your customer to receive payment
    invoice link