Minor fixes

This commit is contained in:
Oscar Alvarez 2020-12-08 22:52:42 -05:00
parent 76500163e0
commit 6bfdf2056f
2 changed files with 7 additions and 7 deletions

View file

@ -18,9 +18,9 @@ from .dialogs import (
)
from datetime import datetime, timedelta, date
from collections import OrderedDict
# from PyQt5.QtGui import QTouchEvent
from PyQt5.QtWidgets import (QLabel, QHBoxLayout, QVBoxLayout,
QWidget, QGridLayout, QLineEdit)
from PyQt5.QtWidgets import (
QLabel, QHBoxLayout, QVBoxLayout, QWidget, QLineEdit
)
from app.commons.action import Action
from app.commons.forms import GridForm, ComboBox, FieldNumeric
from app.commons.messages import MessageBar
@ -397,7 +397,6 @@ class MainWindow(FrontWindow):
self.user_can_delete = self.type_pos_user in ('frontend_admin', 'cashier')
self.product_categories = self.device['shop']['product_categories']
# print(self.device)
self.salesman_required = self.device['shop']['salesman_pos_required']
self.default_party = self.shop['party']
@ -531,7 +530,7 @@ class MainWindow(FrontWindow):
if self.screen_size == 'small':
max_size = 620
else:
max_size = 1100
max_size = 1300
panel_left.setMaximumWidth(max_size)
panel_left.setLayout(vbox_left)
@ -832,13 +831,12 @@ class MainWindow(FrontWindow):
panel_right.addLayout(self.grid_amounts, 0)
panel_right.addLayout(self.buttonpad.stacked, 0)
else:
vbox_left.addLayout(self.grid_info, 1)
panel_right.addLayout(self.grid_amounts, 1)
panel_right.addLayout(self.buttonpad.functions, 1)
panel_right.addLayout(self.buttonpad.stacked, 0)
panel_right.addLayout(self.grid_info, 1)
panel_right.addWidget(self.table_payment)
vbox_left.addLayout(left_info_order, 0)
panels.addWidget(panel_left, 1)
panels.addLayout(panel_right, 0)
widget = QWidget()

View file

@ -23,8 +23,10 @@ profile_printer=TM-P80
# ROW CHARACTERS: 33 / 48 / 28
# --- EPSON TM-T20 = 33
# --- EPSON TM-T88 = 42
# --- SAT 23T = 48
# --- SAT = 42
row_characters=48
# Define mode to print receipt: automatic or manually