summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2011-03-20 19:38:28 +0000
committerivan <ivan>2011-03-20 19:38:28 +0000
commit25b48e1acbf6ad7ebd3e85b479ee6cd3a8ccd098 (patch)
tree76a7b1cefa290a28610525ef02766f9c9f49318a /httemplate/edit
parentec16e50b394e928b6810d6d3867de6d6ef918ce5 (diff)
qualification address handling changes, RT#7111
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/cust_main/contact.html2
-rw-r--r--httemplate/edit/process/qual.cgi4
2 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html
index 99bc558c3..01d024ca2 100644
--- a/httemplate/edit/cust_main/contact.html
+++ b/httemplate/edit/cust_main/contact.html
@@ -2,7 +2,7 @@
<TR>
<TH ALIGN="right"><%$r%>Contact&nbsp;name<BR>(last,&nbsp;first)</TH>
- <TD COLSPAN=5>
+ <TD COLSPAN=7>
<INPUT TYPE="text" NAME="<%$pre%>last" VALUE="<% $cust_main->get($pre.'last') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>> ,
<INPUT TYPE="text" NAME="<%$pre%>first" VALUE="<% $cust_main->get($pre.'first') |h %>" onChange="<% $onchange %>" <%$disabled%> <%$style%>>
</TD>
diff --git a/httemplate/edit/process/qual.cgi b/httemplate/edit/process/qual.cgi
index a702047c5..dd8d00b11 100644
--- a/httemplate/edit/process/qual.cgi
+++ b/httemplate/edit/process/qual.cgi
@@ -52,7 +52,7 @@ my %location_hash = (
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->phonenum($phonenum) if $phonenum ne '';
#$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 );