- if $cust_bill_void->closed !~ /^Y/ && $curuser->access_right('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'} && $curuser->access_right('Delete invoices') );