RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / edit / reason.html
index 3e6645e..331db44 100644 (file)
                 '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,
 &>
@@ -62,8 +65,32 @@ my @fields = (
   },
 );
 
-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' => '',
@@ -73,10 +100,6 @@ if ( $class eq 'S' ) {
       'type'      => 'checkbox',
       'value'     => 'Y',
     },
-    { 'field'     => 'unused_credit',
-      'type'      => 'checkbox',
-      'value'     => 'Y',
-    }, 
   ;
 }