Revision 94589a4e
Von Tamino vor etwa 3 Jahren hinzugefügt
SL/DB/ShopOrder.pm | ||
---|---|---|
171 | 171 |
return $customers; |
172 | 172 |
} |
173 | 173 |
|
174 |
sub check_for_open_invoices { |
|
175 |
my ($self) = @_; |
|
176 |
my $open_invoices = SL::DB::Manager::Invoice->get_all_count( |
|
177 |
query => [customer_id => $self->{kivi_customer_id}, |
|
178 |
paid => {lt_sql => 'amount'}, |
|
179 |
], |
|
180 |
); |
|
181 |
return $open_invoices; |
|
182 |
} |
|
183 |
|
|
174 | 184 |
sub get_customer{ |
175 | 185 |
my ($self, %params) = @_; |
176 | 186 |
my $shop = SL::DB::Manager::Shop->find_by(id => $self->shop_id); |
Auch abrufbar als: Unified diff
WebshopApi: Controller/ShopOrder.pm überarbeitet