event refactor, landing on HEAD!
[freeside.git] / FS / FS / part_pkg / prorate.pm
index 7ce7364..02ce6b9 100644 (file)
@@ -21,7 +21,7 @@ use FS::part_pkg::flat;
                                    ' of service at cancellation',
                          'type' => 'checkbox',
                        },
-    'cutoff_day' => { 'name' => 'billing day',
+    'cutoff_day' => { 'name' => 'Billing_Day (1 - 28)',
                         'default' => 1,
                                            },
     'seconds'       => { 'name' => 'Time limit for this package',
@@ -29,12 +29,18 @@ use FS::part_pkg::flat;
                        },
     'upbytes'       => { 'name' => 'Upload limit for this package',
                          'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     'downbytes'     => { 'name' => 'Download limit for this package',
                          'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     'totalbytes'    => { 'name' => 'Transfer limit for this package',
                          'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     'recharge_amount'       => { 'name' => 'Cost of recharge for this package',
                          'default' => '',
@@ -44,10 +50,16 @@ use FS::part_pkg::flat;
                        },
     'recharge_upbytes'      => { 'name' => 'Recharge upload for this package',
                          'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     'recharge_downbytes'    => { 'name' => 'Recharge download for this package',                         'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     'recharge_totalbytes'   => { 'name' => 'Recharge transfer for this package',                         'default' => '',
+                        'format' => \&FS::UI::bytecount::display_bytecount,
+                        'parse' => \&FS::UI::bytecount::parse_bytecount,
                        },
     #it would be better if this had to be turned on, its confusing
     'externalid' => { 'name'   => 'Optional External ID',