summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/cust_bill-promised_date.html
blob: 298b13007909918174afe2b08db4e381aa6a4c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<SCRIPT TYPE="text/javascript">window.top.location.reload()</SCRIPT>
<%init>
# XXX ACL?

$cgi->param('invnum') =~ /^(\d+)$/
  or die "Illegal invnum";
my $invnum = $1;

my $promised_date = '';
if ( length($cgi->param('promised_date')) ) {
  $promised_date = parse_datetime($cgi->param('promised_date'))
    or die "Illegal promised_date";
}

my $cust_bill = qsearchs('cust_bill', { invnum => $invnum });
$cust_bill->promised_date($promised_date);
my $error = $cust_bill->replace;
die $error if $error; # nothing fancy here
</%init>