X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=c3d1804bcf53741e64f0be9980f9c9cb66e83047;hb=b19897e1db4c110d7d7e8b52800cda5ab58ce9e0;hp=d10b21a4a7b7423e9d026c524f8dbfc1b60ba7a4;hpb=9e342300c380e29af1b9678f1a9604609e0061b6;p=freeside.git
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index d10b21a4a..c3d1804bc 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -35,6 +35,7 @@ if ( $cgi->param('error') ) {
$popnum = $cgi->param('popnum');
@invoicing_list = split( /\s*,\s*/, $cgi->param('invoicing_list') );
$same = $cgi->param('same');
+ $cust_main->setfield('paid' => $cgi->param('paid')) if $cgi->param('paid');
} elsif ( $cgi->keywords ) { #editing
my( $query ) = $cgi->keywords;
$query =~ /^(\d+)$/;
@@ -63,100 +64,100 @@ if ( $cgi->param('error') ) {
@invoicing_list = ();
}
$cgi->delete_all();
+
my $action = $custnum ? 'Edit' : 'Add';
+$action .= ": ". $cust_main->name if $custnum;
+
+my $r = qq!* !;
%>
-<%= header("Customer $action", '', ' onUnload="myclose()"') %>
+<%= include('/elements/header.html',
+ "Customer $action",
+ '',
+ ' onUnload="myclose()"'
+) %>
<% if ( $error ) { %>
-Error: <%= $error %>
+Error: <%= $error %>
<% } %>