lots of smaller improvements
This commit is contained in:
parent
c3b17fbb8b
commit
84f71ea056
13 changed files with 49 additions and 24 deletions
|
@ -31,9 +31,16 @@ int Article::getPrice() const { return price_; }
|
|||
std::string Article::getPriceAsString() const
|
||||
{
|
||||
std::stringstream sumStream;
|
||||
//sumStream.imbue(std::locale("de_DE.utf8"));
|
||||
sumStream << std::right << std::setw(12) << std::showbase << std::put_money(price_, false);
|
||||
// sumStream.imbue(std::locale("de_DE.utf8"));
|
||||
sumStream << std::right << std::setw(10) << std::showbase << std::put_money(price_, false);
|
||||
return sumStream.str();
|
||||
}
|
||||
|
||||
int Article::getArticleNo() { return articleNo_; }
|
||||
int Article::getArticleNo() const { return articleNo_; }
|
||||
|
||||
std::string Article::getCompleteArticleNo() const
|
||||
{
|
||||
std::stringstream artNoStream;
|
||||
artNoStream << sourceNo_ << "K" << std::setfill('0') << std::setw(5) << articleNo_;
|
||||
return artNoStream.str();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue