root / db / bill_calculator.py @ c130b56e
History | View | Annotate | Download (1.6 kB)
1 | ace4bd5d | Georgios Gousios | # Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 7bd50624 | Vassilios Karakoidas | #
|
3 | ace4bd5d | Georgios Gousios | # Redistribution and use in source and binary forms, with or without
|
4 | ace4bd5d | Georgios Gousios | # modification, are permitted provided that the following conditions
|
5 | ace4bd5d | Georgios Gousios | # are met:
|
6 | 7bd50624 | Vassilios Karakoidas | #
|
7 | ace4bd5d | Georgios Gousios | # 1. Redistributions of source code must retain the above copyright
|
8 | ace4bd5d | Georgios Gousios | # notice, this list of conditions and the following disclaimer.
|
9 | 7bd50624 | Vassilios Karakoidas | #
|
10 | ace4bd5d | Georgios Gousios | # 2. Redistributions in binary form must reproduce the above copyright
|
11 | ace4bd5d | Georgios Gousios | # notice, this list of conditions and the following disclaimer in the
|
12 | ace4bd5d | Georgios Gousios | # documentation and/or other materials provided with the distribution.
|
13 | 7bd50624 | Vassilios Karakoidas | #
|
14 | ace4bd5d | Georgios Gousios | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
15 | ace4bd5d | Georgios Gousios | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16 | ace4bd5d | Georgios Gousios | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
17 | ace4bd5d | Georgios Gousios | # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
18 | ace4bd5d | Georgios Gousios | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19 | ace4bd5d | Georgios Gousios | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
20 | ace4bd5d | Georgios Gousios | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
21 | ace4bd5d | Georgios Gousios | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
22 | ace4bd5d | Georgios Gousios | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
23 | ace4bd5d | Georgios Gousios | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
24 | ace4bd5d | Georgios Gousios | # SUCH DAMAGE.
|
25 | ace4bd5d | Georgios Gousios | #
|
26 | ace4bd5d | Georgios Gousios | # The views and conclusions contained in the software and documentation are
|
27 | ace4bd5d | Georgios Gousios | # those of the authors and should not be interpreted as representing official
|
28 | ace4bd5d | Georgios Gousios | # policies, either expressed or implied, of GRNET S.A.
|
29 | ace4bd5d | Georgios Gousios | |
30 | ace4bd5d | Georgios Gousios | # Bill Allocator - Administration script
|
31 | ace4bd5d | Georgios Gousios | #
|
32 | ace4bd5d | Georgios Gousios | # Executed monthly to issue a detailed bill for each user
|
33 | 7bd50624 | Vassilios Karakoidas | |
34 | bfd0754e | Vassilios Karakoidas | def calculate_bills(): |
35 | 7bd50624 | Vassilios Karakoidas | return |