fixed SQL error when trying to generate an order without selecting any product line
fixed error when trying to create an order when a line has no associated supplier