X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Freason.html;h=331db4439d5b19ec48b51c3d21939c42eef0d04c;hp=78d044755648d1c930b11324621bb3f9e6d48a12;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=0af38652da3b3be7da2d35b048285ef6f2194e1a diff --git a/httemplate/edit/reason.html b/httemplate/edit/reason.html index 78d044755..331db4439 100644 --- a/httemplate/edit/reason.html +++ b/httemplate/edit/reason.html @@ -13,8 +13,12 @@ 'reason' => $classname . ' Reason', 'disabled' => 'Disabled', 'class' => '', - 'unsuspend_pkgpart' => 'Unsuspension fee', - 'unsuspend_hold' => 'Delay until next bill', + 'feepart' => 'Charge a suspension fee', + 'fee_on_unsuspend' => 'When a package is', + 'fee_hold' => 'Delay fee until next bill', + 'unused_credit' => 'Credit unused portion of service', + 'unsuspend_pkgpart' => 'Order an unsuspension package', + 'unsuspend_hold' => 'Delay package until next bill', }, 'fields' => \@fields, &> @@ -61,18 +65,42 @@ my @fields = ( }, ); -push @fields, - { 'field' => 'unsuspend_pkgpart', - 'type' => 'select-part_pkg', - 'hashref' => { 'disabled' => '', - 'freq' => 0 }, # one-time charges only - }, - { 'field' => 'unsuspend_hold', - 'type' => 'checkbox', - 'value' => 'Y', - }, - if ( $class eq 'S' ); - - +if ( $class eq 'S' or $class eq 'C' ) { + push @fields, + { 'field' => 'unused_credit', + 'type' => 'checkbox', + 'value' => 'Y', + }; +} +if ( $class eq 'S' ) { + { 'type' => 'tablebreak-tr-title' }, + { 'field' => 'feepart', + 'type' => 'select-table', + 'table' => 'part_fee', + 'hashref' => { disabled => '' }, + 'name_col' => 'itemdesc', + 'value_col' => 'feepart', + 'empty_label' => 'none', + }, + { 'field' => 'fee_on_unsuspend', + 'type' => 'select', + 'options' => [ '', 'Y' ], + 'labels' => { '' => 'suspended', 'Y' => 'unsuspended' }, + }, + { 'field' => 'fee_hold', + 'type' => 'checkbox', + 'value' => 'Y', + }, + { 'field' => 'unsuspend_pkgpart', + 'type' => 'select-part_pkg', + 'hashref' => { 'disabled' => '', + 'freq' => 0 }, # one-time charges only + }, + { 'field' => 'unsuspend_hold', + 'type' => 'checkbox', + 'value' => 'Y', + }, + ; +}