diff options
Diffstat (limited to 'htdocs/edit/process/cust_credit.cgi')
-rwxr-xr-x | htdocs/edit/process/cust_credit.cgi | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/htdocs/edit/process/cust_credit.cgi b/htdocs/edit/process/cust_credit.cgi index e87d588d3..e88d05769 100755 --- a/htdocs/edit/process/cust_credit.cgi +++ b/htdocs/edit/process/cust_credit.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_credit.cgi,v 1.2 1998-12-17 08:40:18 ivan Exp $ +# $Id: cust_credit.cgi,v 1.3 1999-01-18 22:47:51 ivan Exp $ # # Usage: post form to: # http://server.name/path/cust_credit.cgi @@ -22,7 +22,10 @@ # bmccane@maxbaud.net 98-apr-3 # # $Log: cust_credit.cgi,v $ -# Revision 1.2 1998-12-17 08:40:18 ivan +# Revision 1.3 1999-01-18 22:47:51 ivan +# s/create/new/g; and use fields('table_name') +# +# Revision 1.2 1998/12/17 08:40:18 ivan # s/CGI::Request/CGI.pm/; etc # @@ -31,6 +34,7 @@ use CGI; use CGI::Carp qw(fatalsToBrowser); use FS::UID qw(cgisuidsetup getotaker); use FS::CGI qw(popurl eidiot); +use FS::Record qw(fields); use FS::cust_credit; my($cgi)=new CGI; # create form object @@ -41,10 +45,11 @@ my($custnum)=$1; $cgi->param('otaker',getotaker); -my($new) = create FS::cust_credit ( { +my($new) = new FS::cust_credit ( { map { $_, scalar($cgi->param($_)); - } qw(custnum _date amount otaker reason) + #} qw(custnum _date amount otaker reason) + } fields('cust_credit'); } ); my($error); |