[freeside-commits] freeside/httemplate/edit/process qual.cgi, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Sun Mar 20 12:38:30 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv12480/httemplate/edit/process
Modified Files:
qual.cgi
Log Message:
qualification address handling changes, RT#7111
Index: qual.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/qual.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- qual.cgi 13 Mar 2011 18:56:03 -0000 1.6
+++ qual.cgi 20 Mar 2011 19:38:28 -0000 1.7
@@ -52,7 +52,7 @@
qw( location_type location_number location_kind )
);
-if ( $locationnum == -1 ) { # adding a new one
+if ( $locationnum == -1 || $locationnum == -3 ) { # adding a new one
$cust_location = new FS::cust_location {
$cust_or_prospect."num" => $custnum_or_prospectnum,
@@ -80,7 +80,7 @@
#$qual->locationnum($locationnum) if $locationnum > 0;
$qual->exportnum($exportnum) if $exportnum > 0;
$qual->set( $cust_or_prospect."num" => $custnum_or_prospectnum )
- unless $locationnum == -1 || $locationnum > 0;
+ unless $locationnum == -1 || $locationnum == -3 || $locationnum > 0;
$error ||= $qual->insert( 'cust_location' => $cust_location );
More information about the freeside-commits
mailing list