[freeside-commits] freeside/httemplate/search cust_bill.html, 1.19.2.8, 1.19.2.9
Ivan,,,
ivan at wavetail.420.am
Sat Mar 15 12:52:32 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv2226
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_bill.html
Log Message:
check on invoice re-printing newest percust... can't reproduce any problem, prints newest per cust fine, closes: #3161
Index: cust_bill.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill.html,v
retrieving revision 1.19.2.8
retrieving revision 1.19.2.9
diff -u -d -r1.19.2.8 -r1.19.2.9
--- cust_bill.html 13 Jan 2008 20:57:38 -0000 1.19.2.8
+++ cust_bill.html 15 Mar 2008 19:52:30 -0000 1.19.2.9
@@ -159,7 +159,8 @@
FS::cust_bill->owed_sql. ' AS owed',
FS::cust_bill->net_sql. ' AS net',
),
- 'extra_sql' => "$extra_sql $orderby"
+ 'extra_sql' => $extra_sql,
+ 'order_by' => $orderby,
};
}
@@ -187,17 +188,40 @@
qq!<FORM NAME="${_}form">!,
( map qq!<INPUT TYPE="hidden" NAME="$_" VALUE="$search{$_}">!, keys %search ),
qq!</FORM>!
-} qw( print_ email_ fax_ ) );
+} qw( print_ email_ fax_ ) ).
+
+'<SCRIPT TYPE="text/javascript">
+
+function confirm_print_process() {
+ if ( ! confirm("Are you sure you want to reprint these invoices?") ) {
+ return;
+ }
+ print_process();
+}
+function confirm_email_process() {
+ if ( ! confirm("Are you sure you want to re-email these invoices?") ) {
+ return;
+ }
+ email_process();
+}
+function confirm_fax_process() {
+ if ( ! confirm("Are you sure you want to re-fax these invoices?") ) {
+ return;
+ }
+ fax_process();
+}
+
+</SCRIPT>';
my $menubar = [
'Print these invoices' =>
- "javascript:print_process()",
+ "javascript:confirm_print_process()",
'Email these invoices' =>
- "javascript:email_process()",
+ "javascript:confirm_email_process()",
];
push @$menubar, 'Fax these invoices' =>
- "javascript:fax_process()"
+ "javascript:confirm_fax_process()"
if $conf->exists('hylafax');
</%init>
More information about the freeside-commits
mailing list