|
|
@ -83,12 +83,28 @@ sub query_params {
|
|
|
|
{ 'domain.domain' => { '=' => $q } };
|
|
|
|
{ 'domain.domain' => { '=' => $q } };
|
|
|
|
},
|
|
|
|
},
|
|
|
|
second => sub {
|
|
|
|
second => sub {
|
|
|
|
{ join => { voip_subscribers => 'domain' },
|
|
|
|
{
|
|
|
|
|
|
|
|
join => { voip_subscribers => 'domain' },
|
|
|
|
distinct => 1,
|
|
|
|
distinct => 1,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
param => 'prepaid',
|
|
|
|
|
|
|
|
description => 'Filter for contracts with a prepaid billing profile',
|
|
|
|
|
|
|
|
query => {
|
|
|
|
|
|
|
|
first => sub {
|
|
|
|
|
|
|
|
my $q = shift;
|
|
|
|
|
|
|
|
{ 'billing_profile.prepaid' => ($q ? 1 : 0) };
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
second => sub {
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
join => { billing_mappings_actual => { billing_mappings => 'billing_profile' } },
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|