/**
  * @return \Application\Model\Bean\TransferLineLog
  */
 private function newLog(TransferLine $transferLine, $eventType)
 {
     $now = \Zend_Date::now();
     $log = TransferLineLogFactory::createFromArray(array('id_user' => $this->getUser()->getBean()->getIdUser(), 'event_type' => $eventType, 'baseEntry' => $transferLine->getBaseEntry(), 'baseLine' => $transferLine->getBaseLine(), 'itemCode' => $transferLine->getItemCode(), 'quantity' => $transferLine->getQuantity(), 'whsCode' => $transferLine->getIdWarehouse(), 'status' => $transferLine->getStatus(), 'creationDate' => $now->get('yyyy-MM-dd HH:mm:ss')));
     $this->getCatalog('TransferLineLogCatalog')->create($log);
     return $log;
 }
예제 #2
0
 private function createTransferLine(TransferLine $line, $batchNumber)
 {
     return array('ItemCode' => utf8_encode($line->getItemCode()), 'WhsCode' => utf8_encode($line->getIdWarehouse()), 'BatchNumber' => utf8_encode($batchNumber), 'Quantity' => $line->getQuantity(), 'BaseEntry' => $line->getBaseEntry(), 'BaseLine' => $line->getBaseLine(), 'FolioWarehouse' => utf8_encode($line->getFolioWarehouse()), 'Status' => $line->getStatus(), 'Currency' => utf8_encode($line->getCurrency()));
 }