-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice.cpp
56 lines (45 loc) · 821 Bytes
/
invoice.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
#include "invoice.h"
// CONSTRUCTORS / DESTRUCTOR
Invoice::Invoice()
{
}
Invoice::Invoice(QString companyName)
{
_companyName = companyName;
}
Invoice::~Invoice()
{
}
int Invoice::getId(){
return _id;
}
void Invoice::setId(int id){
_id = id;
}
QString Invoice::getDateString() {
return _date.toString();
}
QDateTime Invoice::getDateTime(){
return _date;
}
void Invoice::setDateTime(QDateTime dTime){
_date = dTime;
}
QString Invoice::getCompanyName(){
return _companyName;
}
void Invoice::setCompanyName(QString cName){
_companyName = cName;
}
QString Invoice::getCost(){
return _cost;
}
void Invoice::setCost(QString cost){
_cost = cost;
}
QString Invoice::getComments(){
return _comments;
}
void Invoice::setComments(QString comments){
_comments = comments;
}