[freeside-commits] freeside/httemplate/misc/process cust_bill-promised_date.html, 1.1, 1.2
Mark Wells
mark at wavetail.420.am
Thu Dec 29 11:01:31 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv25756/httemplate/misc/process
Modified Files:
cust_bill-promised_date.html
Log Message:
setting promised payment date retries events, #13554
Index: cust_bill-promised_date.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/cust_bill-promised_date.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- cust_bill-promised_date.html 8 Dec 2011 21:13:16 -0000 1.1
+++ cust_bill-promised_date.html 29 Dec 2011 19:01:28 -0000 1.2
@@ -1,6 +1,8 @@
<SCRIPT TYPE="text/javascript">window.top.location.reload()</SCRIPT>
<%init>
# XXX ACL?
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Edit customer');
$cgi->param('invnum') =~ /^(\d+)$/
or die "Illegal invnum";
@@ -13,7 +15,10 @@
}
my $cust_bill = qsearchs('cust_bill', { invnum => $invnum });
+my $cust_main = $cust_bill->cust_main;
+
$cust_bill->promised_date($promised_date);
-my $error = $cust_bill->replace;
+# also reset failed payment events
+my $error = $cust_bill->replace || $cust_main->retry_realtime;
die $error if $error; # nothing fancy here
</%init>
More information about the freeside-commits
mailing list