[freeside-commits] freeside/httemplate/misc/process cust_bill-promised_date.html, 1.1.2.2, 1.1.2.3
Mark Wells
mark at wavetail.420.am
Thu Dec 29 11:01:39 PST 2011
- Previous message: [freeside-commits] freeside/httemplate/misc/process cust_bill-promised_date.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.497, 1.498 Schema.pm, 1.346, 1.347 option_Common.pm, 1.11, 1.12 cdr.pm, 1.79, 1.80
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv25803/httemplate/misc/process
Modified Files:
Tag: FREESIDE_2_3_BRANCH
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.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- cust_bill-promised_date.html 8 Dec 2011 21:13:58 -0000 1.1.2.2
+++ cust_bill-promised_date.html 29 Dec 2011 19:01:37 -0000 1.1.2.3
@@ -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>
- Previous message: [freeside-commits] freeside/httemplate/misc/process cust_bill-promised_date.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS Conf.pm, 1.497, 1.498 Schema.pm, 1.346, 1.347 option_Common.pm, 1.11, 1.12 cdr.pm, 1.79, 1.80
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list