info tekst financien en kleiner ijkpuntenblokje
This commit is contained in:
@@ -75,6 +75,7 @@ mh.initCompactSopModel = function(){
|
||||
var schooljaar = mh.CompactSopModel.selectedSchooljaar() ? mh.CompactSopModel.selectedSchooljaar().naam : '' ;
|
||||
var tekst = ''
|
||||
var diversiteit = o.erIsDiversiteit === 'T' ? true : false
|
||||
console.log(this.type, "type")
|
||||
|
||||
if(this.type=="DIV") {
|
||||
if (diversiteit) return this.versie
|
||||
@@ -86,16 +87,13 @@ mh.initCompactSopModel = function(){
|
||||
}
|
||||
|
||||
if (this.type== "FIN"){
|
||||
console.log("waar hij niet moet zijn");
|
||||
|
||||
if ((!this.budgetversies() || this.budgetversies().length === 0)
|
||||
) {
|
||||
if((Number(this.modulenr) == 30 && Number(mh.CompactSopModel.selectedSchooljaar().id) > 7 ) ||
|
||||
(Number(mh.CompactSopModel.orgsoortnummer()) < 4)){
|
||||
return "De monitor financiën " + schooljaar + " is niet ingevuld."}
|
||||
else{
|
||||
return "Vul eerst de monitor financiën " + schooljaar + " in."}
|
||||
}
|
||||
var jaar1 = mh.CompactSopModel.selectedSchooljaar() ? mh.CompactSopModel.selectedSchooljaar().naam.substr(0, 4) : "" ;
|
||||
var jaar2 = mh.CompactSopModel.selectedSchooljaar() ? mh.CompactSopModel.selectedSchooljaar().naam.substr(5, 4) : "" ;
|
||||
var jaren = jaar1 + ' en ' + jaar2;
|
||||
|
||||
if (!this.budgetversies() || this.budgetversies().length === 0) return "De monitoren financiën " + jaren + " zijn niet ingevuld."
|
||||
if (this.budgetversies().length == 1) return "Kalenderjaar: " + this.budgetversies()[0].kalenderjaar()
|
||||
if (this.budgetversies().length > 1) return "Meerdere versies beschikbaar."
|
||||
return 'fout'
|
||||
@@ -359,6 +357,7 @@ mh.initCompactSopModel = function(){
|
||||
fGetSchooljaren: function(callback){
|
||||
var self =mh.CompactSopModel;
|
||||
$.post("index.php/monpas/compactsop/getSchooljaren", function(data){
|
||||
console.log(data, "schooljaren")
|
||||
self.selectedSchooljaar(null)
|
||||
self.schooljaren.removeAll();
|
||||
self.toonOnderdelen(true)
|
||||
@@ -371,6 +370,7 @@ mh.initCompactSopModel = function(){
|
||||
self.schooljaren.push(new fAddSchooljaar(s));
|
||||
});//each
|
||||
if (self.schooljaren() ) self.selectedSchooljaar(self.schooljaren()[0]);
|
||||
console.log(self.selectedSchooljaar(), "selected Schooljaar")
|
||||
|
||||
} // if
|
||||
self.druk(false);
|
||||
|
||||
Reference in New Issue
Block a user