src/main/java/com/qa/IMS/controller/OrderController.java
@Override
	public int delete() {
		LOGGER.info("Delete full order or individual items from an order? (1)Full order (2)For individual items");
		Long decision = utils.getLong();
		if(decision == 1) {
		LOGGER.info("Please enter the id of the order you would like to delete");
		Long id = utils.getLong();
		return orderDAO.delete(id);
		}
		else {
			LOGGER.info("Please enter the id of the order you would like to delete from");
			Long id = utils.getLong();
			LOGGER.info("Please enter the id of the item you would like to delete");
			Long product_id = utils.getLong();
			return orderDAO.deleteIndividual(id, product_id);
		}
	}
/**
	 * Deletes an existing order by the id of the order
	 * 
	 * @return
	 */
Deletes an existing order by the id of the order

@return
Deletes an existing order by the id of the order @return
@Override
	public int delete() {
		LOGGER.info("Delete full order or individual items from an order? (1)Full order (2)For individual items");
		Long decision = utils.getLong();
		if(decision == 1) {
		LOGGER.info("Please enter the id of the order you would like to delete");
		Long id = utils.getLong();
		return orderDAO.delete(id);
		}
		else {
			LOGGER.info("Please enter the id of the order you would like to delete from");
			Long id = utils.getLong();
			LOGGER.info("Please enter the id of the item you would like to delete");
			Long product_id = utils.getLong();
			return orderDAO.deleteIndividual(id, product_id);
		}
	}
@ Override public int delete ( ) { LOGGER . info ( "Delete full order or individual items from an order? (1)Full order (2)For individual items" ) ; Long decision = utils . getLong ( ) ; if ( decision == 1 ) { LOGGER . info ( "Please enter the id of the order you would like to delete" ) ; Long id = utils . getLong ( ) ; return orderDAO . delete ( id ) ; } else { LOGGER . info ( "Please enter the id of the order you would like to delete from" ) ; Long id = utils . getLong ( ) ; LOGGER . info ( "Please enter the id of the item you would like to delete" ) ; Long product_id = utils . getLong ( ) ; return orderDAO . deleteIndividual ( id , product_id ) ; } }
Deletes an existing order by the id of the order
Deletes an existing order by the id of the order