diff --git a/application/controllers/monpas/Rapijkpunten.php b/application/controllers/monpas/Rapijkpunten.php
index bd70d8a..9330066 100644
--- a/application/controllers/monpas/Rapijkpunten.php
+++ b/application/controllers/monpas/Rapijkpunten.php
@@ -499,6 +499,51 @@ $lijsten[0]->vorm=2;
$this->Phantom_model->create_pdf($html, $filenaam, FALSE, FALSE, FALSE);
}
+ function ijkpuntenpdf(){
+
+ $inputstring = $this->input->post('data');
+ $input = json_decode($inputstring);
+ $versieID = $input->versie;
+ $titel = $this->Modules_model->get_module_bij_versie($versieID);
+ $data= [];
+ $datum = new DateTime();
+ $datum = $datum->format('Y-m-d H:i:s');
+ $filenaam = preg_replace('/\s+/', '', $titel)."_". preg_replace('/\s+/', '', $datum);
+
+ $data['titel'] = $titel;
+ $data['chart'] = $input->chart;
+ $data['tabellen'] = $input->tabellen;
+ $data['legenda'] = $input->legenda;
+ $data['ambities'] = $input->ambities;
+ $data['resultaten'] = $input->resultaten;
+
+
+
+
+ $logo = [];
+
+ $html = $this->load->view("monpas/reports/ijkpuntenchart", $data, true);
+
+ $filenaam="ijkpunten";
+ $orientatie = 'landscape';
+
+ $this->Phantom_model->create_pdf($html, $filenaam, FALSE, FALSE, FALSE, $orientatie);
+
+
+// $this->Phantom_model->create_pdf($html, $filenaam, FALSE, TRUE, FALSE, 'portrait');
+// $pdf = $this->Phantom_model->create_and_get_pdf($html, $filenaam, FALSE, TRUE, FALSE, 'portrait');
+// $pdf = $pdf.'pdf';
+// $fileNameRapport = '../documents/tmp/'.random_string('alnum', 40).'.pdf';
+// file_put_contents($fileNameRapport, $pdf);
+//
+// header( 'Cache-Control: public' );
+// header( 'Content-type: application/pdf' );
+// header( 'Content-Disposition: inline; filename=" ' . $filenaam . ' ".pdf" ' );
+// header( 'Content-Length: ' . filesize( $fileNameRapport ) );
+// readfile($fileNameRapport );
+// unlink($fileNameRapport);
+ }
+
function maakijkpuntenpdf(){
//TODO clean input
diff --git a/application/core/MY_Controller.php b/application/core/MY_Controller.php
index a38ab81..c8eb24c 100644
--- a/application/core/MY_Controller.php
+++ b/application/core/MY_Controller.php
@@ -90,7 +90,10 @@ class MY_Controller extends CI_Controller{
// public $version = '1.20.13';// wensid was foutief uitgesterd
// public $version = '1.20.14';// spelfout in ijkpunten (kleur ipv kleurV)
// public $version = '1.20.15';// layout koppen prints monfin, jaartal tot juni op t jaar ervoor
- public $version = '1.20.16';// optie niet van toepassing in lijst type 4 nergens meetellen
+// public $version = '1.20.16';// optie niet van toepassing in lijst type 4 nergens meetellen
+// public $version = '1.20.17';// verversen bestemmingen ging niet goed
+ public $version = '1.20.21';// tussenstand vormgeving ijkpunten
+
public $partituurid;
public $globProfielVersieID = 1;
public $userid; //id of the user that is logged in
diff --git a/application/libraries/monpas/ijkpunten/Lijsten.php b/application/libraries/monpas/ijkpunten/Lijsten.php
index 0e2542d..3c2c747 100644
--- a/application/libraries/monpas/ijkpunten/Lijsten.php
+++ b/application/libraries/monpas/ijkpunten/Lijsten.php
@@ -228,8 +228,10 @@ class Lijsten
if(intval($this->lijst->aantalorgs) == 1) $scholen = ' school';
$toevoeging = '';
$versie = ', schoolversie';
+ $versie2 = 'schoolversie';
if(intval($this->lijst->vorm) == 2) {
$versie = ', ind. versie';
+ $versie2 = 'individuele versie';
$metingen =' metingen';
if(intval($this->lijst->metingen) == 1) $metingen = ' meting';
$toevoeging = ', '. $this->lijst->metingen. $metingen;
@@ -239,6 +241,9 @@ class Lijsten
$this->lijst->vantm = "p. " . $this->lijst->orgversie->periodenummer . " van " .
mysql2date($this->lijst->orgversie->geldigvanaf) . " t/m " . mysql2date($this->lijst->orgversie->geldigtm) .
$versie . $toevoeging;
+ $this->lijst->vantmresult = " periode ". $this->lijst->orgversie->periodenummer ."
".
+ mysql2date($this->lijst->orgversie->geldigvanaf)." t/m " . mysql2date($this->lijst->orgversie->geldigtm) .
+ "
".$versie2 . $toevoeging."";
}
private function setLijsten(){
diff --git a/application/models/monfin2/Finbestemmingen_model.php b/application/models/monfin2/Finbestemmingen_model.php
index dd7f56c..27bd0cb 100644
--- a/application/models/monfin2/Finbestemmingen_model.php
+++ b/application/models/monfin2/Finbestemmingen_model.php
@@ -263,7 +263,7 @@ class Finbestemmingen_model extends MY_Model{
JOIN finsoorten FS on FS.id = FSS.finsoort_id
WHERE FB.organisatie_id in ({$orgids})
AND FB.kalenderjaar = {$jaarnr}
- AND FB.uitgavetype = 'TOTAAL'
+ AND FB.uitgavetype <> 'TOTAAL'
GROUP BY categorie, organisatie_id";
return $this->get_query_result();
}
@@ -274,7 +274,7 @@ class Finbestemmingen_model extends MY_Model{
JOIN finsoorten FS on FS.id = FSS.finsoort_id
WHERE FB.organisatie_id in ({$orgids})
AND FB.kalenderjaar = {$jaarnr}
- AND FB.uitgavetype = 'TOTAAL'
+ AND FB.uitgavetype <> 'TOTAAL'
AND FS.categorie = '{$cat}'
GROUP BY categorie";
return $this->get_query_row('bedrag');
diff --git a/application/models/monpas/Modules_model.php b/application/models/monpas/Modules_model.php
index 0541478..54d58bc 100644
--- a/application/models/monpas/Modules_model.php
+++ b/application/models/monpas/Modules_model.php
@@ -125,6 +125,14 @@ class Modules_model extends MY_Model{
return $this->get_query_row("pad");
}
+ function get_module_bij_versie($versieID){
+ $this->sql = "SELECT M.naam
+ FROM tb_modules M
+ JOIN tb_versies V ON M.sysnr = V.modulenr
+ WHERE V.id = {$versieID}";
+ return $this->get_query_row("naam");
+ }
+
diff --git a/application/views/monpas/pages/ijkpunten.php b/application/views/monpas/pages/ijkpunten.php
index bed9766..40e4e5f 100644
--- a/application/views/monpas/pages/ijkpunten.php
+++ b/application/views/monpas/pages/ijkpunten.php
@@ -199,32 +199,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
| - nr + | |||
|---|---|---|---|
| + | + | ||
|
+ nr
+
|
- + | ||
| - | - | + | + |
| + | ||
|---|---|---|
| + | + | |
|
+
+
|
||
|
+
+
|
-
+
+
|
|
| + | ||
|
+
+
+ |
+
+
+
|
- |
| + | ||
|---|---|---|
| + | + | |
|
+
+
|
||
|
+
+
|
-
+
+
|
|
| + | ||
|
+
+
|
- + |
+
+
|
| @@ -348,26 +367,33 @@ | ||
| + | |
|---|---|
| + | + |
|
+
+
|
|
|
+
+
|
|
| + | |
|
+
+
|
|
| @@ -377,22 +403,29 @@ |
| + | |
|---|---|
| + | + |
+
|
|
+
|
|
| + | |
+
|
| @@ -435,18 +472,19 @@ |
+
-
-Periode: =$lijst->vantm?> +
Periode: =$lijst->vantmresult?>
Betreft: =$lijst->metingen?>metingen ==1 ) {echo " meting"; } else {echo "metingen";}; ?>
@@ -280,7 +281,8 @@ met een score van =$lijst->laagstescore?>.