diff options
| author | ivan <ivan> | 2004-12-24 03:33:35 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2004-12-24 03:33:35 +0000 | 
| commit | 40075274db96ff0b37e98d2727fdc297d23b8f8a (patch) | |
| tree | 986fe47cdd35d1248556bf0a6fca6744223a868d /httemplate/edit/process | |
| parent | 9299390ef485780f9990f95ecfa5b50d87078a1d (diff) | |
add ability to set payment date manually
Diffstat (limited to 'httemplate/edit/process')
| -rwxr-xr-x | httemplate/edit/process/cust_pay.cgi | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index 82442ae00..87d6011e7 100755 --- a/httemplate/edit/process/cust_pay.cgi +++ b/httemplate/edit/process/cust_pay.cgi @@ -8,11 +8,14 @@ $cgi->param('link') =~ /^(custnum|invnum)$/    or die "Illegal link: ". $cgi->param('link');  my $link = $1; +my $_date = str2time($cgi->param('_date')); +  my $new = new FS::cust_pay ( {    $link => $linknum, +  _date => $_date,    map {      $_, scalar($cgi->param($_)); -  } qw(paid _date payby payinfo paybatch) +  } qw(paid payby payinfo paybatch)    #} fields('cust_pay')  } ); | 
