Invoices¶
An invoice records a purchase from a supplier: what you bought, what it cost, whether you have paid, and whether the goods have arrived. Open it from Invoices in the sidebar. Its Add items tab is where the stock it buys is created, or linked if it is already in stock.
You need View only on Invoices to see invoices, Create/Edit to create and change them and their items, and Create/Edit/Delete to delete them.
How invoices work¶
An invoice is a supplier, a date, two statuses and a list of lines. Each line is something on the supplier's invoice: stock you bought, something you don't keep as stock, shipping, or VAT. The invoice's total is always the sum of its lines, shipping and VAT included. JAI Tool is not an accounting system: an invoice tracks what you bought and spent, not bookkeeping.
Stock lines tie the invoice to real items:
- Create adds stock you don't have yet. The line waits as Pending until you click Create pending items, which makes the items.
- Link existing individual items and Link existing lot items mark stock you already have as bought on this invoice. Nothing in stock changes.
Prices never flow back: a price you type on an invoice does not change the blueprint's supplier pricing.
Statuses¶
Every invoice has a payment status and a delivery status. You set both by hand: on the New invoice form, on the Edit tab, with Edit multiple, or in an import. Nothing changes them for you. Creating the stock does not mark an invoice received, and attaching a file does not mark it as invoice included.
| Status | Meaning |
|---|---|
| Unpaid | Not paid yet. Every new invoice starts unpaid: the Paid switch is off. |
| Paid | Paid. Switch Paid on. |
| Ordered | Ordered, not shipped yet. The default for a new invoice. |
| In transit | Shipped, on its way to you. |
| Received (invoice missing) | The goods have arrived, but you don't have the supplier's invoice document yet. |
| Received (invoice included) | The goods have arrived, and you have the invoice document. |
The Overview can show cards for unpaid invoices, invoices received with the invoice missing, and invoices in transit.
The invoice list¶
The list shows every invoice, newest first. Searching, filtering, sorting, choosing columns, selecting rows and exporting work as on every table: see Tables.
| Column | What it shows |
|---|---|
| ID | The invoice's number in JAI Tool. |
| Thumbnail | The invoice's picture. |
| Name | The invoice's name, or "Invoice #ID" when it has none. before the name means the invoice has no file on its Files tab and no photo on its Gallery tab. |
| Supplier | The partner you bought from, as a link. |
| Items | How many lines the invoice has, shipping and VAT lines included. |
| Total | The sum of all lines, in your currency. A line without a unit price counts as nothing. |
| Invoice date | The invoice's Date. |
| Created on, Created by, Edited on, Edited by | When and by whom the invoice was created and last edited. |
| Payment | Unpaid or Paid. |
| Delivery | Ordered, In transit, Received (invoice missing) or Received (invoice included). |
Columns for your custom fields follow these.
The status filter bar counts Invoices and each payment and delivery status. Click a count to show only those invoices. After the counts it sums every invoice that matches the current search and filters, on all pages:
- Item value: the stock and non-stock lines.
- Shipping: the shipping lines.
- VAT: the VAT lines.
- Total spent (filtered): all lines together.
- Filtered: how many invoices the table shows.
Search finds an invoice by its name, note, custom field values, supplier, and the descriptions and blueprint names of its lines. Filter rows has a Payment group and a Delivery group, groups for your custom fields, and the dates Invoice date, Created on and Edited on.
Each row has these actions:
- Add items opens the invoice's Add items tab.
- Download downloads the invoice's files, see Invoice documents.
- Duplicate starts a new invoice from this one, see The invoice record.
- Delete deletes the invoice, see Delete invoices.
Above the table, Edit custom fields sets the fields every invoice has, and Edit default thumbnail sets the picture new invoices start with.
Edit multiple¶
Select invoices, then click Edit multiple. Tick each field to change on every selected invoice, fill it in, and click Apply. You can change Supplier, Date, Payment, Delivery, Note and your custom fields. This is the quickest way to mark several invoices Paid at once.
Delete invoices¶
Delete one invoice with its row's or the Delete button on its Overview, or select several and click Delete multiple. Deleting an invoice does not touch its stock. The items it created or linked stay where they are, and they can be put on another invoice. An admin can bring a deleted invoice back in Restore deleted.
Invoice documents¶
Keep the supplier's invoice with the record: upload the PDF on the invoice's Files tab, or a photo of it on the Gallery tab (see Records). An invoice with neither shows before its name in the list.
- A row's Download downloads the invoice's file. When it has several files and photos, you get them all in one ZIP file. The button is greyed out when the invoice has none.
- Download multiple downloads the files of every selected invoice as one ZIP file,
invoices.zip, with a folder per invoice.
Create an invoice¶
- In Invoices, click New invoice.
- Choose the Supplier.
- Check the Date, and type the supplier's invoice number as the Name if you have it.
- Leave Paid off and Delivery at Ordered until that changes.
- Click Save. The invoice opens on its Overview.
- Open the Add items tab to add what you bought.
| Field | What it does |
|---|---|
| Name | The supplier's invoice number, or any name. Optional: an invoice without one shows as "Invoice #ID". Unique among invoices (), ignoring capitals. Up to 200 characters, and it can't be an email address. |
| Thumbnail | The invoice's picture. A new invoice starts with the list's default thumbnail. |
| Supplier * | The partner you bought from. Lists the partners whose role is Supplier or Supplier & Manufacturer. |
| Date * | The invoice date. Defaults to today. The list's Invoice date column and filter read it. |
| Paid | On when you have paid the invoice. Off means Unpaid. |
| Delivery * | Ordered (the default), In transit, Received (invoice missing) or Received (invoice included). See Statuses. |
| Note | Free text. |
| Custom fields | The fields set with Edit custom fields on the list. See Custom fields. |
The invoice record¶
An invoice has the record tabs Overview, Edit, History, Gallery and Files (see Records), and Add items, whose count is the number of lines.
The Overview shows the invoice's fields, then its money:
- Subtotal: the stock and non-stock lines, shown only when the invoice has shipping or VAT.
- Shipping and VAT: shown only when the invoice has them.
- Total: all lines together.
Edit holds the same fields as the New invoice form. History also records every line added, changed or removed, and the stock created from the invoice.
Duplicate opens a new invoice with the name (followed by "(copy)"), thumbnail, supplier and note filled in. Its lines, date, statuses and custom field values are not copied.
Add items¶
The Add items tab lists what the invoice paid for and adds more. Its top half, the Add menu, adds stock lines. Its bottom half, Items on this invoice, lists the lines and adds non-stock items, shipping and VAT.
Changing lines needs Create/Edit on Invoices, and so does creating the items: you need no permission on Items for that.
Create new stock¶
Create lists every item blueprint, individual and lot, so you can add stock you don't have yet.
| Column | What it shows |
|---|---|
| ID, Thumbnail | The blueprint's number and picture. |
| Blueprint | The blueprint's name, with for an individual blueprint or for a lot blueprint. |
| Category | The blueprint's category. |
| Unit price | The price for one unit from the blueprint's preferred supplier. Empty when it has none. |
| Total | Everything you have of the blueprint, items in assemblies included. |
| In stock | How much of it is in stock: in a warehouse location, not in an assembly, and not reserved, faulty or retired. See Item blueprints. |
- Search for the blueprint.
- Type how many you bought in its Amount box. An individual blueprint takes whole numbers; a lot blueprint takes an amount in its unit.
- Click Create.
- The dialog asks "Create 3 items?" for an individual blueprint, or "Add 5 pcs?" for a lot. Choose the Warehouse location the stock will go to, and click Create or Add.
The Warehouse location lists your warehouse locations and starts at the Warehouse location for new items from System settings. The line appears under Items on this invoice as Pending: nothing is in stock yet. When the goods arrive, click Create pending items.
Adding a blueprint that already has a pending line for the same warehouse location adds to that line instead of starting a new one.
Link existing individual items¶
Link existing individual items lists the individual items that are on no invoice yet, so you can record which invoice paid for them. Each individual item can be on one invoice only. Its columns are ID, Thumbnail, Name, Blueprint, Category, Unit price (the preferred supplier's price for one), In assembly and Assigned to.
- Click a row's Add to link that item.
- Or tick several items of one blueprint and click Add selected items. Items of different blueprints are refused with "Pick stock of one blueprint".
Linked items of one blueprint share a line, whose quantity is how many are linked. Linking does not move or change the items.
Link existing lot items¶
Link existing lot items lists the lot items that still have some amount no invoice accounts for.
| Column | What it shows |
|---|---|
| ID, Thumbnail, Name | The lot item. |
| Blueprint, Category | Its blueprint and that blueprint's category. |
| Unit price | The preferred supplier's price for one unit. |
| Total | The lot's quantity on hand plus what of it sits in assemblies. |
| In stock | The quantity on hand when the lot counts as in stock, otherwise 0. |
| In invoices | How much of the lot invoices already account for, stock that invoices created in it included. |
Type an amount in the row's Amount box and click Add. The amount can't be more than Total minus In invoices; a larger one is refused with "Only ... left to invoice". Linking does not change the lot's quantity.
Add items on phone¶
Both Link tabs have Add items on phone (), which shows a QR code that opens this invoice in the phone app. There you scan item labels to link them, and add shipping and VAT. See Phone app.
Items on this invoice¶
The lines table lists every line of the invoice, newest first.
| Column | What it shows |
|---|---|
| Order | The line's position on the invoice. |
| Thumbnail | The blueprint's picture, for a stock line. |
| Item | A stock line shows its blueprint (with or ) as a link. A non-stock line shows its description with , shipping shows , and VAT shows with its rate when it is calculated, as in "VAT 23 %". |
| Stock | Pending, Created, Linked or Other, as below. |
| Quantity | How many, with the unit for a lot. |
| Unit price | The price for one. |
| Total | Quantity times Unit price. Empty when the line has no price. |
| Stock | Meaning |
|---|---|
| Pending | A Create line whose items don't exist yet. |
| Created | A Create line whose items this invoice created. |
| Linked | Stock you already had, linked to this invoice. |
| Other | A non-stock, shipping or VAT line. |
Filter rows narrows the table by Stock, and the search box finds a line by its item's name.
You can edit some cells straight in the table, and each change saves when you leave the box:
- Unit price: on every line except a calculated VAT line.
- Quantity: on Pending and non-stock lines only. A Created or Linked line's quantity is what stock holds, so it is fixed. Shipping and VAT are always 1.
The bar above the table sums the lines:
- Stock item value: the Pending, Created and Linked lines.
- Non-stock item value: the non-stock lines.
- Shipping and VAT: those lines.
- Total: all lines, the same total as the list and the Overview.
Unit prices¶
A stock line takes its unit price from the blueprint's preferred supplier, the first one on its Suppliers & Pricing tab. It uses the price tier that fits the line's quantity, so quantity discounts apply. The price comes from the preferred supplier even when the invoice is from another supplier. A blueprint without supplier prices gives an empty price.
Check every line against the supplier's invoice, and type the price you actually paid where it differs. Once you have typed a price, the line keeps it. Until then, the price is looked up again whenever the line's quantity changes.
Non-stock items, shipping and VAT¶
These buttons above the lines table add lines that are not stock:
- Add non-stock item: for things you don't track as stock, such as screws or cable ties. Fill in a Description, an Amount and a Unit price, all required, then click Add.
- Add shipping: fill in the Shipping price and click Add. An invoice has one shipping line at most, so the button is greyed out once it has one.
- Add VAT: an invoice has one VAT line at most, so this button too is greyed out once it has one. Either type the VAT amount, or tick Calculate from price and give a VAT rate (%). The rate starts at the Default VAT rate (%) from System settings.
A calculated VAT line is the rate applied to all other lines, shipping and non-stock included. It is recalculated whenever a line is added, changed or removed, and its price can't be typed. It keeps the rate it was added with, even if the default VAT rate changes later. To use another rate, remove the VAT line and add it again.
Create pending items¶
Create pending items () makes the stock for every Pending line. It is greyed out when no line is pending. Its dialog lists the first five lines it will create; click Create pending items to go ahead.
- An individual blueprint gets one new item per unit, each at the line's warehouse location, with a generated name such as "GNSS receiver module #57".
- A lot blueprint's amount is added to that blueprint's oldest lot item at the line's warehouse location that has no customer. When there is none, a new lot item is created there.
- If the line's warehouse location has been deleted since, the stock goes to the Warehouse location for new items instead.
Each line is created once and turns Created. The History of each new or topped-up item names the invoice. When individual items were created, the Generate labels dialog opens for them, so you can print their labels right away.
Remove items¶
To take lines off the invoice, tick them and click Remove selected items (), or click a row's Remove from invoice. Confirm with Remove.
Removing a line only takes it off the invoice. Stock a Created or Linked line stands for stays where it is, and it can be put on another invoice. A Pending line has no stock yet, so removing it simply drops it.
Labels¶
Generate labels () opens the Generate labels dialog for every individual item on this invoice, created or linked. Lot items are not included. The button is greyed out while the invoice has no individual items. See Labels for printing.
Receive a delivery¶
- When you order, create the invoice: Create an invoice with Delivery at Ordered.
- On its Add items tab, add each thing you ordered with Create, choosing the warehouse location it will go to. The lines wait as Pending.
- Add the non-stock items, shipping and VAT that are on the supplier's invoice.
- Compare each Unit price and the Total with the supplier's invoice, and type the prices you paid.
- When the supplier ships, set Delivery to In transit on the Edit tab.
- When the goods arrive, check them against the lines and click Create pending items.
- Print the labels in the dialog that opens, and stick them on the new items.
- Set Delivery to Received (invoice included), or to Received (invoice missing) if the invoice document hasn't come yet.
- Upload the invoice document on the Files tab, or a photo of it on Gallery.
- When you have paid, switch Paid on.
If you entered the stock by hand before the invoice, link it with Link existing individual items or Link existing lot items instead of creating it again.
Import from CSV¶
Import above the list reads invoices, their lines or their custom fields from a CSV file. It needs Create/Edit on Invoices. How importing works, the template, and the checks before anything is saved are on Import from CSV. In the dialog, Select template picks what the file holds: Invoices, Items or Custom fields.
Invoices¶
One row is one new invoice.
| Column | What to put in it |
|---|---|
name |
The invoice's name. Must not be in use. Blank leaves it unnamed. |
supplier * |
The name of a partner whose role is Supplier or Supplier & Manufacturer. |
date |
The invoice date, in the app's date format. Blank means today. |
payment |
unpaid or paid. Blank means unpaid. |
delivery |
ordered, transit, received_missing or received_included. Blank means ordered. |
note |
Free text. |
cf_... |
One column per custom field. |
Items¶
One row adds a line to an invoice, as the Add items tab would. Template for picks which kind of row the template is for, but one file can mix them.
| Column | What to put in it |
|---|---|
invoice * |
The invoice's name, or "Invoice #ID" for an unnamed one. |
add_method * |
create, link existing individual items, link existing lot items, non-stock, shipping or vat. |
name |
The item to link. |
description |
What a non-stock line was. |
quantity |
How many. |
blueprint |
The item blueprint to create stock from. |
unit_price |
The price for one, or the VAT amount on a vat row. |
vat_rate |
The VAT rate in percent, to calculate the VAT from the goods and shipping. |
warehouse_location |
The warehouse location created stock will go to. Blank means the Warehouse location for new items. |
Each add_method reads only its own cells, and the others must stay blank:
add_method |
Fill in |
|---|---|
create |
blueprint, quantity and unit_price; warehouse_location if not the default. The line is Pending until you click Create pending items. |
link existing individual items |
name of an individual item that is on no invoice, and unit_price. |
link existing lot items |
name of a lot item, quantity (at most what of the lot no invoice accounts for yet) and unit_price. |
non-stock |
description, quantity and unit_price. |
shipping |
unit_price. One per invoice. |
vat |
Either unit_price (the VAT amount) or vat_rate, not both. One per invoice. |
The price always comes from the file, never from the blueprint's supplier prices. A row that adds to a line the invoice already has must give that line's price.
Custom fields¶
Defines the fields every invoice has, as Edit custom fields does. See Custom fields.




