How stock gets into inventory
A product's stock only changes through an inventory movement, and every movement has a source: receiving an order, a supplier's XML, an imported document, an adjustment. This guide gathers every way to put goods into a location and to create the products your catalog doesn't have yet, what record each one leaves, and how to avoid counting the same goods twice. Each screen's details are in the linked articles.
Creating products with their opening stock is on every plan. Receiving orders, Purchase Import, importing a Document Reception XML into inventory, the adjustments on the Inventory screen and Transfers are on the Accounting / ERP plans (ERP Pyme, ERP Pro and ERP Plus). Receiving an order takes the permission to edit purchase orders; Purchase Import and the reception XML, the permission to create purchase invoices; adjustments, the permission to adjust inventory.
Depending on what arrived
| What happened | What you do in Astra |
|---|---|
| The goods for an order (purchase order) arrived | On the order, Mark as Received, or Verify with Invoice to compare quantities and prices against the supplier's invoice. You pick the location in the review; the order moves to Partial or Received. |
| The supplier's electronic invoice reached Document Reception | On the document's page, once it's accepted, Import XML into inventory on its path, if the invoice has goods on it. It opens the same review without uploading the file again and without AI. |
| You have the invoice as a PDF, a list in Excel or the text of an email | Inventory → Purchase Import: Astra reads the document, you match each line to your catalog and pick the location. |
| You start on Astra with goods you already had | When you create the product, with its opening quantity per location, or on Inventory with Add Stock and the reason Initial Stock. The catalog import in Moving to Astra brings no stock. |
| A customer returned something, goods turned up or a count came out higher | Add Stock with the matching reason, or Adjust Stock with the counted quantity. A credit note does not return stock on its own. |
| A sales invoice was voided or rejected by Hacienda | Nothing: the stock goes back on its own to the location it left. |
| Goods from a consignor | Consignment → Receive goods. It isn't a purchase: it goes into the consignor's location at the agreed cost and creates no purchase order. |
| You move it from one location to another | Transfers: it leaves one and enters the other, without changing the total. |
| It comes out of a production stage | In companies with staged production, completing a stage deposits its outputs in the location the recipe sets. Your work order type guide explains it. |
The purchase order behind each receipt
Every receipt of a purchase is kept on a purchase order, so the order says what came in and not only what was ordered:
- You receive from the order: that same order moves to Partial or Received.
- You import the XML of a document that already has an order, because you created it with Create purchase order on the document's page or because automatic purchases linked its purchase to an order: the import receives that order. No other one is created.
- You import a document without an order (from Document Reception or from Purchase Import): Astra creates an order with the lines it processed, already Received. If you left lines for later it stays Partial, and the next ones are added to the same order. The supplier comes from the document's ID number; on a PDF or Excel, from the name if Astra recognises it among your contacts.
- Lines you leave on Skip go neither into inventory nor onto the order.
The order is linked to the document and its purchase: on the document's page it shows on the Linked card, and Create purchase order is no longer offered.
An order born Received from an import is not a pending order: it is the record of what came in and at what cost. You don't need to send it to the supplier, confirm it or receive it again. Its page says so in the green box Record of what came into inventory, with the link to the purchase invoice, and it has no Verify with Invoice or Convert to Invoice: what you owe the supplier is on the purchase invoice. See The order an import leaves.
At what cost it comes in. From the XML, each line comes in at the cost you paid: the line's subtotal divided by its quantity, with the discount already taken off.
Not counting it twice
- The purchase doesn't move inventory. The purchase invoice records the debt, the expense and the VAT; the goods come in with the receipt. Creating the purchase from Document Reception and then importing its XML into inventory duplicates nothing.
- An order is received by quantity, never twice. Each receipt from the order brings only what is pending, so you can receive 6 of 10 today and the other 4 another day. If the goods already came in through an import of the supplier's document, Mark as Received says so and opens no other receipt. To redo a receipt, first Annul Receipt, which takes what came in with it back out of inventory.
- An XML is imported once. If you click Import XML into inventory again, Astra reopens the review that already exists; if the linked order is already Received, it won't import it.
- Add Stock doesn't repeat the purchase. With Automatic purchases on, a purchase classified as merchandise is already in the books' Inventory, so Restock from Supplier asks for that purchase and only puts the goods in the warehouse. If you then try to import that same purchase's XML, Astra won't let you: it's already in. See Restocking from a purchase.
- Don't guess what Astra couldn't link. If you received an order from the order itself and the supplier's XML arrives later without Astra linking it to that order (for example because the amount didn't match), don't import it into inventory: those goods are already in. With Automatic purchases on, that purchase waits in Purchases to review for you to say which order it bills, so the books don't count it twice either (Receive before the invoice arrives).
- Consigned goods are already in. On a consignor's invoice, the lines that bill a settlement arrive in the review as Consigned: already in and set to Skip: those units came in through the agreement. See If the invoice also bills goods you bought.
New products
A product that doesn't exist yet can be created at the moment it comes in:
- From an import's review: Create new product opens the form with the invoice's details and splits the quantity across locations. Astra remembers what the supplier calls that product for next time.
- With Create New → New Product, with Track quantities on and the Initial Quantity of each location. See Create a product.
- When adding a line to a document (invoice, estimate, work order), if the product isn't in the catalog.
- With the catalog import in Moving to Astra: products arrive without stock tracking and at zero; the opening stock is recorded separately with Add Stock.
Where each entry is recorded
- The product's History tab lists every entry, exit and adjustment, with its number, user, reason and reference.
- The product's Purchases section lists every purchase order receipt, with the final cost per unit (import costs included).
- The purchase order shows what was ordered and received per line, and links the document and the purchase.
- Recent imports lists the imported documents and their status.
Need more help?
Our team is ready to assist you.