Changeset 1739
- Timestamp:
- Nov 20, 2012, 4:20:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/samplereportgenerator.jsp
r1738 r1739 305 305 else if (viewType == 'QUARTER') 306 306 { 307 // First year307 // First year (from start quarter to end of year) 308 308 numCols = 4 - Math.floor(periodStartDate.getMonth()/3); 309 // Last year (from start of year to end quarter) 309 310 numCols += Math.floor(endDate.getMonth()/3)+1; 311 // If first and last year is the same, subtract 4 quarters 312 if (endDate.getFullYear() - periodStartDate.getFullYear() == 0) 313 { 314 numCols -= 4; 315 } 316 // Full years between start and end dates 310 317 if((endDate.getFullYear() - periodStartDate.getFullYear()) > 1) 311 318 {
Note: See TracChangeset
for help on using the changeset viewer.