TT#29751 Remove minus from cents in negative costs

Change-Id: I57b034aa4f55c4df198e9e754afe4b27cd1fb9fb
changes/70/22770/3
Irina Peshinskaya 8 years ago
parent 10f57f11e8
commit ce84749100

@ -201,7 +201,7 @@ sub process_child_nodes {
}
sub get_dummy_data {
return {
my $data = {
rescontact => {
gender => 'male',
firstname => 'Resellerfirst',
@ -290,7 +290,7 @@ sub get_dummy_data {
source_cli => '1234567890',
destination_user_in => "1".$_."1234567890",
start_time => time,
source_customer_cost => int(rand(100000)),
source_customer_cost => int( (rand()-1/2) * rand(1000000)),
duration => int(rand(7200)) + 10,
call_type => (qw/cfu cfb cft cfna cfs cfr/)[int(rand 4)],
zone => "Zone $_",
@ -312,6 +312,7 @@ sub get_dummy_data {
},
};
return $data;
}
1;

@ -136,7 +136,7 @@
cents = String.new(cent);
cents = cents.format("%.0f",cents);
cents_format_string = "%0" _ money_signs _ "d";
cents = cents.format(cents_format_string);
cents = cents.format(cents_format_string).replace('^-', '');
aux.val = full _ comma _ cents;
END;

Loading…
Cancel
Save