DROP procedure IF EXISTS `hedera`.`basketGetTax`;
DELIMITER $$
CREATE DEFINER=`root`@`%` PROCEDURE `hedera`.`basketGetTax`()
    READS SQL DATA
BEGIN
/**
 * Returns the taxes for the current client basket.
 *
 * @treturn tmp.orderTax
 */
		DROP TEMPORARY TABLE IF EXISTS tmp.order;
	CREATE TEMPORARY TABLE tmp.order
		ENGINE = MEMORY
		SELECT myBasketGetId() orderFk;
        
	CALL orderGetTax();
    
    DROP TEMPORARY TABLE IF EXISTS tmp.order;
END$$

DELIMITER ;
