RE: period generation
The code is all there so you can see for yourself - care is taken to ensure that the code is as readable as it possibly can be.
The function GetPeriod($Some_Given_Date, $db) in the file includes/DateFunctions.inc is responsible for figuring out which period a date belongs in ... if the date belongs in a period subsequent or prior to the defined periods then new periods are defined and inserted into the database.
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
|