Normally, quantity shipped will default to either 1 or 0 when substituting an item (when system option 18 is unchecked Qty Shipped defaults to 1, if checked it defaults to 0). If this option is enabled, quantity shipped will default to quantity ordered, regardless of whether or not there is enough on hand quantity of the substitute item to fill the order.