# $payby_mode{FOO} is true if FOO is thirdparty, false if it's B::OP,
# nonexistent if it's not supported
-if ( $balance > 0 ) { #XXXFIXME "enable selfservice prepay features" flag or something, eventually per-pkg or something really fancy
+if ( $enable_payment_without_balance || (($balance || 0) > 0) ) { #eventually per-pkg or something really fancy
if ( exists( $payby_mode{CARD} ) ) {
push @menu, { title => 'Recharge my account with a credit card',
}
}
- if ( exists( $payby_mode{PREP} ) ) {
+ if ( exists( $payby_mode{PREPAY} ) ) {
push @menu, { title => 'Recharge my account with a prepaid card',
url => 'recharge_prepay',
indent => 2,
}
push @menu,
- { title=>' ' },
- { title=>'View my usage', url=>'view_usage', size=>'+1', },
+ { title=>' ' };
+
+push @menu,
+ { title=>'View payment history', url=>'history', size=>'+1' },
+;
+
+unless( $hide_usage ){
+ push @menu,
+ { title=>'View my usage', url=>'view_usage', size=>'+1', }
+}
+
+push @menu,
{ title=>'Create a ticket', url=>'tktcreate', size=>'+1', },
;