#7936 fineTunningInvoiceIn #3251
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3251
Loading…
Reference in New Issue
No description provided.
Delete Branch "7936-fineTunningInvoiceIn"
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?
7936-fineTunningInvoiceInto #7936 fineTunningInvoiceIn@ -7,1 +6,3 @@
OR NEW.currencyFk != OLD.currencyFk THEN
DECLARE vIsEuro BOOL;
SELECT if(`code` = 'EUR', TRUE, FALSE) INTO vIsEuro
SELECT (
code
= 'EUR') vIsEurodejalo así que es lo mismo pero es mas compacto
@ -0,0 +13,4 @@
WHERE id = 3;
DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`invoiceIn_beforeUpdate`
porque no lo has puesto en el propio archivo invoiceIn_beforeUpdate
Es necesario para poder hacer los updates de arriba, si no no se puede(el contenido del trigger no cambia). Hablado con Carlos Andrés.
@ -0,0 +37,4 @@
IF NEW.supplierFk != OLD.supplierFk THEN
CALL supplier_checkIsActive(NEW.supplierFk);
SELECT withholdingSageFk INTO vWithholdingSageFk
FROM vn.supplier
no se pone vn. es innecesario