Handle missing weeks at the start of the report period. 2014-04-10
authorIain Patterson <me@iain.cx>
Thu, 10 Apr 2014 15:29:18 +0000 (11:29 -0400)
committerIain Patterson <me@iain.cx>
Thu, 10 Apr 2014 15:29:18 +0000 (11:29 -0400)
commitf720a723a18a95cede2cdd22cc3199a39232059f
tree2a3babd61ff539a01f5d6b37e4c2104199228fe6
parent7cbf38d98e84961ccab6cd8213e322fa775a2b9e
Handle missing weeks at the start of the report period.

If there were no orders during the first week(s) of a report period we
were incorrectly treating the first week in which there were orders as
week 1.

We now determine the week offset based on the yearweek of the period
start date and correctly include one or more weeks with zero orders in
the output.
lib/report.php