minor fixes
This commit is contained in:
parent
e1e86b3f8b
commit
c635cd9221
@ -99,7 +99,7 @@ const char* invoice::categories[] = {
|
||||
const char* invoice::months[] = {
|
||||
"Januar",
|
||||
"Februar",
|
||||
"März",
|
||||
"M\x84rz",
|
||||
"April",
|
||||
"Mai",
|
||||
"Juni",
|
||||
@ -198,7 +198,7 @@ int main()
|
||||
void create_invoice()
|
||||
{
|
||||
system("cls");
|
||||
cout << "Eine neue Rechnung erstellen." << endl;
|
||||
cout << "Eine neue Rechnung erstellen" << endl;
|
||||
cout << "------------------------------------" << endl;
|
||||
const auto invoice_no = ++invoice_serial_number;
|
||||
const auto amount = ask_question<double>("Bitte geben Sie den Betrag in Euro ein.");
|
||||
@ -211,7 +211,7 @@ void create_invoice()
|
||||
void invoices_ordered_by_month()
|
||||
{
|
||||
system("cls");
|
||||
cout << "Alle Rechnungen nach Monat sortiert:" << endl;
|
||||
cout << "Alle Rechnungen nach Monat sortiert" << endl;
|
||||
cout << "------------------------------------" << endl;
|
||||
auto temp = list<invoice>(invoices);
|
||||
temp.sort(compare_month_ascending);
|
||||
@ -228,6 +228,9 @@ void invoices_ordered_by_month()
|
||||
|
||||
void delete_invoice()
|
||||
{
|
||||
system("cls");
|
||||
cout << "Rechnung l\x94schen" << endl;
|
||||
cout << "------------------------------------" << endl;
|
||||
const auto invoice_number = ask_question<int>("Bitte geben Sie eine Rechnungsnummer ein");
|
||||
for (auto invoice : invoices)
|
||||
{
|
||||
@ -243,6 +246,9 @@ void delete_invoice()
|
||||
|
||||
void sum_invoices_per_category()
|
||||
{
|
||||
system("cls");
|
||||
cout << "Summe der Ausgaben pro Kategorie ausgeben" << endl;
|
||||
cout << "------------------------------------" << endl;
|
||||
map<int, double> sums;
|
||||
for (auto invoice : invoices)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user