projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
httemplate
/
edit
/
process
/
cust_pay_pending.html
diff --git
a/httemplate/edit/process/cust_pay_pending.html
b/httemplate/edit/process/cust_pay_pending.html
index
1bad6cf
..
fe3602c
100644
(file)
--- a/
httemplate/edit/process/cust_pay_pending.html
+++ b/
httemplate/edit/process/cust_pay_pending.html
@@
-3,7
+3,7
@@
<FONT SIZE="+1" COLOR="#ff0000">Error: <% $error |h %></FONT>
% } else {
<SCRIPT TYPE="text/javascript">
<FONT SIZE="+1" COLOR="#ff0000">Error: <% $error |h %></FONT>
% } else {
<SCRIPT TYPE="text/javascript">
-
window.top.location.
reload();
+
top
reload();
</SCRIPT>
% }
</BODY>
</SCRIPT>
% }
</BODY>
@@
-38,7
+38,7
@@
if ( $action eq 'delete' ) {
if ( $error ) {
$title = 'Error deleting pending payment';
} else {
if ( $error ) {
$title = 'Error deleting pending payment';
} else {
- $title = 'Pending payment deletion sucessful';
+ $title = 'Pending payment deletion suc
c
essful';
}
} elsif ( $action eq 'insert_cust_pay' ) {
}
} elsif ( $action eq 'insert_cust_pay' ) {
@@
-59,6
+59,15
@@
if ( $action eq 'delete' ) {
$title = 'Pending payment completed (decline)';
}
$title = 'Pending payment completed (decline)';
}
+} elsif ( $action eq 'reverse' ) {
+
+ $error = $cust_pay_pending->reverse;
+ if ( $error ) {
+ $title = 'Error reversing pending payment';
+ } else {
+ $title = 'Pending payment completed (reverse)';
+ }
+
} else {
die "unknown action $action";
} else {
die "unknown action $action";