Exemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $reportId = $this->argument('reportId');
     $vendorId = $this->argument('vendorId');
     $vendorReport = new VendorReport();
     $vendorReport->send($reportId, $vendorId);
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     // generate a transaction report
     $start = $this->argument('start');
     $end = $this->argument('end');
     $includeRent = $this->option('include-rent');
     $report = new VendorReport();
     $report->generate($start, $end, $includeRent);
 }
 /**
  * Send a Vendor Report
  *
  * @return Response
  */
 public function send(Request $request)
 {
     $reportId = $request->reportId;
     $vendorId = $request->vendorId;
     $message = $request->message;
     $cc = $request->cc ? $request->user()->email : false;
     $vendorReport = new VendorReport();
     $vendorReport->send($reportId, $vendorId, $message, $cc);
     return response(array('status' => 'success'), 200);
 }
 /**
  * Download Report
  */
 public function downloadReport($reportId, $vendorId = null)
 {
     $report = new VendorReport();
     return $report->download($reportId, $vendorId);
 }