Correct stock check and deposit invoice/shipment conditions