BonPrinter v1.2.0
Thermal Printer tool
Loading...
Searching...
No Matches
report.py File Reference

read and write print log data and create report More...

Go to the source code of this file.

Classes

class  Item
 properties of printed article More...
class  ItemReport
 properties of logged article More...
class  Report
 Report class to log and create sales articles. More...

Namespaces

namespace  Source
namespace  Source.Model
namespace  Source.Model.report

Functions

Item create_item (int count, str name, int pos, int group, float price, float price_total, str|None user, datetime date, bool port)
 Create Item to write to log.

Variables

bool B_POWERSHELL_COPY = False
dict D_GROUP_SUMMARY
 log = logging.getLogger(__title__)
str S_COMBINE_FOLDER_NAME = "CombinedReport"
str S_PRINT_FILE = f"{S_PRINT_LOG_NAME}.csv"
str S_PRINT_LOG_NAME = "PrintLog"
str S_REPORT_FOLDER_NAME = "PrintReport"
str S_REPORT_NAME = "Report"
str SALES_KEY = "sales"
str SUM_KEY = "sum"

Detailed Description

read and write print log data and create report


Definition in file report.py.