<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">

        <!-- WAMA: Seat width > 18 inches -->
        <record id="upcharge_wama" model="fusion.wc.upcharge.rule">
            <field name="name">Width Modification (WAMA)</field>
            <field name="sequence">10</field>
            <field name="trigger_type">measurement</field>
            <field name="measurement_field">seat_width</field>
            <field name="comparison">gt</field>
            <field name="threshold_value">18.0</field>
            <field name="adp_device_code">WAMA</field>
            <field name="equipment_type">manual_wheelchair</field>
            <field name="description">Seat width exceeds 18 inches — width modification upcharge applies.</field>
        </record>

        <!-- WAMB: Seat depth > 18 inches -->
        <record id="upcharge_wamb" model="fusion.wc.upcharge.rule">
            <field name="name">Depth Modification (WAMB)</field>
            <field name="sequence">20</field>
            <field name="trigger_type">measurement</field>
            <field name="measurement_field">seat_depth</field>
            <field name="comparison">gt</field>
            <field name="threshold_value">18.0</field>
            <field name="adp_device_code">WAMB</field>
            <field name="equipment_type">manual_wheelchair</field>
            <field name="description">Seat depth exceeds 18 inches — depth modification upcharge applies.</field>
        </record>

        <!-- WAMF: Client weight > 250 lbs (up to 350) -->
        <record id="upcharge_wamf" model="fusion.wc.upcharge.rule">
            <field name="name">Heavy Duty 250+ lbs (WAMF)</field>
            <field name="sequence">30</field>
            <field name="trigger_type">weight</field>
            <field name="weight_min">250.0</field>
            <field name="weight_max">350.0</field>
            <field name="adp_device_code">WAMF</field>
            <field name="equipment_type">both</field>
            <field name="mutually_exclusive_group">weight</field>
            <field name="description">Client weight exceeds 250 lbs — heavy duty frame upcharge.</field>
        </record>

        <!-- WAMG: Client weight > 350 lbs (up to 400) -->
        <record id="upcharge_wamg" model="fusion.wc.upcharge.rule">
            <field name="name">Extra Heavy Duty 350+ lbs (WAMG)</field>
            <field name="sequence">31</field>
            <field name="trigger_type">weight</field>
            <field name="weight_min">350.0</field>
            <field name="weight_max">400.0</field>
            <field name="adp_device_code">WAMG</field>
            <field name="equipment_type">both</field>
            <field name="mutually_exclusive_group">weight</field>
            <field name="description">Client weight exceeds 350 lbs — extra heavy duty frame upcharge.</field>
        </record>

        <!-- WAMH: Client weight > 400 lbs -->
        <record id="upcharge_wamh" model="fusion.wc.upcharge.rule">
            <field name="name">Bariatric 400+ lbs (WAMH)</field>
            <field name="sequence">32</field>
            <field name="trigger_type">weight</field>
            <field name="weight_min">400.0</field>
            <field name="weight_max">0</field>
            <field name="adp_device_code">WAMH</field>
            <field name="equipment_type">both</field>
            <field name="mutually_exclusive_group">weight</field>
            <field name="description">Client weight exceeds 400 lbs — bariatric frame upcharge.</field>
        </record>

        <!-- SEICF160L: Backrest width differs from seat width -->
        <record id="upcharge_seicf160l" model="fusion.wc.upcharge.rule">
            <field name="name">Different Backrest Width (SEICF160L)</field>
            <field name="sequence">40</field>
            <field name="trigger_type">dimension_mismatch</field>
            <field name="compare_field_1">seat_width</field>
            <field name="compare_field_2">back_width</field>
            <field name="adp_device_code">SEICF160L</field>
            <field name="equipment_type">both</field>
            <field name="description">Backrest width differs from seat width — adapter hardware required.</field>
        </record>

    </data>
</odoo>
