Initial implementation of salemodel
This commit is contained in:
parent
bc67018c1c
commit
e24b6c4e5f
11 changed files with 212 additions and 1 deletions
|
@ -31,6 +31,13 @@ int Sale::sumInCents()
|
|||
return sum;
|
||||
}
|
||||
|
||||
std::string Sale::sumAsString()
|
||||
{
|
||||
std::stringstream sumStream;
|
||||
sumStream << std::right << std::setw(12) << std::showbase << std::put_money(sumInCents(), false);
|
||||
return sumStream.str();
|
||||
}
|
||||
|
||||
std::string Sale::getTimestamp() { return timestamp_; }
|
||||
|
||||
void Sale::setTimestamp(const std::string& timestamp) { timestamp_ = timestamp; }
|
Loading…
Add table
Add a link
Reference in a new issue