Purchase Import
Upload the vendor's invoice (PDF, Excel or electronic-invoice XML) and Astra extracts the vendor, number, date and items with AI; you review, match each line to your catalog and send it to inventory. It's the tool you use to receive the goods of a purchase order and to create new products without typing long lists. It does not create purchase invoices: for that use Document Reception (if the vendor issues FE) or Purchase Invoices.
Purchase Import is on the Contabilidad / ERP plans (ERP Pyme, ERP Pro and ERP Plus). The Hacienda XML is read without AI. A PDF, a photo, a spreadsheet or pasted text is read by Astra's AI, and each document counts as one AI read for the month (if your company has a monthly cap, Astra tells you when you reach it and it opens again on the 1st). To use the screen you need permission to create purchase invoices.
What's it for?
Useful for:
- Receiving a purchase order against the vendor's invoice or packing list, verifying quantities and prices.
- Putting into inventory the items from invoices of vendors who don't issue FE, without typing them.
- Creating new products from the invoice, with vendor SKU, price and a suggested name.
The full process takes seconds instead of minutes.
How it works
- Upload the document (PDF, Excel or FE XML).
- Analysis — the job is queued. A PDF is read by the AI, which understands the layout and extracts structured data; an electronic-invoice XML is read directly, with no AI; a spreadsheet is flattened to text as you upload it and read by the AI just like a pasted table.
- Extraction: vendor, invoice number and date, lines (description, vendor SKU, quantity, price, total) and totals.
- Matching — Astra matches each line to a catalog product by exact SKU, partial SKU, the aliases it learned from that vendor in earlier imports, and the description.
- Review — verify and correct before processing.
AI works best with clear documents. Digital PDFs are ideal because the text is already machine-readable; if it's a scanned PDF, make sure the text is legible and not skewed or blurry.
Upload a document
- Go to Inventory → Purchase Import. You also get here from a purchase order via Verify with Invoice, which keeps the import linked to that PO. (Mark as Received opens another screen, Receive goods, with the PO's lines: there is no document to read.)
- Upload the document:
- Drag and drop onto the upload area.
- Choose File — from your computer.
- The file is queued. The Recent Import Jobs card shows progress (Waiting in queue, Extracting invoice data) and, when done, the Review button. Usually takes seconds.
Supported formats
- PDF — the vendor's invoice or packing list; digital ones work best.
- Electronic-invoice XML (FE) — read without AI.
- Excel (.xlsx) and LibreOffice (.ods) — the list your vendor sends as a spreadsheet, with no need to save it as CSV first. Only the first sheet of the workbook is read.
Up to 10 MB per file. Images (JPG, PNG) are not accepted: convert them to PDF first. Neither is the legacy .xls format: open it in Excel and save it as .xlsx — Astra tells you exactly that if you try.
Upload one invoice per file. Astra detects if you already uploaded the same file and tells you when, so it isn't processed twice.
Review the extracted data
When you click Review, Astra first shows the Verification Required notice: AI-extracted data must be compared against the original invoice (quantities, prices, suggested names and matches). Click Start Review.
Vendor information
Vendor name, invoice number and date, and total amount, as read. They are informational: Astra doesn't create contacts from this screen. If the document prints no total (for example, a spreadsheet you built yourself from a quote), Total Amount shows what the lines add up to.
Items
Each line shows description, vendor SKU, quantity (editable), the Ordered quantity if a PO is linked, price, and the Match with your catalog:
- Matched — the matched product is shown with its confidence. The pencil opens the matcher to change it; Remove match clears it.
- No match — the line is flagged New Product. The magnifier opens the matcher; Create Product creates one from the invoice data.
If the matched product isn't sold by the unit, the line says so next to its code (“sold by Oz”) and the unit appears beside the quantity. When the invoice comes in a different unit from the product, for example a 1000 ml bottle of a sealant you sell by the ounce, the quantity is outlined in amber with the note “This product is counted in Oz and the invoice in Unid”: type how many ounces come in (decimals are fine, such as 33.81). The line total stays and Astra works out the cost per ounce, so the product's cost doesn't end up as if each ounce cost the whole bottle.
If the invoice brings a box (1 box of 50 tempered glasses at ₡25,000) and you sell by the unit, click Comes in a box? under the quantity and type 50: the line becomes 50 units at ₡500 with the same total. Astra remembers it for that vendor and product, so that vendor's next invoice already arrives in units (more on buying by the box).
Matching also recognises inactive products, so a product you deactivated doesn't end up duplicated when the supplier bills you for it again (if an active and an inactive product share the same code, the active one wins). The line shows it with the Inactive badge and the note “Stock is still received; reactivate it to sell it.”, and a summary of the purchase's inactive products appears above the table. Reactivate switches it back on right there (it takes the permission to edit products). If you don't reactivate it, the stock still comes in.
Matching against the catalog
Click Match pending (the number is how many lines are left) or a line's magnifier. The matcher opens with the vendor's line pinned at the top exactly as it came on the invoice — description, vendor SKU, quantity and price — so you never lose sight of what you are matching; your catalog sits below it.
- Suggestions — on opening, Astra already proposes the products closest to the vendor's description. If that vendor already sells you the product (it is in their catalog under their code), it comes first with a This supplier badge.
- Search — type a name, SKU, vendor code or barcode, in any order and without worrying about accents; the matching words are highlighted. Each result shows SKU, category, stock and cost.
- Keyboard — ↑ ↓ to move, Enter to pick, Esc to close; ⌘/Ctrl + ← → switches lines without leaving the keyboard.
Picking a product assigns it and moves straight on to the next pending line with the search ready to type; when none are left, the matcher closes. Previous and Next walk every line in table order, including the ones that already have a product; Skip to next pending leaves the current one for later. If the product does not exist, Create new product opens the creation form with the invoice data, and closing it brings you back to the matcher where you were.
Every time you assign a product, Astra learns the description and SKU that vendor uses, and next import the line matches on its own.
Creating a product from the invoice
Create Product builds the product from the line's data: name, SKU, CABYS, category, unit, cost and price, and location with initial quantity. Create & Assign closes; Create & Next jumps to the next line without a product.
Complete with AI, next to the name, suggests the name (in the same style as the products you already have), one of your categories, the CABYS (only one that exists in Hacienda's catalog) and the sale price at that category's usual markup over the cost. The fields it fills are highlighted for you to check; nothing is saved until you click Create. It shows when your plan includes AI and your role has the Complete new products permission, and each use counts as one AI read of the month. A suggested category is only picked when it already exists; for a new one, use New category.
With a dollar invoice, the Convert to CRC switch decides the product's currency: on, the cost and price go to colones at the exchange rate; off, the product is created in dollars. Switching it keeps the price's markup.
The line's quantity can be split across several locations (an empty box counts as 0), each with its own minimum and maximum. You can also add photos to the product right there, under the same rules as on the product record: PNG, JPG or WEBP up to 5 MB; an AVIF or HEIC is refused on upload.
Row action
- To inventory — adds the quantity to stock at the target location.
- Receive only — marks the line received without affecting inventory (one-off purchase, service, etc.).
- Skip — don't process it in this batch.
Apply to all changes the action in bulk. Pick the Target location for the lines going to inventory.
Totals, currency and costs
At the bottom you see the Invoice Totals: first Lines add up to, which is what gets recorded, then the subtotal, tax, shipping and total exactly as the document prints them (a dash when the document doesn't print one; Astra never works them out on its own).
If the document prints a total the lines don't reach, a warning appears above the table — The lines don't add up to the document's total — with both figures and the difference. It is almost always a misread quantity or price, a missing or extra line, or a discount on the document that the lines don't carry. Fix the line and the warning goes away on its own. While the warning is there, Astra does not record the document: correct the quantities, import it again or enter it by hand. Lines can come without tax (they reach the subtotal) or with tax, as in a Hacienda XML (they reach the total); both count as a match.
If the currency read from the document is not one your organization uses (for example € where it said ₡), Astra replaces it with yours and records nothing until you confirm: choose the right one under Document currency or click Yes, it is in … below the selector.
If the document is in another currency, you can enter the Exchange rate and convert prices to your organization's currency. If the import is linked to a PO with Import costs, Astra shows the landed cost per unit with those costs prorated.
Astra deletes the original file once the data is extracted. Keep the invoice at hand to compare during review.
Process the items
Once the lines have a product, an action and a location:
- Click Process Items.
- Confirm the summary: how many lines go into inventory and how many are marked received without inventory.
Astra records the inventory movements at the chosen location and marks the lines Processed. Only the lines you chose are processed: lines left on Skip don't touch inventory and you can process them later.
What you process is kept on a purchase order:
- If the import is linked to an order (you opened it from the PO, or the XML comes from a document whose purchase already has an order), the PO moves to Partial or Received depending on what was processed and Astra takes you to it.
- If there was no order, Astra creates one with the processed lines, already Received, or Partial if lines are still pending; the ones you process later are added to that same order. The vendor comes from the document's ID number when it's a Document Reception XML; on a PDF or Excel, from the vendor name if Astra recognizes it among your contacts.
An order received through an import can't be received again with Mark as Received: the goods are already in inventory. More in How stock gets into inventory.
Purchase Import doesn't create it. If the vendor issues FE, create it in one click from Document Reception; otherwise use Convert to Invoice on the received PO, or create it by hand in Purchase Invoices.
Serialized items: with a plan that includes inventory, a serialized item's line going to inventory asks below it for one serial per unit (scanned or pasted), and the purchase isn't processed until they are all there. Each serial becomes a unit of the product, with its warehouse and its cost. See Serialized Items.
Consigned goods
With Consignment switched on, your consignors' warehouses show on this screen with the Consignment mark. Whatever goes to one of them is not a purchase: it comes in as a delivery under that agreement, at an agreed cost, and creates no purchase order and does not change your products' cost.
- When creating a product (Create Product), put the units on the consignor's warehouse row. The product's cost is the agreed cost — what you pay for each unit that sells — and it is required.
- When processing existing products, pick the consignor's warehouse under Target location. Each line comes in at the agreed cost of that consignor's latest delivery of the product; a line for a product they never delivered is not processed and is received in Consignment instead.
Recent imports
The Inventory → Purchase Import screen lists your latest imports with their status; Refresh Jobs updates the list.
Job status
- Pending — queued.
- Processing — the AI is analyzing.
- Completed — extraction successful; Review opens the review, and once every line is processed the card reads All items processed.
- Failed — couldn't be processed (damaged or illegible document). Upload a better-quality file; the duplicate warning doesn't apply to failed imports.
Discard an import
A test import, or a file that was read wrong (lines at ₡0, no names), is removed with Discard, next to Review. Astra asks you to confirm and deletes the import with all its lines; it can't be undone. Since no line reached inventory, stock, costs and purchase orders don't change, and if you upload the same file again, Astra reads it afresh.
The button only appears while you haven't processed any line. An import with lines already added to inventory or received stays as the record of that purchase.
Need more help?
Our team is ready to assist you.