/**
  *
  */
 protected function trackingAction()
 {
     $id = $this->getRequest()->getParam('id');
     $proformaInvoice = ProformaInvoiceQuery::create()->findByPKOrThrow($id, $this->i18n->_("It does not exist the ProformaInvoice with id {$id}"));
     $this->view->proformaInvoiceLogs = ProformaInvoiceLogQuery::create()->whereAdd('id_proforma_invoice', $id)->find();
     $this->view->users = UserQuery::create()->find()->toCombo();
 }
 /**
  * 
  * @return \Application\Model\Collection\ProformaInvoiceLogCollection
  */
 public function getProformaInvoiceLogCollection()
 {
     if (!$this->proformaInvoiceLogCollection instanceof ProformaInvoiceLogCollection) {
         $this->proformaInvoiceLogCollection = ProformaInvoiceLogQuery::create()->whereAdd(ProformaInvoiceLog::ID_PROFORMA_INVOICE, $this->getPurchaseOrderEntryCollection()->getDisctinctProformaInvoiceIds())->find();
     }
     return $this->proformaInvoiceLogCollection;
 }