From 20cefe6574c9f37e4f2a3369e9bbe5b90bd65ec0 Mon Sep 17 00:00:00 2001 From: Christian Veigl Date: Fri, 15 Jun 2012 14:42:15 +0000 Subject: [PATCH] use currency symbol/string from billing profile (mantis:1715) --- lib/admin/Controller/account.pm | 2 ++ root/tt/account_detail.tt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/admin/Controller/account.pm b/lib/admin/Controller/account.pm index 4e922da..83d499a 100644 --- a/lib/admin/Controller/account.pm +++ b/lib/admin/Controller/account.pm @@ -185,6 +185,7 @@ sub detail : Local { \$product ); $$voip_account{product_name} = $$product{data}{name}; + $$voip_account{currency} = $$product{data}{currency}; } if(defined $$voip_account{billing_profile}) { my $profile; @@ -193,6 +194,7 @@ sub detail : Local { \$profile ); $$voip_account{billing_profile_name} = $$profile{data}{name}; + $$voip_account{currency} = $$profile{data}{currency}; } } diff --git a/root/tt/account_detail.tt b/root/tt/account_detail.tt index 52701e8..a395d5e 100644 --- a/root/tt/account_detail.tt +++ b/root/tt/account_detail.tt @@ -149,7 +149,7 @@
  • Cash:
    -
    € [% account.balance.cash_balance %]
    +
    [% account.currency %] [% account.balance.cash_balance %]
    [% IF edit_balance %] add @@ -184,7 +184,7 @@
    • Spent this billing interval
    • -
      Cash:
      € [% account.balance.cash_balance_interval %]
      +
      Cash:
      [% account.currency %] [% account.balance.cash_balance_interval %]
    • Free time:
      [% account.balance.free_time_balance_interval %] s