check if the value is null, set it to zero

pull/9601/head
bsatarnejad 3 years ago
parent 80ceaee0d1
commit 6c62d1fda8
  1. 3
      modules/budgets/frontend/module/augment/planned-costs-form.ts

@ -65,7 +65,8 @@ export class PlannedCostsFormAugment {
}
private getValue() {
return jQuery('#' + this.objId + '_cost_value').val();
let costValueElement = jQuery('#' + this.objId + '_cost_value');
return costValueElement.length > 0 ? costValueElement.val() : '0.00';
}
private edit() {

Loading…
Cancel
Save