mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add messages to ot
This commit is contained in:
@ -36,7 +36,9 @@ class ChatDepartmentEntity extends Entity
|
||||
$chatDepartmentUsers = $m->where('chat_department_id',$this->attributes['id'])
|
||||
->where('pedido_id',null)
|
||||
->where('factura_id',null)
|
||||
->where('presupuesto_id',null)->findAll();
|
||||
->where('presupuesto_id',null)
|
||||
->where('orden_trabajo_id',null)
|
||||
->findAll();
|
||||
return $chatDepartmentUsers;
|
||||
}
|
||||
/**
|
||||
@ -62,6 +64,9 @@ class ChatDepartmentEntity extends Entity
|
||||
case 'factura':
|
||||
$m->where('pedido_id',$modelFkId);
|
||||
break;
|
||||
case 'ot':
|
||||
$m->where('orden_trabajo_id',$modelFkId);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user