X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fbilling.html;h=1088cf5fdafe252cfc1ff0769c2b1a9351cda031;hb=430b2c784d2ee9ea5be00b821d2dbd27279ef132;hp=5a66f0a60ddbedecca002152f9de127aa35dd2de;hpb=06e353b743e7be88afa8fce50ea10f27ebb7adef;p=freeside.git diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 5a66f0a60..1088cf5fd 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -615,6 +615,23 @@ function toggle(obj) { % } +%my @currencies = $conf->config('currencies'); +%if ( scalar(@currencies) ) { +% unshift @currencies, ''; #default +% my %currency_labels = map { $_ => "$_: ". code2currency($_) } @currencies; +% $currency_labels{''} = +% 'Default: '. code2currency( $conf->config('currency') || 'USD' ); + + <& /elements/tr-select.html, + 'label' => emt('Invoicing currency'), + 'field' => 'currency', + 'options' => \@currencies, + 'labels' => \%currency_labels, + 'curr_value' => $cust_main->currency, + &> +% } + + %my @available_locales = $conf->config('available-locales'); %if ( scalar(@available_locales) ) { % push @available_locales, '' @@ -662,8 +679,8 @@ my $conf = new FS::Conf; my $payby_default = $conf->config('payby-default'); my @payby = grep /\w/, $conf->config('payby'); -#@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP )) -@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP )) +#@payby = (qw( CARD DCRD CHEK DCHK BILL CASH WEST COMP )) +@payby = (qw( CARD DCRD CHEK DCHK BILL CASH COMP )) unless @payby; my $show_term = '';