dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24683
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12144: set CANCEL status on cancelled programinstances in programinstanceservice
------------------------------------------------------------
revno: 12144
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-09-18 15:55:25 +0200
message:
set CANCEL status on cancelled programinstances in programinstanceservice
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2013-09-18 13:09:07 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/program/DefaultProgramInstanceService.java 2013-09-18 13:55:25 +0000
@@ -762,6 +762,7 @@
Date currentDate = today.getTime();
programInstance.setEndDate( currentDate );
+ programInstance.setStatus( ProgramInstance.STATUS_CANCELLED );
updateProgramInstance( programInstance );
// ---------------------------------------------------------------------