feat: validar caracteres invocieIn.supplierref #6931 #2090

Merged
carlosap merged 7 commits from 6931-Líneas-en-referencias-de-invoiceIn.supplierRef into dev 2024-02-23 15:45:02 +00:00
4 changed files with 3 additions and 4 deletions
Showing only changes of commit 29a96ede56 - Show all commits

View File

@ -1,5 +1,5 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`string_checkPrintableAndSpanishChars`(
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `util`.`checkPrintableChars`(
vString VARCHAR(255)
) RETURNS tinyint(1)
DETERMINISTIC

View File

@ -10,7 +10,7 @@ BEGIN
DECLARE vWithholdingSageFk INT;
IF NOT util.string_checkPrintableAndSpanishChars(NEW.supplierRef) THEN
CALL util.throw('The invoiceIn cannot contain special characters');
CALL util.throw('The invoiceIn reference contains invalid characters');

The invoiceIn reference contains invalid characters

The invoiceIn reference contains invalid characters
END IF;
SET NEW.editorFk = account.myUser_getId();

View File

@ -6,7 +6,7 @@ BEGIN
DECLARE vWithholdingSageFk INT;
IF NOT (NEW.supplierRef <=> OLD.supplierRef) AND NOT util.string_checkPrintableAndSpanishChars(NEW.supplierRef) THEN
CALL util.throw('The invoiceIn cannot contain special characters');
CALL util.throw('The invoiceIn reference contains invalid characters');
END IF;
SET NEW.editorFk = account.myUser_getId();

View File

@ -1 +0,0 @@
-- Place your SQL code here