mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
cambiado a papel generico la descripción del pedido (y de facturas por tanto)
This commit is contained in:
@ -369,6 +369,24 @@ class PapelImpresionModel extends \App\Models\BaseModel
|
||||
return "";
|
||||
}
|
||||
|
||||
public function getPapelGenericoNombre($papel_id = 0)
|
||||
{
|
||||
$builder = $this->db
|
||||
->table($this->table . " t1")
|
||||
->select("t2.nombre AS nombre")
|
||||
->join("lg_papel_generico t2", "t1.papel_generico_id = t2.id", "left")
|
||||
->where("t1.id", $papel_id)
|
||||
->where("t1.is_deleted", 0)
|
||||
->where("t1.isActivo", 1)
|
||||
->where("t2.is_deleted", 0);
|
||||
|
||||
$result = $builder->get()->getResultObject();
|
||||
if (count($result) > 0) {
|
||||
return $result[0]->nombre;
|
||||
} else
|
||||
return "";
|
||||
}
|
||||
|
||||
public function querySelect(?string $query)
|
||||
{
|
||||
$q = $this->builder()->select([
|
||||
|
||||
Reference in New Issue
Block a user