-
Notifications
You must be signed in to change notification settings - Fork 1
/
faturayonetimi.h
executable file
·37 lines (31 loc) · 1.04 KB
/
faturayonetimi.h
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
#ifndef FATURAYONETIMI_H
#define FATURAYONETIMI_H
#include "sepet.h"
#include "stokkarti.h"
#include "stokyonetimi.h"
#include "kasayonetimi.h"
#include "cari.h"
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
class FaturaYonetimi
{
public:
FaturaYonetimi();
~FaturaYonetimi();
QSqlDatabase db = QSqlDatabase::database("mhss_data");
QSqlQuery sorgu = QSqlQuery(db);
StokYonetimi stokYonetimi = StokYonetimi();
KasaYonetimi kasaYonetimi = KasaYonetimi();
void satisYap(Sepet satilacakSepet, User satisYapanKullanici, int satisYapilanCariID);
Sepet getSatis(QString _faturaNo, Cari::BorcHesaplama borcHesaplama);
// Sepet getSatis(QString _faturaNo, Cari cari);
QSqlQuery getIslemInfo(QString _faturaNo);
void iadeAl(Sepet iadeSepet, User kullanici);
void iadeAl(Sepet iadeSepet, User kullanici, Cari iadeCari, QString faturaNo);
bool iadeAlinmismi(QString FaturaNo);
bool faturayiSil(QString faturaNo);
QString yeniFaturaNo();
QString sonIslemNumarasi();
};
#endif // FATURAYONETIMI_H