mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
editar factura
This commit is contained in:
@ -91,4 +91,21 @@ class SeriesFacturasModel extends \App\Models\BaseModel
|
||||
->orLike("t1.grupo", $search)
|
||||
->groupEnd();
|
||||
}
|
||||
|
||||
public function getMenuItemsFacturas(){
|
||||
|
||||
$resultSorting = $this->getPrimaryKeyName();
|
||||
|
||||
$id = 'id AS id';
|
||||
$text = 'nombre AS text';
|
||||
|
||||
$queryBuilder = $this->db->table($this->table);
|
||||
$queryBuilder->select([$id, $text]);
|
||||
$queryBuilder->where('tipo', 'facturacion');
|
||||
$queryBuilder->where('grupo', '1');
|
||||
$queryBuilder->orderBy($resultSorting);
|
||||
$result = $queryBuilder->get()->getResult();
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user