---
title: "Sales invoices — React Box documentation"
description: "The lifecycle of an issued invoice: draft, issuance and continuous numbering, sending, reminders, collection and archiving."
url: https://www.react-box.com/en/docs/invoicing/sales
lang: en
---

InvoicingSales invoices

# Sales invoices

A sales invoice starts as a draft, freezes at issuance, and is tracked through to payment. Here is what happens at each stage.

Updated on October 24, 2026

## What a sales invoice is

It is a document your organization issues to a customer, picked from the third parties in your directory. While it is a draft, everything stays editable. At issuance, it receives its final number, its PDF is generated, and its content becomes untouchable: that permanence is what gives it legal value.

## The five states of an invoice

The status alone tells you where the invoice stands and what you can still do with it.

* Draft  
The invoice is being built. Lines, customer, currency, due date: everything is editable, and it can be deleted. It has no number yet: no sequence is consumed.
* Issued  
The final number is allocated and the content is frozen. The PDF is generated and archived in the vault. The invoice enters your outstanding receivables.
* Sent  
The invoice has been emailed to the customer from React Box. The history keeps the recipient and the date, and flags any delivery failure.
* Paid  
Its payments and the credit notes offset against it cover its total. The invoice leaves your outstanding balance and feeds the total collected for the year.
* Cancelled  
Only a draft reaches this state: it has no number and can be restored. An issued invoice is not cancelled by a status but by a full credit note: it keeps its number, which preserves numbering continuity.

## What an invoice carries

The elements you fill in on the draft, which are frozen at issuance.

* Customer — a third party from your directory, with the recipient email used for sending.
* Lines — description, quantity, unit price excluding tax and VAT rate, freely reorderable.
* VAT regime — applied by default; can be turned off for an out-of-scope invoice, provided you state the exemption notice.
* Currency — pre-filled from your organization, editable invoice by invoice.
* Payment — payment method, collection account and how the due date is calculated.
* Covered period — the start and end of the billed service, printed on the document.
* Texts — PDF language, template, notes shown on the invoice and footer note.

## Issuing an invoice

Issuance is the tipping point: before it, everything is open; after it, nothing moves.

1. Compose the draft  
Select the customer, add the lines, and check the live preview of the subtotal, VAT and total.
2. Check the due date and collection account  
An account is required for a bank transfer. Your defaults are pre-filled but remain editable here.
3. Issue  
React Box allocates the next number of the fiscal year under a lock, which prevents duplicates even when two people issue at the same time. If your accounting firm has kept issuance for itself, you prepare the draft and it issues it.
4. Send and follow up  
Download the PDF or email it, then record the payment once it comes in.

Warning

An issued invoice can no longer be edited, and its number stays consumed even if it is cancelled. Moroccan tax law requires strictly continuous numbering within a fiscal year: React Box detects gaps and flags them on the invoice list. “Cancel invoice” issues a full credit note and offsets it against the invoice: the invoice keeps its number and its PDF in the vault, and the operation cannot be undone. If the invoice had already received payments, the customer stays in credit on the credit note.

## After issuance

Everything that happens between the issued invoice and the payment.

* Sending by email  
The PDF goes to the recipient set on the invoice, with an email in your colors. You can also simply download the document.
* Automatic reminders  
Reminder steps fire on their own, before as well as after the due date: a step is set anywhere from thirty days before the due date — the courtesy notice — to a hundred and eighty days after. Automatic reminders are off by default: an admin turns them on once for the whole organization. Manual reminders and per-invoice exclusion stay available.
* Collection  
Record each payment with its amount, date, payment method and credited account: an invoice can carry several, each converted at the rate of its own date when the invoice is in a foreign currency, and it turns “Paid” as soon as its payments and the credit notes offset against it cover its total. An advance already received can also be applied to the invoice. A wrong payment can be corrected or deleted, and “Revert payment” removes them all. A cash collection bears a 0.25% stamp duty on the amount received: React Box shows it with the total to collect, without counting it toward the invoice balance.

## Importing invoices already issued

Sales invoices issued by another software or an ERP join React Box without being issued again: they complete your receivables, your statistics and your bookkeeping.

* Bulk drop — from “New invoice”, choose “Import invoices already issued” and drop as many PDFs or images as you need. Each file is filed in the vault's “Sales invoices” folder and becomes an imported draft.
* Reading by Atlas — documents are read one after another, a few at a time, without you having to wait on the page. Atlas picks up the customer, recognized by ICE then by name, the dates, the currency, the VAT regime, the lines and the original number. It also suggests a revenue account per line: the one from your past invoices, failing that an AI suggestion or your default account.
* One-by-one review — the review queue shows the original document next to the form. Correct what needs to be, say if the invoice was already collected and when, then record it: the next invoice opens right away.
* Original PDF and number — the invoice keeps its document and its number as they are. React Box renders no PDF of its own and uses no number from its sequence; a number already used in your organization is flagged as a duplicate and refused.
* Never sent or reminded — an imported invoice is managed outside React Box: no email goes to the customer and automatic reminders leave it alone. You can still record payments on it, allocate it and cancel it.
* Deposit email address — a sales invoice sent to the organization's deposit address, and classified as such, also becomes an imported invoice, read by Atlas and added to the review queue.
* For ERPs — with an API key, your ERP reserves an upload slot for each file, sends the document there, then creates the imported invoice; it can follow the readings in batches and record the invoice itself, with its payment if any. The API reference describes these endpoints, listed under sales invoices.

## History

Everything that happens to the invoice is kept on it: draft creation and field-by-field edits, issuing, deliveries and reminders with their recipient, payment and its reversal, cancellation, credit notes, accounting assignment, PDF regeneration. Every entry carries its author — a person, your accounting firm, Atlas, an API key, or React Box itself for automatic reminders — and its timestamp.

Note

The log in detail, the possible authors and the administrator-only organization log are described on the “Document history” page, in the Accounting section.

## Ledger allocation

Every invoice line carries two accounts from your chart of accounts: its revenue account and, when the line is taxed, its collected-VAT account. A line without an account receives the customer's sales account, failing that the default accounts from your accounting settings. Allocation is not required in order to issue: blocking an invoice because an account is missing would delay a legal document for a purely internal reason. Issued invoices with a line left without a revenue account — or with a taxed line left without a VAT account — therefore join a “to allocate” queue, flagged by a badge in the sidebar, to be cleared later, by you or by your accounting firm. One button applies the chosen VAT account to the taxed lines that do not have one yet: the common case is a single VAT account for the whole invoice.

Note

Ledger accounts stay editable after issuance, even on a paid invoice. They appear neither on the legal document nor in the PDF: they are internal metadata, hence outside the immutability rule. Only a cancelled invoice accepts no further change.

## Filed in the vault

The PDF of an issued invoice is automatically filed in the "Sales invoices" folder of your vault. There is nothing to upload: the document follows the same access rules as the rest of the vault, and your accounting firm finds it in its usual place. At year end, that document can be archived along with the rest of the paperwork: the invoice itself stays live — collectable, chaseable, cancellable. Only the vault document becomes restricted to authorised people.

Tip

From the invoice detail, a shortcut opens the filed document directly in the vault.

## Invoices in a foreign currency

An invoice can be issued in a currency other than your organization's. React Box then keeps its equivalent in your base currency, computed at the official Bank Al-Maghrib rate and frozen at the moment of issuance.

Note

How that conversion works, and what happens when no rate is available, is explained in the Foreign exchange section.
