tussenopslag
This commit is contained in:
@@ -33,7 +33,9 @@ ls.initBestemmingenModel = function(){
|
||||
var subbedrag = 0;
|
||||
|
||||
|
||||
if (b.uitgavetypes) {
|
||||
if (b.uitgavetypes || b.uitgavetypes()) {
|
||||
if (b.uitgavetypes) {
|
||||
|
||||
subbudget = b.uitgavetypes[0].budget;
|
||||
subbedrag = b.uitgavetypes[0].bedrag;
|
||||
|
||||
@@ -41,6 +43,7 @@ ls.initBestemmingenModel = function(){
|
||||
dit.uitgavetypes.push(new fAddUitgavetype(k));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
if ( Number(totbudget) > 0) {
|
||||
if(Number(subbudget) > 0) subbudget = subbudget.replace(/[.| ,]/g, '');
|
||||
@@ -368,8 +371,6 @@ ls.initBestemmingenModel = function(){
|
||||
if(Number(invoer) > 0) dit.bedragFormat(parseFloat(invoer).format(2, 3, '.', ','));
|
||||
else dit.bedragFormat('');
|
||||
|
||||
|
||||
|
||||
dit.bedrag(invoer);
|
||||
var code = dit.code;
|
||||
|
||||
@@ -407,8 +408,6 @@ ls.initBestemmingenModel = function(){
|
||||
// update procenten en reserve totalen van subsoorten
|
||||
$.each(soort === 'BASIS' ? self.basissoorten(): self.extrasoorten(), function(i, b){
|
||||
$.each(b.subsoorten(), function(x, s){
|
||||
|
||||
if (s.uitgavetypes() && s.subsoortID === subsoortid) {
|
||||
subtotaal = Number(s.uitgavetypes()[0].bedrag());
|
||||
if (parseFloat(subtotaal) > 0) {
|
||||
subtotaal = parseFloat(subtotaal).format(2, 3, '.', ',');
|
||||
@@ -424,7 +423,7 @@ ls.initBestemmingenModel = function(){
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
@@ -654,6 +653,10 @@ ls.initBestemmingenModel = function(){
|
||||
},500);
|
||||
}
|
||||
} ; // definition van model
|
||||
|
||||
|
||||
|
||||
|
||||
ls.BestemmingenModel.initBindings();
|
||||
}; // else
|
||||
} // function initBestemmingenModel
|
||||
|
||||
Reference in New Issue
Block a user