[freeside-commits] freeside/FS/FS Conf.pm, 1.303, 1.304 AccessRight.pm, 1.39, 1.40 Mason.pm, 1.13, 1.14 svc_external.pm, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Tue Jul 28 14:17:47 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18538/FS/FS
Modified Files:
Conf.pm AccessRight.pm Mason.pm svc_external.pm
Log Message:
adding a basic change history using history tables, RT#1005, RT#4357
Index: svc_external.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_external.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- svc_external.pm 19 Feb 2008 03:30:27 -0000 1.8
+++ svc_external.pm 28 Jul 2009 21:17:45 -0000 1.9
@@ -95,6 +95,7 @@
substr('0000000000'.uc($self->title), -10);
} else {
#$self->SUPER::label;
+ return $self->id unless $self->title =~ /\S/;
$self->id. ' - '. $self->title;
}
}
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.303
retrieving revision 1.304
diff -u -d -r1.303 -r1.304
--- Conf.pm 27 Jul 2009 06:17:20 -0000 1.303
+++ Conf.pm 28 Jul 2009 21:17:44 -0000 1.304
@@ -2319,6 +2319,13 @@
},
{
+ 'key' => 'change_history-years',
+ 'section' => 'UI',
+ 'description' => 'Number of years of change history to show by default. Currently defaults to 0.5.',
+ 'type' => 'text',
+ },
+
+ {
'key' => 'cust_main-packages-years',
'section' => 'UI',
'description' => 'Number of years to show old (cancelled and one-time charge) packages by default. Currently defaults to 2.',
@@ -2976,7 +2983,7 @@
'tickets' => 'Tickets',
'packages' => 'Packages',
'payment_history' => 'Payment History',
- #'' => 'Change History',
+ 'change_history' => 'Change History',
'jumbo' => 'Jumbo',
],
},
Index: Mason.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Mason.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- Mason.pm 16 Jul 2009 22:16:16 -0000 1.13
+++ Mason.pm 28 Jul 2009 21:17:45 -0000 1.14
@@ -186,6 +186,16 @@
use FS::part_pkg_taxrate;
use FS::tax_rate;
use FS::part_pkg_report_option;
+ use FS::h_cust_pkg;
+ use FS::h_svc_acct;
+ use FS::h_svc_broadband;
+ use FS::h_svc_domain;
+ #use FS::h_domain_record;
+ use FS::h_svc_external;
+ use FS::h_svc_forward;
+ use FS::h_svc_phone;
+ #use FS::h_phone_device;
+ use FS::h_svc_www;
# Sammath Naur
if ( %%%RT_ENABLED%%% ) {
@@ -223,7 +233,7 @@
#slow, unreliable, segfaults and is optional
#see rt/html/Ticket/Elements/ShowTransactionAttachments
- #use Text::Quoted;
+ use Text::Quoted;
#?#use File::Path qw( rmtree );
#?#use File::Glob qw( bsd_glob );
Index: AccessRight.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/AccessRight.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- AccessRight.pm 25 Jun 2009 01:28:53 -0000 1.39
+++ AccessRight.pm 28 Jul 2009 21:17:45 -0000 1.40
@@ -94,6 +94,7 @@
'View customer',
#'View Customer | View tickets',
'Edit customer',
+ 'View customer history',
'Cancel customer',
'Complimentary customer', #aka users-allow_comp
{ rightname=>'Delete customer', desc=>"Enable customer deletions. Be very careful! Deleting a customer will remove all traces that this customer ever existed! It should probably only be used when auditing a legacy database. Normally, you cancel all of a customer's packages if they cancel service." }, #aka. deletecustomers
More information about the freeside-commits
mailing list