alepha@docs:~/framework/docs/packages/@alepha-commerce$
cat invoicing.md | pretty
1 min read
Last commit:

#@alepha/commerce - Invoicing

#Installation

npm install @alepha/commerce

#Overview

Gapless, frozen invoices with a per-rate tax breakdown.

Not optional in France: a B2C sale must be invoiced, the numbering must have no holes, and the tax must be shown per rate. A separate module all the same, because Ticketing and a POS have their own fiscal obligations and different documents to produce.

An invoice is issued when an order is paid and a credit note when it is refunded, both by the jobs of @alepha/commerce/settlement, which an application imports alongside this. Configure the seller first, or every invoice will claim to come from "Unnamed seller":

ts
1alepha.store.set(sellerIdentityAtom.key, {2  name: "Atelier Aurore",3  address: "12 rue des Orfèvres, 75001 Paris",4  registrationNumber: "912 345 678 00012",5  vatNumber: "FR91234567800",6  numberPrefix: "FA",7});

#API Reference

#Providers