ok,
este es de venta:
Código PHP:
Ver original<?php
class Application_Model_Venta extends Zend_Db_Table_Abstract {
protected $_name = 'rz_venta';
public function getFactura(stdClass $filter = null){
$select = $this->select();
return $select->query();
}
}
y este del cliente:
Código PHP:
Ver original<?php
class Application_Model_Cliente extends Zend_Db_Table_Abstract {
protected $_name = 'rz_cliente';
public function getCliente(stdClass $filter = null){
$select = $this->select();
if(isset($filter->cliente_id) && $filter->cliente_id > 0) $select->where('cliente_id = ?', $filter->cliente_id);
return $select->query();
}
}