Version: eXtendOrders 2.2.190 and above
Audience: Administrator

Overview

In eXtendOrders 2.2.190 and above, a new setup option, Use JSON Format for Addresses, is available. When enabled, addresses are stored on the line items in JSON format. This preserves the individual address book fields as keys. During Purchase Order generation, the address fields are mapped directly from these keys to the corresponding address book fields, ensuring an exact match.

When this option is enabled, the Configurator UI also saves addresses in JSON format (with address book elements as keys). Editing or adding an address from the Configurator UI opens a modal that displays the individual address book fields so the updated address remains in the correct format.

Previously, eXtendOrders stored Vendor-to-Vendor (V2V) and Vendor-to-Customer (V2C) addresses on line items as plain text. When Purchase Orders were generated from a Sales Order, this text was parsed and used to set the shipping address on the related Purchase Orders.

Configuration

  1. Navigate to eXtendTech → eXtendOrders → Setup.
  2. Open the Additional Settings subtab.
    Image Placeholder
  3. Enable the Use JSON Format for Addresses checkbox.
  4. Save your changes.

Once enabled, new line items generated from the Configurator UI will store V2V and V2C addresses in JSON format.

How It Works

When the option is disabled (legacy behavior):

  • In the Configurator UI, users can edit vendor addresses in text format only.
  • V2V and V2C addresses are stored on line items as plain text. During Purchase Order generation, the text is parsed and applied as the shipping address.

When the option is enabled:

  • Addresses entered on the Configurator UI are saved as JSON, using the address book elements as keys.
  • If a user edits an existing address or adds a new address, a modal opens that displays the individual address book fields (attention, address1, address2, city, state, zip, country, etc.). This ensures the edited address is saved back in the proper JSON format.
    Image Placeholder

    Image Placeholder
  • Addresses are stored on the line items as JSON, with address book fields retained as keys (for example, attention, address1, address2, city, state, zip, country, etc.).
    Image Placeholder
  • When a Purchase Order is created from the Sales Order, the system maps each JSON key to the corresponding address book field on the Purchase Order shipping address. This produces an exact match without relying on text parsing.

Existing orders that already have addresses stored as text continue to use the previous parsing logic. The JSON format applies to addresses written after the preference is enabled.

Frequently Asked Questions (FAQs)

Q: What happens to existing orders after I enable this option?

A: Existing line items that already contain text-based addresses continue to use the previous text-parsing method when Purchase Orders are generated. Only newly generated or updated line items (after the preference is enabled) will store addresses in JSON format.

Q: Do I need to regenerate lines on open Sales Orders?

A: Yes, if you want existing open Sales Orders to use the JSON address format. Update the configuration (if needed) and regenerate or use the Add/Update Line Item process so the addresses are rewritten in JSON format.

Q: Will this improve address accuracy on Purchase Orders?

A: Yes. By retaining the original address book field keys and mapping them directly, the feature avoids potential issues that can occur with text parsing (such as formatting differences or incomplete address components).

Q: Can I turn this option off later?

A: Yes. Disabling the preference returns the system to the previous text-based storage and parsing behavior for newly written addresses. However, addresses already stored as JSON on open orders will not be set on the generated Purchase Orders.

Q: How does address editing work in the Configurator UI when this option is enabled?
A: Editing an address opens a modal that displays the individual address book fields. Any changes are saved back as JSON with the address book elements as keys, keeping the address in the correct format.