<?xml version="1.0"?>
<!--
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
    <scope id="global">
        <fieldset id="sales_copy_order">
            <field name="customer_email">
                <aspect name="to_edit" />
            </field>
            <field name="customer_group_id">
                <aspect name="to_edit" />
            </field>
        </fieldset>
        <fieldset id="sales_copy_order_billing_address">
            <field name="prefix">
                <aspect name="to_order" />
            </field>
            <field name="firstname">
                <aspect name="to_order" />
            </field>
            <field name="middlename">
                <aspect name="to_order" />
            </field>
            <field name="lastname">
                <aspect name="to_order" />
            </field>
            <field name="suffix">
                <aspect name="to_order" />
            </field>
            <field name="customer_address_id">
                <aspect name="to_order" />
            </field>
            <field name="company">
                <aspect name="to_order" />
            </field>
            <field name="street">
                <aspect name="to_order" />
            </field>
            <field name="city">
                <aspect name="to_order" />
            </field>
            <field name="region">
                <aspect name="to_order" />
            </field>
            <field name="postcode">
                <aspect name="to_order" />
            </field>
            <field name="country_id">
                <aspect name="to_order" />
            </field>
            <field name="telephone">
                <aspect name="to_order" />
            </field>
            <field name="fax">
                <aspect name="to_order" />
            </field>
            <field name="region_id">
                <aspect name="to_order" />
            </field>
        </fieldset>
        <fieldset id="sales_copy_order_shipping_address">
            <field name="prefix">
                <aspect name="to_order" />
            </field>
            <field name="firstname">
                <aspect name="to_order" />
            </field>
            <field name="middlename">
                <aspect name="to_order" />
            </field>
            <field name="lastname">
                <aspect name="to_order" />
            </field>
            <field name="suffix">
                <aspect name="to_order" />
            </field>
            <field name="customer_address_id">
                <aspect name="to_order" />
            </field>
            <field name="company">
                <aspect name="to_order" />
            </field>
            <field name="street">
                <aspect name="to_order" />
            </field>
            <field name="city">
                <aspect name="to_order" />
            </field>
            <field name="region">
                <aspect name="to_order" />
            </field>
            <field name="postcode">
                <aspect name="to_order" />
            </field>
            <field name="country_id">
                <aspect name="to_order" />
            </field>
            <field name="telephone">
                <aspect name="to_order" />
            </field>
            <field name="fax">
                <aspect name="to_order" />
            </field>
            <field name="region_id">
                <aspect name="to_order" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_quote">
            <field name="remote_ip">
                <aspect name="to_order" />
            </field>
            <field name="x_forwarded_for">
                <aspect name="to_order" />
            </field>
            <field name="customer_id">
                <aspect name="to_order" />
            </field>
            <field name="customer_email">
                <aspect name="to_order" />
            </field>
            <field name="customer_prefix">
                <aspect name="to_order" />
            </field>
            <field name="customer_firstname">
                <aspect name="to_order" />
            </field>
            <field name="customer_middlename">
                <aspect name="to_order" />
            </field>
            <field name="customer_lastname">
                <aspect name="to_order" />
            </field>
            <field name="customer_suffix">
                <aspect name="to_order" />
            </field>
            <field name="customer_group_id">
                <aspect name="to_order" />
            </field>
            <field name="customer_tax_class_id">
                <aspect name="to_order" />
            </field>
            <field name="customer_note">
                <aspect name="to_order" />
            </field>
            <field name="customer_note_notify">
                <aspect name="to_order" />
            </field>
            <field name="customer_is_guest">
                <aspect name="to_order" />
            </field>
            <field name="customer_dob">
                <aspect name="to_order" />
            </field>
            <field name="customer_taxvat">
                <aspect name="to_order" />
            </field>
            <field name="customer_gender">
                <aspect name="to_order" />
            </field>
            <field name="base_grand_total">
                <aspect name="to_order" targetField="quote_base_grand_total" />
            </field>
            <field name="global_currency_code">
                <aspect name="to_order" />
            </field>
            <field name="base_currency_code">
                <aspect name="to_order" />
            </field>
            <field name="store_currency_code">
                <aspect name="to_order" />
            </field>
            <field name="quote_currency_code">
                <aspect name="to_order" targetField="order_currency_code" />
            </field>
            <field name="store_to_base_rate">
                <aspect name="to_order" />
            </field>
            <field name="store_to_quote_rate">
                <aspect name="to_order" targetField="store_to_order_rate" />
            </field>
            <field name="base_to_global_rate">
                <aspect name="to_order" />
            </field>
            <field name="base_to_quote_rate">
                <aspect name="to_order" targetField="base_to_order_rate" />
            </field>
            <field name="coupon_code">
                <aspect name="to_order" />
            </field>
            <field name="is_virtual">
                <aspect name="to_order" />
            </field>
            <field name="is_multi_payment">
                <aspect name="to_order" />
            </field>
            <field name="applied_rule_ids">
                <aspect name="to_order" />
            </field>
            <field name="items_qty">
                <aspect name="to_order" targetField="total_qty_ordered" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_quote_address">
            <field name="weight">
                <aspect name="to_order" />
            </field>
            <field name="shipping_method">
                <aspect name="to_order" />
            </field>
            <field name="shipping_description">
                <aspect name="to_order" />
            </field>
            <field name="shipping_rate">
                <aspect name="to_order" />
            </field>
            <field name="subtotal">
                <aspect name="to_order" />
            </field>
            <field name="tax_amount">
                <aspect name="to_order" />
            </field>
            <field name="tax_string">
                <aspect name="to_order" />
            </field>
            <field name="discount_amount">
                <aspect name="to_order" />
            </field>
            <field name="shipping_amount">
                <aspect name="to_order" />
            </field>
            <field name="shipping_incl_tax">
                <aspect name="to_order" />
            </field>
            <field name="shipping_tax_amount">
                <aspect name="to_order" />
            </field>
            <field name="custbalance_amount">
                <aspect name="to_order" />
            </field>
            <field name="grand_total">
                <aspect name="to_order" />
            </field>
            <field name="base_subtotal">
                <aspect name="to_order" />
            </field>
            <field name="base_tax_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_discount_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_shipping_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_shipping_incl_tax">
                <aspect name="to_order" />
            </field>
            <field name="base_shipping_tax_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_custbalance_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_grand_total">
                <aspect name="to_order" />
            </field>
            <field name="discount_tax_compensation_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_discount_tax_compensation_amount">
                <aspect name="to_order" />
            </field>
            <field name="shipping_discount_tax_compensation_amount">
                <aspect name="to_order" />
            </field>
            <field name="base_shipping_discount_tax_compensation_amount">
                <aspect name="to_order" />
            </field>
            <field name="prefix">
                <aspect name="to_order_address" />
            </field>
            <field name="firstname">
                <aspect name="to_order_address" />
            </field>
            <field name="middlename">
                <aspect name="to_order_address" />
            </field>
            <field name="lastname">
                <aspect name="to_order_address" />
            </field>
            <field name="suffix">
                <aspect name="to_order_address" />
            </field>
            <field name="company">
                <aspect name="to_order_address" />
            </field>
            <field name="street">
                <aspect name="to_order_address" />
            </field>
            <field name="city">
                <aspect name="to_order_address" />
            </field>
            <field name="region">
                <aspect name="to_order_address" />
            </field>
            <field name="region_id">
                <aspect name="to_order_address" />
            </field>
            <field name="postcode">
                <aspect name="to_order_address" />
            </field>
            <field name="country_id">
                <aspect name="to_order_address" />
            </field>
            <field name="telephone">
                <aspect name="to_order_address" />
            </field>
            <field name="fax">
                <aspect name="to_order_address" />
            </field>
            <field name="email">
                <aspect name="to_order_address" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_quote_payment">
            <field name="method">
                <aspect name="to_order_payment" />
            </field>
            <field name="additional_data">
                <aspect name="to_order_payment" />
            </field>
            <field name="additional_information">
                <aspect name="to_order_payment" />
            </field>
            <field name="po_number">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_type">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_number_enc">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_last_4">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_owner">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_exp_month">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_exp_year">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_number">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_cid">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_ss_issue">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_ss_start_month">
                <aspect name="to_order_payment" />
            </field>
            <field name="cc_ss_start_year">
                <aspect name="to_order_payment" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_order">
            <field name="customer_id">
                <aspect name="to_quote" />
            </field>
            <field name="customer_email">
                <aspect name="to_quote" />
            </field>
            <field name="customer_group_id">
                <aspect name="to_quote" />
            </field>
            <field name="customer_tax_class_id">
                <aspect name="to_quote" />
            </field>
            <field name="customer_taxvat">
                <aspect name="to_quote" />
            </field>
            <field name="customer_note">
                <aspect name="to_quote" />
            </field>
            <field name="customer_note_notify">
                <aspect name="to_quote" />
            </field>
            <field name="customer_is_guest">
                <aspect name="to_quote" />
            </field>
            <field name="global_currency_code">
                <aspect name="to_quote" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="base_currency_code">
                <aspect name="to_quote" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="store_currency_code">
                <aspect name="to_quote" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="order_currency_code">
                <aspect name="to_quote" targetField="quote_currency_code" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="store_to_base_rate">
                <aspect name="to_quote" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="store_to_order_rate">
                <aspect name="to_quote" targetField="store_to_quote_rate" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="base_to_global_rate">
                <aspect name="to_quote" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="base_to_order_rate">
                <aspect name="to_quote" targetField="base_to_quote_rate" />
                <aspect name="to_invoice" />
                <aspect name="to_shipment" />
                <aspect name="to_cm" />
            </field>
            <field name="grand_total">
                <aspect name="to_quote" />
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="base_grand_total">
                <aspect name="to_quote" />
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="coupon_code">
                <aspect name="to_quote" />
            </field>
            <field name="applied_rule_ids">
                <aspect name="to_quote" />
            </field>
            <field name="weight">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="shipping_method">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="shipping_description">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="shipping_rate">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="subtotal">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="tax_amount">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="tax_string">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="discount_amount">
                <aspect name="to_quote_address_shipping" />
                <aspect name="to_cm"/>
            </field>
            <field name="shipping_amount">
                <aspect name="to_quote_address_shipping" />
                <aspect name="to_cm"/>
            </field>
            <field name="shipping_incl_tax">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="custbalance_amount">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="base_subtotal">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="base_tax_amount">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="base_discount_amount">
                <aspect name="to_quote_address_shipping" />
                <aspect name="to_cm"/>
            </field>
            <field name="base_shipping_amount">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="base_shipping_incl_tax">
                <aspect name="to_quote_address_shipping" />
                <aspect name="to_cm"/>
            </field>
            <field name="base_custbalance_amount">
                <aspect name="to_quote_address_shipping" />
            </field>
            <field name="shipping_tax_amount">
                <aspect name="to_cm" />
            </field>
            <field name="base_shipping_tax_amount">
                <aspect name="to_cm" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_order_address">
            <field name="prefix">
                <aspect name="to_quote_address" />
            </field>
            <field name="firstname">
                <aspect name="to_quote_address" />
            </field>
            <field name="middlename">
                <aspect name="to_quote_address" />
            </field>
            <field name="lastname">
                <aspect name="to_quote_address" />
            </field>
            <field name="suffix">
                <aspect name="to_quote_address" />
            </field>
            <field name="company">
                <aspect name="to_quote_address" />
            </field>
            <field name="street">
                <aspect name="to_quote_address" />
            </field>
            <field name="city">
                <aspect name="to_quote_address" />
            </field>
            <field name="region">
                <aspect name="to_quote_address" />
            </field>
            <field name="region_id">
                <aspect name="to_quote_address" />
            </field>
            <field name="postcode">
                <aspect name="to_quote_address" />
            </field>
            <field name="country_id">
                <aspect name="to_quote_address" />
            </field>
            <field name="telephone">
                <aspect name="to_quote_address" />
            </field>
            <field name="fax">
                <aspect name="to_quote_address" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_order_payment">
            <field name="method">
                <aspect name="to_quote_payment" />
            </field>
            <field name="additional_data">
                <aspect name="to_quote_payment" />
            </field>
            <field name="additional_information">
                <aspect name="to_quote_payment" />
            </field>
            <field name="po_number">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_type">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_number_enc">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_last_4">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_owner">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_exp_month">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_exp_year">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_ss_issue">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_ss_start_month">
                <aspect name="to_quote_payment" />
            </field>
            <field name="cc_ss_start_year">
                <aspect name="to_quote_payment" />
            </field>
        </fieldset>
        <fieldset id="sales_convert_order_item">
            <field name="sku">
                <aspect name="to_quote_item" />
                <aspect name="to_invoice_item" />
                <aspect name="to_shipment_item" />
                <aspect name="to_cm_item" />
            </field>
            <field name="name">
                <aspect name="to_quote_item" />
                <aspect name="to_invoice_item" />
                <aspect name="to_shipment_item" />
                <aspect name="to_cm_item" />
            </field>
            <field name="description">
                <aspect name="to_quote_item" />
                <aspect name="to_invoice_item" />
                <aspect name="to_shipment_item" />
                <aspect name="to_cm_item" />
            </field>
            <field name="weight">
                <aspect name="to_quote_item" />
                <aspect name="to_shipment_item" />
            </field>
            <field name="price">
                <aspect name="to_quote_item" targetField="custom_price" />
                <aspect name="to_invoice_item" />
                <aspect name="to_shipment_item" />
                <aspect name="to_cm_item" />
            </field>
            <field name="discount_percent">
                <aspect name="to_quote_item_discount" />
            </field>
            <field name="discount_amount">
                <aspect name="to_quote_item_discount" />
            </field>
            <field name="tax_percent">
                <aspect name="to_quote_item" />
            </field>
            <field name="tax_string">
                <aspect name="to_quote_item" />
            </field>
            <field name="tax_amount">
                <aspect name="to_quote_item" />
            </field>
            <field name="row_weight">
                <aspect name="to_quote_item" />
            </field>
            <field name="row_total">
                <aspect name="to_quote_item" />
            </field>
            <field name="applied_rule_ids">
                <aspect name="to_quote_item" />
            </field>
            <field name="base_discount_amount">
                <aspect name="to_quote_item_discount" />
            </field>
            <field name="base_tax_amount">
                <aspect name="to_quote_item" />
            </field>
            <field name="base_row_total">
                <aspect name="to_quote_item" />
            </field>
            <field name="base_price">
                <aspect name="to_invoice_item" targetField="base_price" />
                <aspect name="to_shipment_item" />
                <aspect name="to_cm_item" />
            </field>
            <field name="base_cost">
                <aspect name="to_invoice_item" />
                <aspect name="to_cm_item" />
                <aspect name="to_quote_item" />
            </field>
        </fieldset>
        <fieldset id="customer_account">
            <field name="id">
                <aspect name="to_quote" targetField="customer_id" />
            </field>
            <field name="email">
                <aspect name="to_quote" targetField="customer_email" />
            </field>
            <field name="prefix">
                <aspect name="to_quote" targetField="customer_prefix" />
            </field>
            <field name="firstname">
                <aspect name="to_quote" targetField="customer_firstname" />
            </field>
            <field name="middlename">
                <aspect name="to_quote" targetField="customer_middlename" />
            </field>
            <field name="lastname">
                <aspect name="to_quote" targetField="customer_lastname" />
            </field>
            <field name="suffix">
                <aspect name="to_quote" targetField="customer_suffix" />
            </field>
            <field name="group_id">
                <aspect name="to_quote" targetField="customer_group_id" />
            </field>
            <field name="tax_class_id">
                <aspect name="to_quote" targetField="customer_tax_class_id" />
            </field>
            <field name="taxvat">
                <aspect name="to_quote" targetField="customer_taxvat" />
            </field>
            <field name="dob">
                <aspect name="to_quote" targetField="customer_dob" />
            </field>
            <field name="gender">
                <aspect name="to_quote" targetField="customer_gender" />
            </field>
        </fieldset>
        <fieldset id="customer_address">
            <field name="id">
                <aspect name="to_quote_address" targetField="customer_address_id" />
            </field>
            <field name="customer_id">
                <aspect name="to_quote_address" />
            </field>
            <field name="prefix">
                <aspect name="to_quote_address" />
            </field>
            <field name="firstname">
                <aspect name="to_quote_address" />
            </field>
            <field name="middlename">
                <aspect name="to_quote_address" />
            </field>
            <field name="lastname">
                <aspect name="to_quote_address" />
            </field>
            <field name="suffix">
                <aspect name="to_quote_address" />
            </field>
            <field name="company">
                <aspect name="to_quote_address" />
            </field>
            <field name="street">
                <aspect name="to_quote_address" />
            </field>
            <field name="city">
                <aspect name="to_quote_address" />
            </field>
            <field name="region">
                <aspect name="to_quote_address" />
            </field>
            <field name="region_id">
                <aspect name="to_quote_address" />
            </field>
            <field name="postcode">
                <aspect name="to_quote_address" />
            </field>
            <field name="country_id">
                <aspect name="to_quote_address" />
            </field>
            <field name="telephone">
                <aspect name="to_quote_address" />
            </field>
            <field name="fax">
                <aspect name="to_quote_address" />
            </field>
        </fieldset>
        <fieldset id="order_address">
            <field name="prefix">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="firstname">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="middlename">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="lastname">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="suffix">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="email">
                <aspect name="to_customer" />
                <aspect name="to_customer_address" />
            </field>
            <field name="customer_dob">
                <aspect name="to_customer" targetField="dob" />
            </field>
            <field name="customer_taxvat">
                <aspect name="to_customer" targetField="taxvat" />
            </field>
            <field name="customer_gender">
                <aspect name="to_customer" targetField="gender" />
            </field>
            <field name="company">
                <aspect name="to_customer_address" />
            </field>
            <field name="street">
                <aspect name="to_customer_address" />
            </field>
            <field name="city">
                <aspect name="to_customer_address" />
            </field>
            <field name="region">
                <aspect name="to_customer_address" />
            </field>
            <field name="region_id">
                <aspect name="to_customer_address" />
            </field>
            <field name="postcode">
                <aspect name="to_customer_address" />
            </field>
            <field name="country_id">
                <aspect name="to_customer_address" />
            </field>
            <field name="telephone">
                <aspect name="to_customer_address" />
            </field>
            <field name="fax">
                <aspect name="to_customer_address" />
            </field>
        </fieldset>
    </scope>
</config>
