Describe the bug
The shipping lines in the order creation/order edit flows, are editable at all times. For example, when the order is being refreshed, I'm able to edit the shipping lines even though all the other features on the other are disabled. I'm also able to edit shipping lines when I enter the edit mode on a paid order.
To Reproduce
Steps to reproduce the behavior:
Go to Order List
Click on Create Order
Add a product
Notice Add shipping button is disabled when the order is refreshed (this is expected behavior)
Add a shipping line
🐛 Notice the added shipping line is editable when the order is refreshed
Add a product
🐛 Notice Add shipping button is enabled when the order is refreshed (this is not expected)
Steps to reproduce the behavior:
Open detail of a paid order with a shipping line
Tap on Edit
Notice you can edit shipping lines even though the order is not editable
Expected behavior
Shipping line should be disabled when editing paid orders or when the order is being updated in the background in the order creation. The behavior should be consistent with Coupons when this PR is merged.
Isolating the problem (mark completed items with an [x]):
[x] I can reproduce this bug consistently using the steps above.
Describe the bug The shipping lines in the order creation/order edit flows, are editable at all times. For example, when the order is being refreshed, I'm able to edit the shipping lines even though all the other features on the other are disabled. I'm also able to edit shipping lines when I enter the edit mode on a paid order.
To Reproduce Steps to reproduce the behavior:
Add shipping
button is disabled when the order is refreshed (this is expected behavior)Add shipping
button is enabled when the order is refreshed (this is not expected)Steps to reproduce the behavior:
Expected behavior Shipping line should be disabled when editing paid orders or when the order is being updated in the background in the order creation. The behavior should be consistent with Coupons when this PR is merged.
Isolating the problem (mark completed items with an [x]):