title: Magento Order State vs. Status
body: <p>I'm having a fun time figuring out the difference between an order's 'state' versus it's 'status' in Magento.</p>
  
  <p>We have a custom flow set up to send out orders to 3rd party fulfillment and we also have some custom logic to check for potentially fraudulent orders and flag them to be manually approved for shipping by an admin user to go out for fulfillment.</p>
  
  <p>I have added a 'Pending Shipment' status, and an 'OK to Ship' status into my module config like so:</p>
  
  <pre><code>&lt;global&gt;
      ...
      &lt;sales&gt;
          &lt;order&gt;
              &lt;statuses&gt;
                  &lt;pending_shipment translate="label"&gt;&lt;label&gt;Pending Shipment&lt;/label&gt;&lt;/pending_shipment&gt;
                  &lt;ok_to_ship translate="label"&gt;&lt;label&gt;OK To Ship&lt;/label&gt;&lt;/ok_to_ship&gt;
              &lt;/statuses&gt;
              &lt;states&gt;
                  &lt;processing translate="label"&gt;
                      &lt;statuses&gt;
                          &lt;pending_shipment /&gt;
                      &lt;/statuses&gt;
                  &lt;/processing&gt;
                  &lt;payment_review translate="label"&gt;
                      &lt;statuses&gt;
                          &lt;ok_to_ship /&gt;
                      &lt;/statuses&gt;
                  &lt;/payment_review&gt;
              &lt;/states&gt;
          &lt;/order&gt;
      &lt;/sales&gt;
      ...
  &lt;/global&gt;
  </code></pre>
  
  <p>...and I use the built in 'Suspected Fraud' status for all of this. The problem is that the 'Suspected Fraud' status is grouped under the state 'Payment Review', and if an order is marked 'Suspected Fraud' or 'Payment Review', the admin doesn't allow you the choice of any other statuses besides those 2. Ideally the 'OK To Ship' option would be available, but grouped under the 'state' of 'Processing'.
  Here, I have 'OK To Ship' under the 'payment_review' state and it made the option available, but then when I pull down an order and check canShip() -- it fails because it's a 'Payment Review' state status.</p>
  
  <p>So if anyone can help me understand how states/statuses are intended to work in Magento and how best to configure this situation, I would appreciate it.</p>