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