From 3b3bc52b5365b32d510a4b2e2b6bcac6158d6066 Mon Sep 17 00:00:00 2001 From: Bernat Date: Mon, 6 Aug 2018 21:00:44 +0200 Subject: [PATCH] add procedure orderListTax --- .../install/changes/1.0.10/04-orderListTax.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 services/db/install/changes/1.0.10/04-orderListTax.sql diff --git a/services/db/install/changes/1.0.10/04-orderListTax.sql b/services/db/install/changes/1.0.10/04-orderListTax.sql new file mode 100644 index 000000000..cd1cc9296 --- /dev/null +++ b/services/db/install/changes/1.0.10/04-orderListTax.sql @@ -0,0 +1,16 @@ +USE `hedera`; +DROP procedure IF EXISTS `orderListTax`; + +DELIMITER $$ +USE `hedera`$$ +CREATE DEFINER=`root`@`%` PROCEDURE `orderListTax`(IN vOrderId INT) +BEGIN + + CALL hedera.orderGetTax(vOrderId); + + SELECT * FROM tmp.orderTax; + +END$$ + +DELIMITER ; +