MT#55418 hide billing mappings with terminated profiles in AUI

Change-Id: Id480f3c0928d8e3d0a29dd3508c08de68e64ce5a
(cherry picked from commit a9f53cdf82)
mr10.5.4
Rene Krenn 3 years ago
parent 2408fa56bb
commit fb05e7b26a

@ -563,6 +563,14 @@ sub resource_from_mappings {
); #validate_forms uses RFC3339 otherwise, which contains the tz offset part
foreach my $mapping (billing_mappings_ordered($future_only ? future_billing_mappings($contract->billing_mappings) : $contract->billing_mappings)->all) {
my $profile = $mapping->billing_profile;
if ($profile and 'terminated' eq $profile->status) {
next;
}
my $network = $mapping->network;
if ($network and 'terminated' eq $network->status) {
next;
}
my %m = $mapping->get_inflated_columns;
delete $m{id};
$m{start} = delete $m{start_date};

Loading…
Cancel
Save