invullen 0 waarden aantal tlvs
This commit is contained in:
@@ -119,15 +119,15 @@ class Omvang extends MY_Controller{
|
|||||||
$middenIDNieuw = false;
|
$middenIDNieuw = false;
|
||||||
$hoogIDNieuw = false;
|
$hoogIDNieuw = false;
|
||||||
|
|
||||||
if(intval($laag) > 0 && intval($laagID) > 0) {
|
if(intval($laag) >= 0 && intval($laagID) > 0) {
|
||||||
$laagIDNieuw = $this->Tlvs_model->update_record(['aantal' => $laag], $laagID);
|
$laagIDNieuw = $this->Tlvs_model->update_record(['aantal' => $laag], $laagID);
|
||||||
|
|
||||||
}
|
}
|
||||||
if(intval($midden) > 0 && intval($middenID) > 0) {
|
if(intval($midden) >= 0 && intval($middenID) > 0) {
|
||||||
$middenIDNieuw = $this->Tlvs_model->update_record(['aantal' => $midden], $middenID);
|
$middenIDNieuw = $this->Tlvs_model->update_record(['aantal' => $midden], $middenID);
|
||||||
|
|
||||||
}
|
}
|
||||||
if(intval($hoog) > 0 && intval($hoogID) > 0) {
|
if(intval($hoog) >= 0 && intval($hoogID) > 0) {
|
||||||
$hoogIDNieuw = $this->Tlvs_model->update_record(['aantal' => $hoog], $hoogID);
|
$hoogIDNieuw = $this->Tlvs_model->update_record(['aantal' => $hoog], $hoogID);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -186,11 +186,11 @@ class Omvang extends MY_Controller{
|
|||||||
$lichtIDNieuw = false;
|
$lichtIDNieuw = false;
|
||||||
$zwaarIDNieuw = false;
|
$zwaarIDNieuw = false;
|
||||||
|
|
||||||
if(intval($licht) > 0 && intval($lichtID) > 0) {
|
if(intval($licht) >= 0 && intval($lichtID) >0) {
|
||||||
$lichtIDNieuw = $this->Tlvs_model->update_record(['aantal' => $licht], $lichtID);
|
$lichtIDNieuw = $this->Tlvs_model->update_record(['aantal' => $licht], $lichtID);
|
||||||
|
|
||||||
}
|
}
|
||||||
if(intval($zwaar) > 0 && intval($zwaarID) > 0) {
|
if(intval($zwaar) >= 0 && intval($zwaarID) > 0) {
|
||||||
$zwaarIDNieuw = $this->Tlvs_model->update_record(['aantal' => $zwaar], $zwaarID);
|
$zwaarIDNieuw = $this->Tlvs_model->update_record(['aantal' => $zwaar], $zwaarID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ mh.initInvulModel = function(){
|
|||||||
|
|
||||||
fSaveSO: function(){
|
fSaveSO: function(){
|
||||||
var self = mh.InvulModel;
|
var self = mh.InvulModel;
|
||||||
|
console.log("in functie SO")
|
||||||
var message = false;
|
var message = false;
|
||||||
|
|
||||||
if(isNaN(self.laag())){
|
if(isNaN(self.laag())){
|
||||||
@@ -314,6 +315,7 @@ mh.initInvulModel = function(){
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(submitData, "submitData SO")
|
||||||
$.post("index.php/monpas/omvang/saveTlvsSO", submitData, function (result) {
|
$.post("index.php/monpas/omvang/saveTlvsSO", submitData, function (result) {
|
||||||
if(result){
|
if(result){
|
||||||
if(result.laag) self.laagID(result.laag);
|
if(result.laag) self.laagID(result.laag);
|
||||||
@@ -322,7 +324,7 @@ mh.initInvulModel = function(){
|
|||||||
}
|
}
|
||||||
}, 'json');
|
}, 'json');
|
||||||
|
|
||||||
}, 600);
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
fSaveSBO: function(){
|
fSaveSBO: function(){
|
||||||
@@ -354,6 +356,7 @@ mh.initInvulModel = function(){
|
|||||||
'zwaarID' : self.zwaarID(),
|
'zwaarID' : self.zwaarID(),
|
||||||
'schooljaarnr': self.selectedSchooljaar().nummer,
|
'schooljaarnr': self.selectedSchooljaar().nummer,
|
||||||
};
|
};
|
||||||
|
console.log(submitData, "submit")
|
||||||
$.post("index.php/monpas/omvang/saveTlvsSBO", submitData, function (result) {
|
$.post("index.php/monpas/omvang/saveTlvsSBO", submitData, function (result) {
|
||||||
if(result){
|
if(result){
|
||||||
if(result.licht) self.lichtID(result.licht);
|
if(result.licht) self.lichtID(result.licht);
|
||||||
@@ -362,7 +365,7 @@ mh.initInvulModel = function(){
|
|||||||
}
|
}
|
||||||
}, 'json');
|
}, 'json');
|
||||||
|
|
||||||
}, 600);
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user