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 | public function completed_orders() |
||
70 | |||
71 | public function paid_payments(){ |
||
76 | |||
77 | /** |
||
78 | * Gets total count of orders today |
||
79 | */ |
||
80 | |||
81 | public function total_orders_today() |
||
85 | |||
86 | |||
87 | /** |
||
88 | * Gets total count of orders on a particular day |
||
89 | */ |
||
90 | public function total_orders_on_date($date) |
||
94 | |||
95 | /** |
||
96 | * Gets total count of orders on this month |
||
97 | */ |
||
98 | |||
99 | public function total_orders_this_month() |
||
103 | |||
104 | |||
105 | /** |
||
106 | * Gets total count of orders on a particular month and year |
||
107 | */ |
||
108 | public function total_orders_on_month($month, $year) |
||
112 | |||
113 | |||
114 | /** |
||
115 | * Gets total count of orders on given year |
||
116 | */ |
||
117 | public function total_orders_on_year($year) |
||
121 | |||
122 | |||
123 | /** |
||
124 | * Gets total count of invoices |
||
125 | */ |
||
126 | public function total_invoices() |
||
130 | |||
131 | |||
132 | /** |
||
133 | * Gets total count of invoices today |
||
134 | */ |
||
135 | |||
136 | public function total_invoices_today() |
||
140 | |||
141 | |||
142 | /** |
||
143 | * Gets total count of pending orders |
||
144 | */ |
||
145 | public function total_pending_invoices() |
||
149 | |||
150 | /** |
||
151 | * Gets total sum of pending orders |
||
152 | */ |
||
153 | public function sum_of_pending_invoice_amount() |
||
158 | |||
159 | |||
160 | |||
161 | |||
162 | /** |
||
163 | * Gets total count of pending invoices by status |
||
164 | */ |
||
165 | public function total_invoice_count_by_status($status) |
||
169 | |||
170 | |||
171 | |||
172 | |||
173 | /** |
||
174 | * Gets total sum of pending invoices by status |
||
175 | */ |
||
176 | public function sum_of_given_invoice_status_amount($status) |
||
181 | |||
182 | |||
183 | |||
184 | /** |
||
185 | * Gets total count of completed invoices |
||
186 | */ |
||
187 | public function total_completed_invoices() |
||
191 | |||
192 | /** |
||
193 | * Gets total sum of completed invoices |
||
194 | */ |
||
195 | public function sum_of_completed_invoice_amount() |
||
200 | } |
||
201 |