$left = $data->{'quantity'};
}
if ( $left && $left > 0 ) {
- my $subtotal = $left * get_rounded_price($data->{'ecost_tax_included'});
+ my $subtotal = get_rounded_price( $left * $data->{'ecost_tax_included'} );
$data->{subtotal} = sprintf( "%.2f", $subtotal );
$data->{'left'} = $left;
push @ordered, $data;