-
Notifications
You must be signed in to change notification settings - Fork 0
/
Venta.h
46 lines (34 loc) · 937 Bytes
/
Venta.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
#ifndef ENTREGABLE1_VENTA_H
#define ENTREGABLE1_VENTA_H
#include "MenuClientes.h"
#include "MenuEmpleados.h"
#include "menuProd.h"
class Venta
{
private:
std::string codigoVenta;
std::string codigoCliente;
std::string codigoEmpleado;
ListProd listaProdVenta;
float total;
public:
Venta();
Venta(Venta& v);
Venta(ListProd & listaProductos);
void setCodigoVenta(std::string codV);
void setCodigoCliente(std::string codC);
void setCodigoEmpleado(std::string codE);
void setTotal(float t);
void setListaProductosVenta(ListProd& lista);
std::string getCodigoVenta();
std::string getCodigoCliente();
std::string getCodigoEmpleado();
float getTotal();
ListProd getListaProductosVenta();
std::string toString();
Venta& operator = (Venta& v);
bool operator == (Venta& v);
void readListaProductos(std::string fileName); //filename = "venta" + codigoVenta
void writeListaProductos(std::string fileName);
};
#endif //ENTREGABLE1_VENTA_H