modificacion en tablas tarifas acabado/manipulado. Correccion errores maquinas_defecto. Cambiados modelos y entidades tarifas acabado manipulado

This commit is contained in:
Jaime Jimenez
2023-07-18 18:44:25 +02:00
parent 6e0493a287
commit 0d81dca32b
16 changed files with 124 additions and 134 deletions

View File

@ -641,6 +641,15 @@ function templateSelect($templates=[],$name='',$type='') {
return null;
}
// Devuelve true si los intervalos (a1,a2) (b1,b2) se solapan
// https://stackoverflow.com/questions/3269434/whats-the-most-efficient-way-to-test-if-two-ranges-overlap
function check_overlap($a1, $a2, $b1, $b2){
if (max($a2, $b2) - min($a1, $b1) <= ($a2 - $a1) + ($b2 - $b1))
return true;
return false;
}
function version() {
return "1.2.1";
}