Revision d6dbee34
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
SL/DB/Shipto.pm | ||
---|---|---|
19 | 19 |
return $text; |
20 | 20 |
} |
21 | 21 |
|
22 |
sub used { |
|
23 |
my ($self) = @_; |
|
24 |
|
|
25 |
return unless $self->shipto_id; |
|
26 |
|
|
27 |
require SL::DB::Order; |
|
28 |
require SL::DB::Invoice; |
|
29 |
require SL::DB::DeliveryOrder; |
|
30 |
|
|
31 |
return SL::DB::Manager::Order->get_all_count(query => [ shipto_id => $self->shipto_id ]) |
|
32 |
|| SL::DB::Manager::Invoice->get_all_count(query => [ shipto_id => $self->shipto_id ]) |
|
33 |
|| SL::DB::Manager::DeliveryOrder->get_all_count(query => [ shipto_id => $self->shipto_id ]); |
|
34 |
} |
|
35 |
|
|
36 |
sub detach { |
|
37 |
$_[0]->trans_id(undef); |
|
38 |
$_[0]; |
|
39 |
} |
|
40 |
|
|
22 | 41 |
1; |
Auch abrufbar als: Unified diff
SL::DB::Shipto: used und detach Methoden