RT# 77964 - refined code to defer dates when waiving setup fee for prorated packages.
[freeside.git] / FS / FS / cust_main / Billing.pm
index debff8a..79a0c9e 100644 (file)
@@ -1253,6 +1253,9 @@ sub _make_lines {
         }
     }
 
+    $lineitems++
+    if $cust_pkg->waive_setup && $part_pkg->can('prorate_setup') && $part_pkg->prorate_setup($cust_pkg, $time);
+
     $cust_pkg->setfield('setup', $time)
       unless $cust_pkg->setup;
           #do need it, but it won't get written to the db