From: Ivan Kohler Date: Tue, 3 Jun 2014 01:35:22 +0000 (-0700) Subject: add prepaid-never_renew flag, RT#26274 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8a21d677b660e24677f6c4796f0f07a696ab8332 add prepaid-never_renew flag, RT#26274 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 36bfa43bb..b19859848 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5722,6 +5722,13 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'prepaid-never_renew', + 'section' => 'billing', + 'description' => 'Prepaid packages never renew.', + 'type' => 'checkbox', + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/FS/bin/freeside-prepaidd b/FS/bin/freeside-prepaidd index c095ceee4..fe5b54581 100644 --- a/FS/bin/freeside-prepaidd +++ b/FS/bin/freeside-prepaidd @@ -49,8 +49,10 @@ while (1) { next; } - if ( $cust_main->total_unapplied_payments > 0 - || $cust_main->total_unapplied_credits > 0 + if ( ( $cust_main->total_unapplied_payments > 0 + || $cust_main->total_unapplied_credits > 0 + ) + && ! FS::Conf->new->exists('prepaid-never_renew') ) {