app/Controller/ProdutoController.php 1 location
|
@@ 27-31 (lines=5) @@
|
24 |
|
|
25 |
|
$allProdutos = $this->Produto->find('all', $conditions); |
26 |
|
|
27 |
|
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' ) |
28 |
|
{ |
29 |
|
$conditions['offset'] = $_GET['iDisplayStart']; |
30 |
|
$conditions['limit'] = $_GET['iDisplayLength']; |
31 |
|
} |
32 |
|
|
33 |
|
if ( isset( $_GET['iSortCol_0'] ) ) |
34 |
|
{ |
app/Controller/VendaController.php 1 location
|
@@ 87-91 (lines=5) @@
|
84 |
|
array('order' => array('Venda.id DESC')) |
85 |
|
); |
86 |
|
|
87 |
|
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' ) |
88 |
|
{ |
89 |
|
$conditions['offset'] = $_GET['iDisplayStart']; |
90 |
|
$conditions['limit'] = $_GET['iDisplayLength']; |
91 |
|
} |
92 |
|
|
93 |
|
if ( isset( $_GET['iSortCol_0'] ) ) |
94 |
|
{ |
app/Controller/FinanceiroController.php 1 location
|
@@ 236-240 (lines=5) @@
|
233 |
|
// pr($conditions); |
234 |
|
$allLancamentos = $this->LancamentoVenda->find('count', $conditions); |
235 |
|
|
236 |
|
if ( isset( $_GET['iDisplayStart'] ) && $_GET['iDisplayLength'] != '-1' ) |
237 |
|
{ |
238 |
|
$conditions['offset'] = $_GET['iDisplayStart']; |
239 |
|
$conditions['limit'] = $_GET['iDisplayLength']; |
240 |
|
} |
241 |
|
|
242 |
|
$lancamentos = $this->LancamentoVenda->find('all', $conditions); |
243 |
|
// pr($lancamentos,1); |