% include('/elements/header.html', 'Package Report' ) %>
<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('List packages'); %init> <%once> my %label = ( 'setup' => 'Setup', 'last_bill' => 'Last bill', 'bill' => 'Next bill', 'adjourn' => 'Adjourns', 'susp' => 'Suspended', 'expire' => 'Expires', 'cancel' => 'Cancelled', ); #false laziness w/cust_pkg.cgi my %disable = ( 'all' => {}, 'one-time charge' => { 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, }, 'active' => { 'susp'=>1, 'cancel'=>1 }, 'suspended' => { 'cancel' => 1 }, 'cancelled' => {}, '' => {}, ); #hmm? my %checkbox = ( 'setup' => 0, 'last_bill' => 0, 'bill' => 0, 'susp' => 1, 'expire' => 1, 'cancel' => 1, ); %once>