printing sale receipt
This commit is contained in:
parent
23659078b4
commit
6e6510ebcf
8 changed files with 53 additions and 10 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef POS_PRINTER_H
|
||||
#define POS_PRINTER_H
|
||||
|
||||
#include <sale.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <libusb-1.0/libusb.h>
|
||||
|
@ -21,14 +23,16 @@ class PosPrinter
|
|||
void write(const std::string& text);
|
||||
void printHeader();
|
||||
void printTest();
|
||||
void printReceipt(Sale* sale);
|
||||
|
||||
struct Command {
|
||||
static const std::string RESET;
|
||||
static const std::string ENCODING;
|
||||
static const std::string CENTERING;
|
||||
static const std::string LEFT_ALIGN;
|
||||
static const std::string RIGHT_ALIGN;
|
||||
static const std::string FONT_SIZE_BIG;
|
||||
static const std::string FONT_SIZE_NORMAL;
|
||||
static const std::string LEFT_ALIGN;
|
||||
static const std::string FEED;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue