feat: refs #8401 create triggers to itemTaxCountry #3370
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3370
Loading…
Reference in New Issue
No description provided.
Delete Branch "8401-itemTaxCountryTrigger"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +3,4 @@
BEFORE DELETE ON `itemTaxCountry`
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE '45000'
mes sencill posar ací directament call util.throw
@ -5,2 +5,4 @@
BEGIN
SET NEW.editorFk = account.myUser_getId();
IF NOT(NEW.countryFk <=> OLD.countryFk) THEN
el itemFk tampoc es pot canviar