X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fvoided_invoice.html;h=ff4d12f58fd2c6baffbaaacf1b6ed7ea03cda9b4;hb=6d34c5060a4e5e9338ebc0d04459861a5c45e812;hp=ba51b3bca7527e7beab3850c78a17b46342caba0;hpb=42e878b29ae26943d7dc3acfbb7f095a56ae0a2f;p=freeside.git
diff --git a/httemplate/view/cust_main/payment_history/voided_invoice.html b/httemplate/view/cust_main/payment_history/voided_invoice.html
index ba51b3bca..ff4d12f58 100644
--- a/httemplate/view/cust_main/payment_history/voided_invoice.html
+++ b/httemplate/view/cust_main/payment_history/voided_invoice.html
@@ -1,10 +1,16 @@
<% $link %><% $invoice %><% $link ? '' : '' %>
-<% mt("voided ([_1]) [_2]", $cust_bill_void->reason, time2str($date_format, $cust_bill_void->void_date) ) |h %>
+voided
% my $void_user = $cust_bill_void->void_access_user;
% if ($void_user) {
- by <% $void_user->username %>
+ by <% $void_user->username %>
% }
-<% "$unvoid$delete$under" %>
+% my $reason = $cust_bill_void->reason;
+% if ($reason) {
+ (<% $reason |h %>)
+% }
+<% mt("on [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %>
+
+<% "$unvoid$under" %>
<%init>
my( $cust_bill_void, %opt ) = @_;
@@ -29,14 +35,6 @@ $unvoid = areyousure_link("${p}misc/unvoid-cust_bill_void.html?invnum=". $cust_b
)
if $cust_bill_void->closed !~ /^Y/ && $opt{'Unvoid invoices'};
-my $delete = '';
-$delete = areyousure_link("${p}misc/delete-cust_bill.html?$invnum",
- emt('Are you sure you want to delete this invoice?'),
- emt('Delete this invoice from the database completely'),
- emt('delete')
- )
- if $opt{'deleteinvoices'} && $opt{'Delete invoices'};
-
my $events = '';
if ( $cust_bill_void->num_cust_event
&& ($opt{'Billing event reports'} || $opt{'View customer billing events'})