|
|
|
@ -10,7 +10,7 @@ class Mpemby extends Model
|
|
|
|
|
function getPenn($param) |
|
|
|
|
{ |
|
|
|
|
$tahun = $param['tahun']; |
|
|
|
|
$bln = date('m'); |
|
|
|
|
$bln = $param['bln']; |
|
|
|
|
$query = $this->db->query("SELECT NM_KANWIL, TARGET, SUM(PENERIMAAN_BERJALAN) PENB, SUM(PENERIMAAN_LALU) PENL, |
|
|
|
|
(SUM(PENERIMAAN_BERJALAN)/TARGET)*100 PENCAPAIAN, ((SUM(PENERIMAAN_BERJALAN)-SUM(PENERIMAAN_LALU))/SUM(PENERIMAAN_LALU))*100 PERTUMBUHAN |
|
|
|
|
FROM KINERJA_PENERIMAAN |
|
|
|
@ -34,7 +34,7 @@ class Mpemby extends Model
|
|
|
|
|
{ |
|
|
|
|
$tahun = $param['tahun']; |
|
|
|
|
$tahunl = $tahun - 1; |
|
|
|
|
$bln = date('m'); |
|
|
|
|
$bln = $param['bln']; |
|
|
|
|
$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, |
|
|
|
@ -53,7 +53,7 @@ class Mpemby extends Model
|
|
|
|
|
{ |
|
|
|
|
$tahun = $param['tahun']; |
|
|
|
|
$tahunl = $tahun - 1; |
|
|
|
|
$bln = date('m'); |
|
|
|
|
$bln = $param['bln']; |
|
|
|
|
$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 |
|
|
|
|