-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pokladny.cpp
70 lines (60 loc) · 1.37 KB
/
Pokladny.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include "Pokladny.h"
// IDpokladny, IdProdavaèe, PocetPolozek, Celková cena
Pokladny::Pokladny(int IDPokladna, int IDpokladni, int pocet)
{
this->IDpokladny = IDPokladna;
this->IDPokladniho = IDpokladni;
this->pocetPolozek = pocet;
this->hodnota = 0;
}
Pokladny::Pokladny(int IDPokladna, int IDpokladni, int pocet, int SK)
{
this->IDpokladny = IDPokladna;
this->IDPokladniho = IDpokladni;
this->pocetPolozek = pocet;
this->hodnota = 0;
this->SlevKarticka = SK;
}
Pokladny::Pokladny(int IDPokladna, int IDpokladni, int pocet, int SK, int PS)
{
this->IDpokladny = IDPokladna;
this->IDPokladniho = IDpokladni;
this->pocetPolozek = pocet;
this->SlevKarticka = SK;
this->hodnota = 0;
this->pocetSlev = PS;
}
int Pokladny::GetIDpokladny()
{
return this->IDpokladny;
}
int Pokladny::GetIDpokladniho()
{
return this->IDPokladniho;
}
int Pokladny::GetPocetSlev()
{
return this->pocetSlev;
}
int Pokladny::GetSlevKarticka()
{
return this->SlevKarticka;
}
int Pokladny::GetPocetPolozek()
{
return this->pocetPolozek;
}
float Pokladny::GetHodnota()
{
return this->hodnota;
}
void Pokladny::addPolozka(std::string polozka, float cena)
{
std::cout << polozka << " byl namarkován za cenu: " << cena << "\n";
pocetPolozek++;
hodnota += cena;
}
void Pokladny::zaplat(float money)
{
//EFI_TERMINAL_ADDTOBANK(money)
}