Esempio n. 1
0
 public function deleteIssue($id)
 {
     $stock_batch = new Model_StockBatch();
     $stock_master = new Model_StockMaster();
     $result = $this->getQuantityById($id);
     $qty = $result['quantity'];
     $batch_id = $result['stock_batch_id'];
     $stock_batch->form_values['pk_id'] = $batch_id;
     $stock_batch->form_values['status'] = Model_StockBatch::RUNNING;
     $stock_batch->changeStatus();
     $del = $this->deleteStockDetail($id);
     $del = $this->deleteStockDetailPicking($id);
     $del_master = $stock_master->deleteStockMaster($result['stock_master_id']);
     $stock_batch->adjustQuantityByWarehouse($batch_id);
     if ($del) {
         return true;
     } else {
         return FALSE;
     }
 }