+ if ( ref($cust_bill_pkg) eq 'FS::quotation_pkg' ) {
+
+ warn "$me _items_cust_bill_pkg cust_bill_pkg is quotation_pkg\n"
+ if $DEBUG > 1;
+
+ if ( $cust_bill_pkg->setup != 0 ) {
+ my $description = $desc;
+ $description .= ' Setup'
+ if $cust_bill_pkg->recur != 0
+ || $discount_show_always
+ || $cust_bill_pkg->recur_show_zero;
+ push @b, {
+ 'description' => $description,
+ 'amount' => sprintf("%.2f", $cust_bill_pkg->setup),
+ };
+ }
+ if ( $cust_bill_pkg->recur != 0 ) {
+ push @b, {
+ 'description' => "$desc (". $cust_bill_pkg->part_pkg->freq_pretty.")",
+ 'amount' => sprintf("%.2f", $cust_bill_pkg->recur),
+ };
+ }
+
+ } elsif ( $cust_bill_pkg->pkgnum > 0 ) {