dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19409
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8451: Added financial period types to periodType.js
------------------------------------------------------------
revno: 8451
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-10-09 13:39:10 +0200
message:
Added financial period types to periodType.js
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js
--
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-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js 2012-09-03 19:48:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/periodType.js 2012-10-09 11:39:10 +0000
@@ -302,6 +302,7 @@
period['endDate'] = endDate.format( dateFormat );
period['name'] = monthNames[9] + ' ' + startDate.date().getFullYear() + '-' + monthNames[8] + ' ' + (startDate.date().getFullYear() +1 );
period['id'] = 'FinancialOct_' + period['startDate'];
+ period['iso'] = year + 'Oct';
periods[i] = period;
startDate.adjust( 'Y', +1 );
@@ -328,6 +329,7 @@
period['endDate'] = endDate.format( dateFormat );
period['name'] = monthNames[6] + ' ' + startDate.date().getFullYear() + '-' + monthNames[5] + ' ' + (startDate.date().getFullYear() +1 );
period['id'] = 'FinancialJuly_' + period['startDate'];
+ period['iso'] = year + 'July';
periods[i] = period;
startDate.adjust( 'Y', +1 );
@@ -354,6 +356,7 @@
period['endDate'] = endDate.format( dateFormat );
period['name'] = monthNames[3] + ' ' + startDate.date().getFullYear() + '-' + monthNames[2] + ' ' + (startDate.date().getFullYear() +1 );
period['id'] = 'FinancialApril_' + period['startDate'];
+ period['iso'] = year + 'April';
periods[i] = period;
startDate.adjust( 'Y', +1 );