When I try to update the order, it changes the total amout to 0
<p>I have added new custom order status to Woo Commerce by using following function.</p>

<p><strong>Register New Order Statuses</strong></p>

<pre><code>function wpex_wc_register_post_statuses() {
    register_post_status( 'wc-shipping-progress', array(
        'label'                     =&gt; _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' ),
        'public'                    =&gt; true,
        'exclude_from_search'       =&gt; false,
        'show_in_admin_all_list'    =&gt; true,
        'show_in_admin_status_list' =&gt; true,
        'label_count'               =&gt; _n_noop( 'Approved (%s)', 'Approved (%s)', 'text_domain' )
    ) );
}
add_filter( 'init', 'wpex_wc_register_post_statuses' );
</code></pre>

<p><strong>Add New Order Statuses to WooCommerce</strong></p>

<pre><code>function wpex_wc_add_order_statuses( $order_statuses ) {
    $order_statuses['wc-shipping-progress'] = _x( 'Shipping In Progress', 'WooCommerce Order status', 'text_domain' );
    return $order_statuses;
}
add_filter( 'wc_order_statuses', 'wpex_wc_add_order_statuses' );
</code></pre>

<p>whenever I go to edit order and changed the order status to newly added custom order status and click on Save Order button, and go back to Orders it shows Total "0"...</p>

<ul>
<li><strong>Can anyone please help me to fix this issue?</strong></li>
</ul>