Skip to content

[BUG] WooCommerce Order Status is being changed even when sync feature turned off #218

@mepoland

Description

@mepoland

Current Behavior

If you have this option unchecked:

Image I would expect that ERPNext / WC Fusion will never mess with an order's status in WooCommerce. Instead, I'm finding that when you submit a Sales Order created by WC Fusion, it does push a status update to WooCommerce. Unfortunately the status it is pushing is always out of date.

Steps To Reproduce

  1. Create an order in woocommerce; put it in Processing status
  2. WC Fusion creates a Sales Order and sets woocommerce_status field to Processing.
  3. In WooCommerce, update the order status to Completed.
  4. Then submit the Sales Order in ERPNext (without updating the woocommerce_status field).
  5. Now check the WooCommerce Order (and server request logs); its status will have changed back to Processing.

Expected Behavior

If the enable_so_status_sync checkbox is unchecked, do not allow ERPNext to change WooCommerce order statuses.

Anything else?

No response

Environment and Versions

ERPNext: v15.79.0 (HEAD)
Frappe Framework: v15.82.0 (HEAD)
WooCommerce Fusion: v1.15.2 (HEAD)

Operating System

Windows

What browsers are you seeing the problem on?

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions