> For the complete documentation index, see [llms.txt](https://sharpsync.gitbook.io/sharpsync/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharpsync.gitbook.io/sharpsync/data-sources/netsuite/common-setup/configure-price-mapping.md).

# Configure price mapping

`price` is a `multi-value`  NetSuite field that accepts an array of complex objects

### Price Property Mapping Settings

| Setting                   | Value                                                                                       |
| ------------------------- | ------------------------------------------------------------------------------------------- |
| Primary accessor          | <p>(unmapped) </p><p>or mapped to a Primary Source accessor if you have one</p>             |
| Secondary accessor        | <p>One of: </p><ul><li>assemblyitem.price</li><li>inventoryitem.price</li><li>etc</li></ul> |
| Update Primary on Submit  | unchecked                                                                                   |
| Update NetSuite on Submit | checked                                                                                     |
| Object Value Selector     |                                                                                             |
| List Name                 |                                                                                             |
| List Value Selector       |                                                                                             |
| Rendering Type            | `Free Text`                                                                                 |
| Prefer NetSuite value     | checked (if existing NetSuite values are the master values)                                 |

### Price Property Mapping Rules

Given this input, create the following rules:

* `Text Manipulation` import rule for NetSuite (check the checkbox for `Process for NetSuite`) with the following text:

{% code overflow="wrap" %}

```javascript
if (s && "items" in JSON.parse(s) && JSON.parse(s).items.length > 0) {   return JSON.parse(s).items[0].price; } return "";
```

{% endcode %}

* `Text Evaluation` display rule with the following text (make sure to replace all instances of `itemType` in the below code with your accessor name for Item Type , see [Configure itemType mapping](/sharpsync/data-sources/netsuite/common-setup/item-type-mapping.md)):

{% code overflow="wrap" %}

```javascript
const itemTypeValue =
  "itemType" in rowData.modifications
    ? rowData.modifications.itemType
    : rowData.cells.itemType;

if (itemTypeValue === pm.secondaryAccessor.split(".")[0] && s === "") {
  return { message: "Value must not be empty" };
}
```

{% endcode %}

* `Text Manipulation` export rule for NetSuite (check the checkbox for `Process for NetSuite`) with the following text (make sure you are using the appropriate currencyPage id and priceLevel id) :

```javascript
return {
  "items": [
    {
      "currencyPage": { "id": "1" },
      "priceLevel": { "id": "1" },
      "quantity": { "value": 0 },
      "price": Number(s)
    }
  ]
}
```
