| @@ 44-47 (lines=4) @@ | ||
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 45 | { |
|
| 46 | $conditions['conditions']['Produto.nome LIKE '] = '%' . $_GET['sSearch'] . '%'; |
|
| 47 | } |
|
| 48 | ||
| 49 | $produtos = $this->Produto->find('all', $conditions); |
|
| 50 | ||
| @@ 174-177 (lines=4) @@ | ||
| 171 | } |
|
| 172 | } |
|
| 173 | ||
| 174 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 175 | { |
|
| 176 | $conditions['conditions']['Produto.nome LIKE '] = '%' . $_GET['sSearch'] . '%'; |
|
| 177 | } |
|
| 178 | ||
| 179 | $produtos = $this->Produto->query($sql); |
|
| 180 | ||
| @@ 828-831 (lines=4) @@ | ||
| 825 | } |
|
| 826 | } |
|
| 827 | ||
| 828 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 829 | { |
|
| 830 | $conditions['conditions']['VendaItensProduto.id LIKE '] = '%' . $_GET['sSearch'] . '%'; |
|
| 831 | } |
|
| 832 | ||
| 833 | $produtos = $this->VendaItensProduto->find('all', $conditions); |
|
| 834 | ||
| @@ 104-107 (lines=4) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 105 | { |
|
| 106 | $conditions['conditions']['Venda.id LIKE '] = '%' . $_GET['sSearch'] . '%'; |
|
| 107 | } |
|
| 108 | ||
| 109 | $vendas = $this->Venda->find('all', $conditions); |
|
| 110 | ||