feat: comprobaciones facturas contabilizadas refs #6932
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Andrés 2024-02-23 18:13:01 +01:00
parent 5fe4f794cc
commit 55bc6418f5
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ BEGIN
AND ii.isBooked; AND ii.isBooked;
IF vHasAnyInvoiceBooked THEN IF vHasAnyInvoiceBooked THEN
CALL util.throw('The travel has entries with booked invoices') CALL util.throw('The travel has entries with booked invoices');
END IF; END IF;
END IF; END IF;
END$$ END$$

View File

@ -20,7 +20,7 @@ BEGIN
CALL travel_checkWarehouseIsFeedStock(NEW.warehouseInFk); CALL travel_checkWarehouseIsFeedStock(NEW.warehouseInFk);
END IF; END IF;
IF NOT (NEW.awbFk <=> OLD.awbFk)THEN IF NOT (NEW.awbFk <=> OLD.awbFk) THEN
SELECT COUNT(*) INTO vHasAnyInvoiceBooked SELECT COUNT(*) INTO vHasAnyInvoiceBooked
FROM travel t FROM travel t
@ -30,7 +30,7 @@ BEGIN
AND ii.isBooked; AND ii.isBooked;
IF vHasAnyInvoiceBooked THEN IF vHasAnyInvoiceBooked THEN
CALL util.throw('The travel has entries with booked invoices') CALL util.throw('The travel has entries with booked invoices');
END IF; END IF;
END IF; END IF;
END$$ END$$