TT#82304 fix fraud reseller<->customer costs in mails

Change-Id: I2c514b2a862f7e156c4a1acc4385701b83e68bc9
(cherry picked from commit 39bf6abf47)
changes/37/40237/1
Rene Krenn 5 years ago
parent 12a99c1d54
commit c967dc1ebf

@ -116,9 +116,9 @@ sub resource_from_item {
$resource{'type'} = 'profile_limit' if $resource{'type'} eq 'billing_profile';
if ($billing_profile->fraud_use_reseller_rates) {
$resource{'interval_cost'} = $cpc{'customer_cost'};
} else {
$resource{'interval_cost'} = $cpc{'reseller_cost'};
} else {
$resource{'interval_cost'} = $cpc{'customer_cost'};
}
if ('month' eq $cpc{'period'}) {
if ('contract' eq $cpc{'fraud_limit_type'}) {

Loading…
Cancel
Save