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