1 | <?php |
||
24 | class Stats |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Gets total count of orders |
||
29 | */ |
||
30 | public function total_orders() |
||
35 | |||
36 | /** |
||
37 | * Gets total count of cancelled orders |
||
38 | */ |
||
39 | public function total_cancelled_orders() |
||
43 | |||
44 | /** |
||
45 | * Gets total count of pending orders |
||
46 | */ |
||
47 | public function total_pending_orders() |
||
51 | |||
52 | /** |
||
53 | * Gets total sum of pending orders |
||
54 | */ |
||
55 | public function sum_of_pending_amount() |
||
60 | |||
61 | public function total_completed_orders() |
||
65 | |||
66 | |||
67 | public function paid_payments(){ |
||
72 | |||
73 | /** |
||
74 | * Gets total count of orders today |
||
75 | */ |
||
76 | |||
77 | public function total_orders_today() |
||
81 | |||
82 | |||
83 | /** |
||
84 | * Gets total count of orders on a particular day |
||
85 | */ |
||
86 | public function total_orders_on_date($date) |
||
90 | |||
91 | /** |
||
92 | * Gets total count of orders on this month |
||
93 | */ |
||
94 | |||
95 | public function total_orders_this_month() |
||
99 | |||
100 | |||
101 | /** |
||
102 | * Gets total count of orders on a particular month and year |
||
103 | */ |
||
104 | public function total_orders_on_month($month, $year) |
||
108 | |||
109 | |||
110 | /** |
||
111 | * Gets total count of orders on given year |
||
112 | */ |
||
113 | public function total_orders_on_year($year) |
||
117 | |||
118 | |||
119 | /** |
||
120 | * Gets total count of invoices |
||
121 | */ |
||
122 | public function total_invoices() |
||
126 | |||
127 | |||
128 | /** |
||
129 | * Gets total count of invoices today |
||
130 | */ |
||
131 | |||
132 | public function total_invoices_today() |
||
136 | |||
137 | |||
138 | /** |
||
139 | * Gets total count of pending orders |
||
140 | */ |
||
141 | public function total_pending_invoices() |
||
145 | |||
146 | /** |
||
147 | * Gets total sum of pending orders |
||
148 | */ |
||
149 | public function sum_of_pending_invoice_amount() |
||
154 | |||
155 | |||
156 | |||
157 | |||
158 | /** |
||
159 | * Gets total count of pending invoices by status |
||
160 | */ |
||
161 | public function total_invoice_count_by_status($status) |
||
165 | |||
166 | |||
167 | |||
168 | |||
169 | /** |
||
170 | * Gets total sum of pending invoices by status |
||
171 | */ |
||
172 | public function sum_of_given_invoice_status_amount($status) |
||
177 | |||
178 | |||
179 | |||
180 | /** |
||
181 | * Gets total count of completed invoices |
||
182 | */ |
||
183 | public function total_completed_invoices() |
||
187 | |||
188 | /** |
||
189 | * Gets total sum of completed invoices |
||
190 | */ |
||
191 | public function sum_of_completed_invoice_amount() |
||
196 | } |
||
197 |