TT#17068 Fix phone symbol # in the generated invoice

Change-Id: I8ab741968bcb1f5c7e8f97ff8110e0f544c0a8a0
changes/04/13704/3
Irina Peshinskaya 9 years ago
parent ecf16f4778
commit 337e027ae1

@ -10,6 +10,8 @@ use NGCP::Panel::Utils::ProfilePackages;
use NGCP::Panel::Utils::InvoiceTemplate;
use NGCP::Panel::Utils::Invoice;
use NGCP::Panel::Form::Invoice::Invoice;
use HTML::Entities;
sub auto :Private {
my ($self, $c) = @_;
@ -248,6 +250,8 @@ sub create :Chained('inv_list') :PathPart('create') :Args() :Does(ACL) :ACLDetac
my $calllist = [ map {
my $call = {$_->get_inflated_columns};
$call->{start_time} = $call->{start_time}->epoch;
$call->{destination_user_in} =~s/%23/#/g;
$call->{destination_user_in} = encode_entities($call->{destination_user_in}, '<>&"#');
$call->{source_customer_cost} += 0.0; # make sure it's a number
$call;
} $calllist_rs->all ];

Loading…
Cancel
Save