[freeside-commits] freeside/FS/FS msa.pm, NONE, 1.1 Mason.pm, 1.70, 1.71
Erik Levinson
levinse at wavetail.420.am
Thu Apr 14 20:13:08 PDT 2011
- Previous message: [freeside-commits] freeside/httemplate/misc did_order_confirm.html, 1.1.2.2, 1.1.2.3 did_order_confirmed.html, 1.1.2.2, 1.1.2.3 did_order_provision.html, NONE, 1.1.2.2
- Next message: [freeside-commits] freeside/FS FS.pm, 1.73, 1.74 MANIFEST, 1.185, 1.186
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15687/FS/FS
Modified Files:
Mason.pm
Added Files:
msa.pm
Log Message:
bulk DID orders/inventory enhancements, RT11291
--- NEW FILE: msa.pm ---
package FS::msa;
use strict;
use base qw( FS::Record );
use FS::Record qw( qsearch qsearchs );
=head1 NAME
FS::msa - Object methods for msa records
=head1 SYNOPSIS
use FS::msa;
$record = new FS::msa \%hash;
$record = new FS::msa { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
=head1 DESCRIPTION
An FS::msa object represents a MSA. FS::msa inherits from
FS::Record. The following fields are currently supported:
=over 4
=item msanum
primary key
=item description
description
=back
=head1 METHODS
=over 4
=item new HASHREF
Creates a new MSA. To add the MSA to the database, see L<"insert">.
Note that this stores the hash reference, not a distinct copy of the hash it
points to. You can ask the object for a copy with the I<hash> method.
=cut
# the new method can be inherited from FS::Record, if a table method is defined
sub table { 'msa'; }
=item insert
Adds this record to the database. If there is an error, returns the error,
otherwise returns false.
=cut
# the insert method can be inherited from FS::Record
=item delete
Delete this record from the database.
=cut
# the delete method can be inherited from FS::Record
=item replace OLD_RECORD
Replaces the OLD_RECORD with this one in the database. If there is an error,
returns the error, otherwise returns false.
=cut
# the replace method can be inherited from FS::Record
=item check
Checks all fields to make sure this is a valid MSA. If there is
an error, returns the error, otherwise returns false. Called by the insert
and replace methods.
=cut
# the check method should currently be supplied - FS::Record contains some
# data checking routines
sub check {
my $self = shift;
my $error =
$self->ut_numbern('msanum')
|| $self->ut_text('description')
;
return $error if $error;
$self->SUPER::check;
}
=back
=head1 SEE ALSO
L<FS::Record>, schema.html from the base documentation.
=cut
1;
Index: Mason.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Mason.pm,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -w -d -r1.70 -r1.71
--- Mason.pm 6 Apr 2011 08:24:27 -0000 1.70
+++ Mason.pm 15 Apr 2011 03:13:06 -0000 1.71
@@ -279,6 +279,8 @@
use FS::hardware_type;
use FS::hardware_status;
use FS::did_order_item;
+ use FS::msa;
+ use FS::rate_center;
# Sammath Naur
if ( $FS::Mason::addl_handler_use ) {
- Previous message: [freeside-commits] freeside/httemplate/misc did_order_confirm.html, 1.1.2.2, 1.1.2.3 did_order_confirmed.html, 1.1.2.2, 1.1.2.3 did_order_provision.html, NONE, 1.1.2.2
- Next message: [freeside-commits] freeside/FS FS.pm, 1.73, 1.74 MANIFEST, 1.185, 1.186
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list