=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-20 05:15:30 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-09-20 07:26:20 +0000 @@ -647,7 +647,13 @@ jQuery('#tb_' + programInstanceId + ' .arrow-left').removeClass("hidden"); jQuery('#tb_' + programInstanceId + ' .arrow-right').removeClass("hidden"); } - setEventColorStatus( programStageInstanceId, 3 ); + + if( dueDateInStage< getCurrentDate() ){ + setEventColorStatus( programStageInstanceId, 4 ); + } + else{ + setEventColorStatus( programStageInstanceId, 3 ); + } jQuery('#ps_' + programStageInstanceId ).focus(); jQuery('#createNewEncounterDiv_' + programInstanceId).dialog("close"); loadDataEntry( programStageInstanceId );