# Purchase Order Receipt

## What it does

This flow imports consignments from Lightspeed X-Series into NetSuite as purchase orders and item receipts. It's the inverse of the purchase order export — when Lightspeed receives a consignment or creates an inventory count, IDC creates the matching receipt record in NetSuite so inventory stays in sync.

## Direction

**Lightspeed X-Series → NetSuite**

## When it runs

Configure when this flow runs in [Triggers](/idc/idc-core/apps/triggers.md). For most setups, schedule this flow to run every 1–4 hours to keep inventory current. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for a step-by-step walkthrough.

## Settings

| Setting            | What it does                                                                    |
| ------------------ | ------------------------------------------------------------------------------- |
| SKU Match Field    | NetSuite item field used to match Lightspeed products to NetSuite items by SKU. |
| Default Lot Number | Lot number to assign to item receipts (required).                               |
| Default Vendor ID  | Vendor ID to assign to receipts when Lightspeed does not specify a supplier.    |

## Default field mappings

Field mappings for this flow are fully configurable. See [Field Mappings](/idc/idc-core/apps/field-mappings.md) to set them up. Typical mappings include:

* Consignment ID → External ID
* Consignment Name → Memo
* Date → Receipt Date
* Items and Quantities → Line Items

## Use cases

* **Receiving stock at an outlet:** When an outlet receives a consignment in Lightspeed, an item receipt is created in NetSuite to update inventory.
* **Cycle counts:** Lightspeed inventory adjustments are reflected as NetSuite receipts to maintain accurate counts across locations.
* **Reconciling inventory:** Run this flow regularly to ensure NetSuite inventory matches what Lightspeed shows at each outlet.

## Common issues

| Symptom                           | What to try                                                                                                                                    |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Receipt not appearing in NetSuite | Check that the consignment status in Lightspeed is "received" or a state that triggers export. Review the activity log for item lookup errors. |
| Wrong item matched                | Verify that the SKU Match Field setting points to the NetSuite field containing Lightspeed product codes.                                      |
| Vendor not found error            | Set a Default Vendor ID in the flow settings to assign a fallback vendor when Lightspeed doesn't specify one.                                  |
| Lot number validation errors      | Ensure the Default Lot Number setting is populated with a valid lot number from your NetSuite account.                                         |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.in8sync.com/idc/lightspeed-x-series/flows/purchase-order-receipt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
