"Mark ready to close" button is not available on receive screen


According to the code the button is available in the following cases:

  1. The order is "Opened" or "Ready to Close" (the button is disabled for "Closed" orders);
  2. Purchase Order status is "Partially Received", "Received", "Changed" (the button is disabled for "Awaiting Approval", "Awaiting Confirm", "Canceled", "Pending Delivery" orders).

We have removed the second condition, so the button should be disabled only for closed orders.