MT#6703 fix merge conflict

and remove one more class dependency (see MT#6559)
agranig/subprof
Gerhard Jungwirth 12 years ago
parent 0c5c6ff0f8
commit 3bdc7c74b9

@ -687,7 +687,7 @@ sub peaktime_specials_create :Chained('peaktimes_list') :PathPart('date/create')
$c->stash(peaktimes_special_createflag => 1);
}
$CLASS->meta->make_immutable;
__PACKAGE__->meta->make_immutable;
1;

@ -19,8 +19,8 @@ use NGCP::Panel::Form::Contract::ProductOptional;
sub item_rs {
my ($self, $c) = @_;
my $item_rs = NGCP::Panel::Utils::Contract::get_contract_rs(
schema => $c->model('DB'),
my $item_rs = NGCP::Panel::Utils::Contract::get_contracts_rs_sippbx(
c => $c,
);
$item_rs = $item_rs->search({
'contact.reseller_id' => { '-not' => undef },
@ -122,7 +122,6 @@ sub hal_from_customer {
sub customer_by_id {
my ($self, $c, $id) = @_;
my $customers = NGCP::Panel::Utils::Contract::get_contracts_rs_sippbx(
my $customers = $self->item_rs($c);
return $customers->find($id);
}

Loading…
Cancel
Save