예제 #1
0
 public function getPrint($date1, $date2, $type, $branch_id, $category_id)
 {
     $startDate = date('Y/m/d', strtotime($date1));
     $endDate = date('Y/m/d', strtotime($date2));
     $report = new Report();
     $results = $report->getStockReport($type, $startDate, $endDate, $branch_id, $category_id);
     return view('Reports.stockReportPrint', compact('results'))->with('product_type', $type)->with('branch_id', $branch_id)->with('category_id', $category_id)->with('date1', $startDate)->with('date2', $endDate);
 }