diff --git a/entity/Contract_entity/onValidation.js b/entity/Contract_entity/onValidation.js index 07ec6d5c095b971e0fa242207390a0244a0a65f5..679cbdf51a904ec7311bf08d3c70213941c03ee7 100644 --- a/entity/Contract_entity/onValidation.js +++ b/entity/Contract_entity/onValidation.js @@ -13,7 +13,7 @@ if (!DateUtils.validateBeginnBeforeEnd(startDate, endDate)) errorMessage = DateUtils.getValidationFailString(); // check Duedate -var cDue = vars.get("local.value"); +var cDue = vars.get("$field.CONTRACTDUE"); if (cDue && (startDate && !DateUtils.validateBeginnBeforeEnd(startDate, cDue) || endDate && !DateUtils.validateBeginnBeforeEnd(cDue, endDate))) { if (errorMessage != "")