% #add recurring amounts for this package and its billing add-ons
% foreach my $l_part_pkg ( $part_pkg->self_and_bill_linked ) {
% #add recurring amounts for this package and its billing add-ons
% foreach my $l_part_pkg ( $part_pkg->self_and_bill_linked ) {
% foreach my $cust_pkg_discount ( $cust_pkg->cust_pkg_discount_active ) {
% my $discount = $cust_pkg_discount->discount;
% #and only one of these for each
% foreach my $cust_pkg_discount ( $cust_pkg->cust_pkg_discount_active ) {
% my $discount = $cust_pkg_discount->discount;
% #and only one of these for each