feat: comprobaciones facturas contabilizadas refs #6932
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
5fe4f794cc
commit
55bc6418f5
|
@ -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$$
|
||||||
|
|
|
@ -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$$
|
||||||
|
|
Loading…
Reference in New Issue