fadlyshafa

Untitled

Apr 3rd, 2020
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. class Jurnal_report extends CI_Controller
  4. {
  5. function __construct() {
  6. parent::__construct();
  7. $this->load->model('reports_model');
  8. $this->load->model('workorder_model');
  9. $this->load->model('log_model');
  10. $this->load->model('Warehouses_products_model');
  11. $this->load->model('Sales_model');
  12. $this->load->model('sales_return_model');
  13. $this->load->model('Customer_model');
  14. }
  15.  
  16. public function sales_list(){
  17. $data['data'] = $this->Sales_model->getSales2()->get()->result();
  18. // echo '<pre>' . var_export($data, true) . '</pre>';
  19. // die;
  20. $this->load->view('jurnal_report/sales_list',$data);
  21. }
  22.  
  23. public function sales_customer(){
  24. $data['customer'] = $this->Customer_model->getCustomerSales();
  25. // echo '<pre>' . var_export($data, true) . '</pre>';
  26. // die;
  27. $this->load->view('jurnal_report/sales_customer',$data);
  28. }
  29. }
RAW Paste Data