# Purchase Order Export

## What it does

This flow sends NetSuite purchase orders, transfer orders, and inventory adjustments to Lightspeed X-Series as consignments. Use this to push stock replenishment orders from your warehouse to Lightspeed outlets, or to record inventory movements between locations.

## Direction

**NetSuite → Lightspeed X-Series**

## When it runs

Configure when this flow runs in [Triggers](/idc/idc-core/apps/triggers.md). Most setups trigger this flow when a purchase order, transfer order, or inventory adjustment is created in NetSuite. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for a step-by-step walkthrough.

## Settings

| Setting                  | What it does                                                                          |
| ------------------------ | ------------------------------------------------------------------------------------- |
| Quantity Line Field      | NetSuite line item field that contains the quantity to export (typically "quantity"). |
| Skip Callback Processing | Enable to let the processor script handle the callback instead of the main script.    |

## 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:

* Memo → Consignment Name
* Vendor → Supplier
* Item → Product
* Quantity → Line Quantity

## Use cases

* **Stock replenishment:** Create a purchase order in NetSuite to restock an outlet, and it automatically appears in Lightspeed as a consignment ready to receive.
* **Inter-outlet transfers:** Create a transfer order from one NetSuite location to another, and Lightspeed can track the shipment between outlets.
* **Inventory corrections:** Use inventory adjustments to push stock corrections to Lightspeed when counts don't match.

## Common issues

| Symptom                                    | What to try                                                                                                                                              |
| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Purchase order not appearing in Lightspeed | Check that the order is marked for export (the export flag is enabled) and the flow is active. Review the activity log for item or vendor lookup errors. |
| Lightspeed rejects quantities as invalid   | Verify that quantities are numeric and positive. Check that the Quantity Line Field setting points to the correct column.                                |
| Vendor not found error                     | Make sure the vendor exists in both NetSuite and Lightspeed, or set a Default Vendor ID in the flow settings.                                            |


---

# 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-export.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.
