Ignore:
Timestamp:
Apr 4, 2016, 12:44:23 AM (9 years ago)
Author:
chronos
Message:
  • Fixed: Wrong calculation of billing period.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r799 r823  
    5050
    5151    /* Get start and end of aligned period */
    52     $MonthFrom = floor(($MonthCurrent - 1) / $MonthCount) + 1;
     52    $MonthFrom = floor(($MonthCurrent - 1) / $MonthCount) * $MonthCount + 1;
    5353    $MonthTo = $MonthFrom + $MonthCount - 1;
    54 
     54   
    5555    /* Use period from current month to end month so months before current month are cut out */
    5656    $MonthCount = $MonthTo - $MonthCurrent + 1;
Note: See TracChangeset for help on using the changeset viewer.