Compare commits
No commits in common. "3d34d47736ad1baafd3e141aa88a2b56ce755bdc" and "0360345ada49fda273073fd06d76ea94bb2fe8aa" have entirely different histories.
3d34d47736
...
0360345ada
|
@ -10,7 +10,7 @@ from .commons.dialogs import HelpDialog, QuickDialog
|
|||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtWidgets import (
|
||||
QCheckBox, QTextEdit, QVBoxLayout, QGridLayout, QLineEdit, QPlainTextEdit,
|
||||
QScrollArea, QHBoxLayout, QDoubleSpinBox, QLabel, QWidget
|
||||
QScrollArea, QHBoxLayout, QDoubleSpinBox, QLabel, QWidget, QDialog
|
||||
)
|
||||
|
||||
from .proxy import Report
|
||||
|
@ -29,6 +29,7 @@ from app.commons.model import TableEdit
|
|||
from .commons.custom_button import CustomButton
|
||||
from .tools import get_icon, get_screen
|
||||
from .reporting import Receipt
|
||||
from .reporting import Receipt
|
||||
|
||||
__all__ = [
|
||||
'ControlPanel', 'SearchSale', 'SearchParty', 'SearchProduct', 'Position',
|
||||
|
@ -1797,8 +1798,7 @@ class DialogTestPrinter(QuickDialog):
|
|||
super(DialogTestPrinter, self).exec_()
|
||||
|
||||
def clear(self):
|
||||
if self.parent.environment == 'restaurant':
|
||||
self.model.clearData()
|
||||
self.model.clearData()
|
||||
self.input_server.setText("")
|
||||
self.combo_interface.set_from_id("")
|
||||
self.combo_row_characters.set_from_id("")
|
||||
|
|
|
@ -827,7 +827,6 @@ class Receipt(object):
|
|||
self._printer.textln('SISTEMA POS')
|
||||
self._printer.textln('PROVEEDOR DE SOFTWARE PRESIK SAS')
|
||||
self._printer.textln('NIT: 900803782-2')
|
||||
self._printer.textln('SOFTWARE PRESIK')
|
||||
self._printer.textln('www.presik.com')
|
||||
self.print_enter()
|
||||
self._printer.cut()
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from app.reporting import Receipt
|
||||
import traceback
|
||||
import time
|
||||
|
||||
|
||||
|
@ -70,8 +71,9 @@ if __name__ == '__main__':
|
|||
receipt = Receipt(ctx_printing)
|
||||
# try:
|
||||
receipt.config_printer(printer_test)
|
||||
receipt.test_printer()
|
||||
time.sleep(1)
|
||||
for i in range(20):
|
||||
receipt.test_printer()
|
||||
time.sleep(1)
|
||||
# receipt._printer.close()
|
||||
# print('impresion numero', i)
|
||||
# except :
|
||||
|
|
Loading…
Reference in New Issue