Browse Source

adding KANWIL

main^2
justsuandi 1 year ago committed by =
parent
commit
7c6435b346
  1. 2
      app/Controllers/Kanwil.php
  2. 42
      app/Models/MKanwil.php
  3. 2
      app/Views/kanwil/dashboard.php
  4. 1
      writable/debugbar/debugbar_1709561162.364085.json
  5. 1
      writable/debugbar/debugbar_1709562558.161324.json
  6. 1
      writable/debugbar/debugbar_1709562589.197560.json
  7. 1
      writable/debugbar/debugbar_1709562751.485337.json
  8. 1
      writable/debugbar/debugbar_1709562764.581781.json
  9. 1
      writable/debugbar/debugbar_1709563492.650681.json
  10. 1
      writable/debugbar/debugbar_1709563525.336195.json
  11. 1
      writable/debugbar/debugbar_1709564218.713183.json
  12. 1
      writable/debugbar/debugbar_1709564241.323211.json
  13. 1
      writable/debugbar/debugbar_1709564276.709166.json
  14. 1
      writable/debugbar/debugbar_1709564659.255327.json
  15. 1
      writable/debugbar/debugbar_1709564659.302353.json
  16. 1
      writable/debugbar/debugbar_1709564663.086797.json
  17. 1
      writable/debugbar/debugbar_1709564663.541190.json
  18. 1
      writable/debugbar/debugbar_1709564711.951712.json
  19. 1
      writable/debugbar/debugbar_1709564711.992728.json
  20. 1
      writable/debugbar/debugbar_1709564721.515608.json
  21. 1
      writable/debugbar/debugbar_1709564721.944274.json

2
app/Controllers/Kanwil.php

@ -46,7 +46,7 @@ class Kanwil extends BaseController
$p['paycomp'] = $model->paycompNas($param)->getResult();
$p['parsesof'] = $model->sofNas($param)->getResult();
$p['refbulan'] = $model->getBln();
$p['wp_terdaftar'] = $model->getWpsk()->getFirstRow('array');
$p['wp_terdaftar'] = $model->getWpsk($param)->getFirstRow('array');
$p['wp_sk'] = $model->getBreakdownPen($param)->getFirstRow('array');
$p['wpadm'] = $model->getWPterdaftar($param)->getFirstRow('array');
$p['laporThn'] = $model->laporTahunan($param)->getFirstRow('array');

42
app/Models/MKanwil.php

@ -43,13 +43,14 @@ class MKanwil extends Model
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$kwl = $param['kwl'];
$query = $this->db->query("SELECT CASE WHEN KD_KATEGORI IS NULL THEN '-' ELSE KD_KATEGORI END KODE,
CASE WHEN KD_KATEGORI IS NULL THEN 'UNKNOWN' ELSE NM_KATEGORI END NMKAT,
SUM(CASE WHEN THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN WPBAYAR ELSE 0 END)WPBYRN,
SUM(CASE WHEN THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBAYAR ELSE 0 END)WPBYRP,
SUM(CASE WHEN THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) KPENN,
SUM(CASE WHEN THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) KPENP
FROM PERKATEGORI_MV
FROM KWLPERKATEGORI_MV WHERE KWLADM = '".$kwl."'
GROUP BY KD_KATEGORI,NM_KATEGORI
ORDER BY KD_KATEGORI ASC
");
@ -62,13 +63,14 @@ class MKanwil extends Model
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$kwl = $param['kwl'];
$query = $this->db->query("SELECT NM_PAJAK,TOTALN PENERIMAAN, TOTALP PENL,
(SELECT ROUND(SUM(TOTAL)) FROM PERJENIS_MV WHERE THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOT,
(SELECT ROUND(SUM(TOTAL)) FROM PERJENIS_MV WHERE THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOTL
(SELECT ROUND(SUM(TOTAL)) FROM KWLPERJENIS_MV WHERE THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOT,
(SELECT ROUND(SUM(TOTAL)) FROM KWLPERJENIS_MV WHERE THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "') PENERIMAAN_TOTL
FROM (
SELECT NM_PAJAK,ROUND(SUM(CASE WHEN THNBYR= '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN TOTAL ELSE 0 END)) TOTALN,
ROUND(SUM(CASE WHEN THNBYR= '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN TOTAL ELSE 0 END)) TOTALP
FROM PERJENIS_MV
FROM KWLPERJENIS_MV WHERE KWLADM = '".$kwl."'
GROUP BY NM_PAJAK ORDER BY TOTALN DESC) WHERE ROWNUM < = 7
");
return $query;
@ -80,11 +82,12 @@ class MKanwil extends Model
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$kwl = $param['kwl'];
$query = $this->db->query("SELECT A.JMLBULAN, A.JUMLAHWP,B.JUMLAHWP JUMLAHWPP FROM
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM PAYCOMPNAS
WHERE THNBYR = '" . $tahun . "') A,
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM PAYCOMPNAS
WHERE THNBYR = '" . $tahunl . "') B
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM KWLPAYCOMPNAS
WHERE THNBYR = '" . $tahun . "' AND BLNBYR <= '".$bln."' AND KWLADM = '".$kwl."') A,
(SELECT TO_NUMBER(BLNBYR) JMLBULAN,JUMLAHWP FROM KWLPAYCOMPNAS
WHERE THNBYR = '" . $tahunl ."' AND BLNBYR <= '" . $bln . "' AND KWLADM = '" . $kwl . "') B
WHERE A.JMLBULAN =B.JMLBULAN
ORDER BY A.JMLBULAN ASC");
return $query;
@ -94,11 +97,12 @@ class MKanwil extends Model
{
$tahun = $param['tahun'];
$bln = $param['bln'];
$kwl = $param['kwl'];
$query = $this->db->query("SELECT NO,LAPISAN,WPBYR,TOTAL,
(SELECT SUM(ROUND(WPBYR/2)) FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "') TOTWPBYR,
(SELECT SUM(TOTAL) FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "') TOTALL
(SELECT SUM(ROUND(WPBYR/2)) FROM KWLSOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "' AND KWLADM = '".$kwl."') TOTWPBYR,
(SELECT SUM(TOTAL) FROM KWLSOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "' AND KWLADM = '".$kwl."') TOTALL
FROM (
SELECT NO,LAPISAN,SUM(ROUND(WPBYR/2)) WPBYR,SUM(ROUND(TOTAL)) TOTAL FROM SOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "'
SELECT NO,LAPISAN,SUM(ROUND(WPBYR/2)) WPBYR,SUM(ROUND(TOTAL)) TOTAL FROM KWLSOFNAS WHERE THNBYR = '" . $tahun . "' AND BLNBYR < = '" . $bln . "' AND KWLADM = '".$kwl."'
GROUP BY NO,LAPISAN) ORDER BY NO ASC ");
return $query;
}
@ -110,11 +114,12 @@ class MKanwil extends Model
return $builder->get()->getResult();
}
function getWpsk()
function getWpsk($param)
{
$kwl = $param['kwl'];
$query = $this->db->query("SELECT SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' THEN JUMLAHWP ELSE 0 END) WPK,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' THEN JUMLAHWP ELSE 0 END) WPS
FROM WPSK_MV");
FROM WPSK_MV WHERE KWLADM = '".$kwl."'");
return $query;
}
@ -123,6 +128,7 @@ class MKanwil extends Model
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$bln = $param['bln'];
$kwl = $param['kwl'];
$query = $this->db->query("SELECT
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPSWP,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPS' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPSWPL,
@ -132,7 +138,7 @@ class MKanwil extends Model
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN WPBYR ELSE 0 END) WPKWPL,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahun . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPKBYRN,
SUM(CASE WHEN FLAG_WPS_WPK = 'WPK' AND THNBYR = '" . $tahunl . "' AND BLNBYR <= '" . $bln . "' THEN ROUND(TOTAL) ELSE 0 END) WPKBYRP
FROM BREAKDOWN_PEN");
FROM BREAKDOWN_PEN WHERE KWLADM = '".$kwl."' ");
return $query;
}
@ -140,12 +146,12 @@ class MKanwil extends Model
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$kwl = $param['kwl'];
$query = $this->db->query("SELECT
SUM(CASE WHEN TAHUN <= '" . $tahun . "' THEN JUMLAHWP ELSE 0 END) WPADMNOW,
SUM(CASE WHEN TAHUN <= '" . $tahunl . "' THEN JUMLAHWP ELSE 0 END) WPADMPAST
FROM WP_TERDAFTAR");
FROM WP_TERDAFTAR WHERE KWLADM = '".$kwl."'");
return $query;
}
@ -153,10 +159,10 @@ class MKanwil extends Model
{
$tahun = $param['tahun'];
$tahunl = $tahun - 1;
$kwl = $param['kwl'];
$query = $this->db->query("SELECT SUM(CASE WHEN TAHUN = '" . $tahun . "' THEN JMLLAPOR ELSE 0 END) LAPORNOW,
SUM(CASE WHEN TAHUN = '" . $tahunl . "' THEN JMLLAPOR ELSE 0 END) LAPORPAST
FROM DASH_SPTTAHUNAN");
FROM DASH_SPTTAHUNAN WHERE KWLADM = '".$kwl."'");
return $query;
}
}

2
app/Views/kanwil/dashboard.php

@ -160,7 +160,7 @@ $hariini = date('d-m-y');
<div class="widget-body">
<div class="d-flex justify-content-between align-items-center">
<div class="state">
<h6>Target Nas</h6>
<h6>Target Kanwil</h6>
<h6><b><?= number_format($tgt, 0, ',', '.') ?></b></h6>
</div>
<div class="icon">

1
writable/debugbar/debugbar_1709561162.364085.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562558.161324.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562589.197560.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562751.485337.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709562764.581781.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709563492.650681.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709563525.336195.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564218.713183.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564241.323211.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564276.709166.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564659.255327.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564659.302353.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564663.086797.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564663.541190.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564711.951712.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564711.992728.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564721.515608.json

File diff suppressed because one or more lines are too long

1
writable/debugbar/debugbar_1709564721.944274.json

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save