[freeside-commits] freeside/FS/FS Schema.pm, 1.67, 1.68 acct_rt_transaction.pm, 1.1, 1.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Sep 24 08:47:52 PDT 2007
- Previous message: [freeside-commits] freeside/FS/FS AccessRight.pm, 1.23, 1.24 part_pkg.pm, 1.60, 1.61 Schema.pm, 1.66, 1.67 part_event.pm, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.60, 1.61
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv21882/FS/FS
Modified Files:
Schema.pm acct_rt_transaction.pm
Log Message:
self-service support usage improvements (1733)
Index: acct_rt_transaction.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/acct_rt_transaction.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- acct_rt_transaction.pm 13 Sep 2007 22:35:19 -0000 1.1
+++ acct_rt_transaction.pm 24 Sep 2007 15:47:49 -0000 1.2
@@ -39,7 +39,9 @@
=item transaction_id - the id of the rt transtaction from which the time applies
-=item seconds - the amount of time which applies
+=item seconds - the amount of time applied from tickets
+
+=item support - the amount of time applied to support services
=back
@@ -92,7 +94,7 @@
return "Can't find svc_acct " . $self->svcnum;
}
- my $error = $svc_acct->decrement_seconds($self->seconds);
+ $error = $svc_acct->decrement_seconds($self->support);
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
return "Error incrementing service seconds: $error";
@@ -136,7 +138,7 @@
return "Can't find svc_acct " . $self->svcnum;
}
- my $error = $svc_acct->increment_seconds($self->seconds);
+ $error = $svc_acct->increment_seconds($self->support);
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
return "Error incrementing service seconds: $error";
@@ -173,6 +175,7 @@
|| $self->ut_number('transaction_id')
|| $self->ut_numbern('_date')
|| $self->ut_snumber('seconds')
+ || $self->ut_snumber('support')
;
return $error if $error;
@@ -196,6 +199,50 @@
$self->SUPER::check;
}
+=item creator
+
+Returns the creator of the RT transaction associated with this object.
+
+=cut
+
+sub creator {
+ my $self = shift;
+ FS::TicketSystem->transaction_creator($self->transaction_id);
+}
+
+=item ticketid
+
+Returns the number of the RT ticket associated with this object.
+
+=cut
+
+sub ticketid {
+ my $self = shift;
+ FS::TicketSystem->transaction_ticketid($self->transaction_id);
+}
+
+=item subject
+
+Returns the subject of the RT ticket associated with this object.
+
+=cut
+
+sub subject {
+ my $self = shift;
+ FS::TicketSystem->transaction_subject($self->transaction_id);
+}
+
+=item status
+
+Returns the status of the RT ticket associated with this object.
+
+=cut
+
+sub status {
+ my $self = shift;
+ FS::TicketSystem->transaction_status($self->transaction_id);
+}
+
=item batch_insert SVC_ACCT_RT_TRANSACTION_OBJECT, ...
Class method which inserts multiple time applications. Takes a list of
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- Schema.pm 24 Sep 2007 00:56:50 -0000 1.67
+++ Schema.pm 24 Sep 2007 15:47:48 -0000 1.68
@@ -997,6 +997,7 @@
'transaction_id', 'int', '', '', '', '',
'_date', @date_type, '', '',
'seconds', 'int', '', '', '', '', #uhhhh
+ 'support', 'int', '', '', '', '',
],
'primary_key' => 'svcrtid',
'unique' => [],
- Previous message: [freeside-commits] freeside/FS/FS AccessRight.pm, 1.23, 1.24 part_pkg.pm, 1.60, 1.61 Schema.pm, 1.66, 1.67 part_event.pm, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.60, 1.61
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list