-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpagamento.h
51 lines (37 loc) · 1.02 KB
/
pagamento.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef PAGAMENTO_H
#define PAGAMENTO_H
#include <QDialog>
#include "venda.h"
#include "vendas.h"
#include <QLocale>
#include "ui_pagamento.h"
#include <QSqlDatabase>
#include <QMessageBox>
#include <QDateTime>
namespace Ui {
class pagamento;
}
class pagamento : public QDialog
{
Q_OBJECT
public:
explicit pagamento(QString total, QString cliente, QString data, QWidget *parent = nullptr);
virtual ~pagamento();
QString clienteGlobal;
QString dataGlobal;
QString totalGlobal;
QLocale portugues;
QSqlDatabase db = QSqlDatabase::database();
private slots:
void on_buttonBox_accepted();
void on_Ledit_Recebido_textChanged(const QString &arg1);
void on_CBox_FormaPagamento_activated(int index);
void on_Ledit_Taxa_textChanged(const QString &arg1);
void on_Ledit_Desconto_textChanged(const QString &arg1);
protected:
float obterValorFinal(QString taxa, QString desconto);
void descontoTaxa();
Ui::pagamento *ui;
virtual void terminarPagamento();
};
#endif // PAGAMENTO_H