14 lines
307 B
SQL
14 lines
307 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `hedera`.`myClient_getDebt`(vDate DATE)
|
|
RETURNS decimal(10,2)
|
|
DETERMINISTIC
|
|
BEGIN
|
|
/**
|
|
* Calcula el saldo del cliente actual.
|
|
*
|
|
* @return Saldo del cliente
|
|
*/
|
|
RETURN vn.client_getDebt(account.myUser_getId(), vDate);
|
|
END$$
|
|
DELIMITER ;
|