[freeside-commits] freeside/httemplate/misc/process cust_bill-promised_date.html, NONE, 1.1

Mark Wells mark at wavetail.420.am
Thu Dec 8 13:13:19 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv3784/httemplate/misc/process

Added Files:
	cust_bill-promised_date.html 
Log Message:
promised payment date for invoices, #13554

--- NEW FILE: cust_bill-promised_date.html ---
<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>



More information about the freeside-commits mailing list