|
Lines 149-155
sub filter_by_lates {
Link Here
|
| 149 |
|
149 |
|
| 150 |
my $new_rs = $orders->filter_by_active; |
150 |
my $new_rs = $orders->filter_by_active; |
| 151 |
|
151 |
|
| 152 |
Returns a new resultset filtering orders that are not active. |
152 |
Returns a new resultset containing active orders only. |
|
|
153 |
|
| 154 |
Note: An active order (line) has status ordered or partial, or it has status new |
| 155 |
and the basket is marked as standing order. |
| 153 |
|
156 |
|
| 154 |
=cut |
157 |
=cut |
| 155 |
|
158 |
|
|
Lines 167-181
sub filter_by_active {
Link Here
|
| 167 |
); |
170 |
); |
| 168 |
} |
171 |
} |
| 169 |
|
172 |
|
| 170 |
=head3 filter_by_current |
173 |
=head3 filter_out_cancelled |
| 171 |
|
174 |
|
| 172 |
$orders->filter_by_current |
175 |
$orders->filter_out_cancelled |
| 173 |
|
176 |
|
| 174 |
Return the orders of the set that have not been cancelled. |
177 |
Return the orders of the set that have not been cancelled. |
| 175 |
|
178 |
|
| 176 |
=cut |
179 |
=cut |
| 177 |
|
180 |
|
| 178 |
sub filter_by_current { |
181 |
sub filter_out_cancelled { |
| 179 |
my ($self) = @_; |
182 |
my ($self) = @_; |
| 180 |
return $self->search( |
183 |
return $self->search( |
| 181 |
{ |
184 |
{ |