예제 #1
0
 public function closing(Request $req)
 {
     $get = PoModel::find($req->input('po_id'));
     $get->po_status = 2;
     $get->po_reason = trim($req->input('po_reason'));
     $get->save();
     Session::flash('inserted', '<div class="info success">PO dengan nomor <strong>' . $get->po_no . '</strong> sudah di-closing.</div>');
     return redirect('po');
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public function qualityplan(Request $req)
 {
     $data = ['asset' => new Assets(), 'title' => 'Report Rencana Mutu', 'fetchp' => PoModel::getByDate(['m' => $req->input('month'), 'y' => $req->input('year')], 'ppn'), 'fetchn' => PoModel::getByDate(['m' => $req->input('month'), 'y' => $req->input('year')], 'nppn'), 'Posub' => new Po_sub(), 'Pener' => new Pener(), 'Peners' => new Peners(), 'period' => libMonths()[$req->input('month')] . ' ' . $req->input('year')];
     return view('printing.qualityplan', $data);
 }