public function acceptanceDetail($po_id) { $fetch = Peners::fetchDetail(['D.po_id' => $po_id]); foreach ($fetch as $row) { if (!empty($item[$row->mat_id][$row->pener_date])) { $item[$row->mat_id][$row->pener_date] += $row->peners_jml; } else { $item[$row->mat_id][$row->pener_date] = $row->peners_jml; } $matNama[$row->mat_id] = $row->mat_nama; $pbsJml[$row->mat_id] = $row->pbs_jml; } $data = ['head' => PoModel::getDetail($po_id), 'master' => $item, 'matNama' => $matNama, 'pbsJml' => $pbsJml, 'role' => $this->role]; return view('po.acceptanceDetail', $data); }
public function acceptanceShow($po_id) { $data = ['head' => Po::getDetail($po_id), 'fetch' => Pener::fetchAll($po_id), 'Peners' => new Peners(), 'Returpener' => new Returpener(), 'role' => $this->_user->hak_akses]; return view('material.acceptance.show', $data); }
public function acceptanceShow($po_id) { $data = ['head' => Po::getDetail($po_id), 'fetch' => Pener::fetchAll($po_id), 'Peners' => new Peners()]; return view('material.acceptance.show', $data); }
public function po($po_id) { $data = ['asset' => new Assets(), 'title' => 'Print Purchasing Order', 'head' => PoModel::getDetail($po_id), 'sub' => Po_sub::fetchDetail($po_id)]; return view('printing.po', $data); }