fixed bug on load

This commit is contained in:
Gerard 2018-10-22 14:36:07 +02:00
parent a010871a7d
commit 409c78ec94
1 changed files with 7 additions and 6 deletions

View File

@ -75,13 +75,14 @@ class Controller {
} }
setClaimDestination(id, claimDestinationFk) { setClaimDestination(id, claimDestinationFk) {
if (claimDestinationFk) {
let params = {id: id, claimDestinationFk: claimDestinationFk}; let params = {id: id, claimDestinationFk: claimDestinationFk};
let query = `claim/api/ClaimEnds/`; let query = `claim/api/ClaimEnds/`;
this.$http.patch(query, params).then(() => { this.$http.patch(query, params).then(() => {
this.$.model.refresh();
this.vnApp.showSuccess(this.$translate.instant('Data saved!')); this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
}); });
} }
}
calculateTotals() { calculateTotals() {
this.claimedTotal = 0; this.claimedTotal = 0;