7299_testToMaster #2411
|
@ -1,6 +1,10 @@
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditRecovery`()
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`creditRecovery`()
|
||||||
BEGIN
|
BEGIN
|
||||||
|
/**
|
||||||
|
* Actualiza el crédito de los clientes
|
||||||
|
*/
|
||||||
|
|
||||||
DECLARE EXIT HANDLER FOR SQLSTATE '45000'
|
DECLARE EXIT HANDLER FOR SQLSTATE '45000'
|
||||||
BEGIN
|
BEGIN
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`raidUpdate`()
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`raidUpdate`()
|
||||||
BEGIN
|
BEGIN
|
||||||
|
/**
|
||||||
|
* Actualiza el travel de las entradas de redadas
|
||||||
|
*/
|
||||||
UPDATE entry e
|
UPDATE entry e
|
||||||
JOIN entryVirtual ev ON ev.entryFk = e.id
|
JOIN entryVirtual ev ON ev.entryFk = e.id
|
||||||
JOIN travel t ON t.id = e.travelFk
|
JOIN travel t ON t.id = e.travelFk
|
||||||
|
@ -17,7 +19,6 @@ BEGIN
|
||||||
JOIN travel t ON t.id = e.travelFk
|
JOIN travel t ON t.id = e.travelFk
|
||||||
GROUP BY t.warehouseInFk, t.warehouseOutFk
|
GROUP BY t.warehouseInFk, t.warehouseOutFk
|
||||||
) tt ON t.warehouseInFk = tt.warehouseInFk AND t.warehouseOutFk = tt.warehouseOutFk
|
) tt ON t.warehouseInFk = tt.warehouseInFk AND t.warehouseOutFk = tt.warehouseOutFk
|
||||||
|
|
||||||
WHERE shipped > util.VN_CURDATE() AND isDelivered = FALSE
|
WHERE shipped > util.VN_CURDATE() AND isDelivered = FALSE
|
||||||
ORDER BY t.landed
|
ORDER BY t.landed
|
||||||
LIMIT 10000000000000000000
|
LIMIT 10000000000000000000
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
DELIMITER $$
|
DELIMITER $$
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`rateView`()
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`rateView`()
|
||||||
BEGIN
|
BEGIN
|
||||||
|
/**
|
||||||
|
* Muestra información sobre tasas de cambio de Dolares
|
||||||
|
*/
|
||||||
SELECT
|
SELECT
|
||||||
t.year,
|
t.year,
|
||||||
t.month,
|
t.month,
|
||||||
|
|
Loading…
Reference in New Issue