stock_info => $yaml,
stock_qty => $stock_qty,
};
-
$self->render(\ SL::JSON::to_json($response), { layout => 0, type => 'json', process => 0 });
}
$units_by_name{$_->{unit}}->convert_to($_->{qty}, $units_by_name{$unit})
} @$stock_info;
- my $content = _format_number($sum, 2);
+ my $content = _format_number($sum, 2) . ' ' . $unit;
return $content;
}