Question: I added this code below to add prices including VAT in the admin order page.

It work well but I tried to refund an order today and I got this error:

Fatal error: Uncaught Error: Cannot use object of type WC\_Order\_Refund as array in

How can I exclude this new price from the refund process ?

This custom price should not be submitted once I click on refund

```
//Add price inc VAT column on admin order page
function action_woocommerce_admin_order_item_values( $null, $item, $absint ) {
    $val = ($item['type'] == 'line_item' || $item['type'] == 'shipping') ? $item['total'] + $item['total_tax'] : '&nbsp;';
    $valdecimal = wc_format_decimal( $val, $dp='', $trim_zeros );
    ?>
    <td class="item_fcost" data-sort-value="<?php echo $val; ?>">
        <div class="view" style="font-weight: bold; text-align: right; padding-right: 10px;">
            <?php if ($val>0) echo '$'; echo $valdecimal;?>
        </div>
    </td>
    <?php
};
add_action( 'woocommerce_admin_order_item_values', 'action_woocommerce_admin_order_item_values', 10, 3 );

function action_woocommerce_admin_order_item_headers( $order ) {
    echo '<th class="item_fcost sortable" data-sort="float" style="text-align: right;">Price inc VAT</th>';
};
add_action( 'woocommerce_admin_order_item_headers', 'action_woocommerce_admin_order_item_headers', 10, 3 );

```

Answer: 
Seem we can use `PlainListStyle` for `List` for **iOS 14**

```
List {
    Text("Row")
}
.listStyle(PlainListStyle())

```
Use this modifier:

```
.listRowInsets(EdgeInsets(....))

```

However, as stated in the [documentation](https://developer.apple.com/documentation/swiftui/image/3269676-listrowinsets), the insets will be applied to the view **when inside a list**. 

> 
> Sets the inset to be applied to the **view** when placed in a list. (emphasis mine)
> 
> 
> 

Using this modifier on the `List` itself will have no effect on the views inside it. You must use the modifier on the **view** inside the `List` for the modifier to have an effect.

Example usage:

```
List {
    Text("test")
        .listRowInsets(EdgeInsets(top: -20, leading: -20, bottom: -20, trailing: -20))
}

```