parent
03258c6782
commit
3765ac8f02
|
@ -10,13 +10,17 @@ from PySide6.QtWidgets import (QGridLayout, QGroupBox, QLabel,
|
|||
from ..version import __version__
|
||||
pkg_dir = str(Path(os.path.dirname(__file__)).parents[0])
|
||||
path_pos_advanced = os.path.join(pkg_dir, 'share', 'advanced_pos.png')
|
||||
from ..tools import get_screen
|
||||
|
||||
|
||||
class Ui_Login(object):
|
||||
def setupUi(self, MainWindow):
|
||||
if not MainWindow.objectName():
|
||||
MainWindow.setObjectName(u"MainWindow")
|
||||
MainWindow.resize(1173, 666)
|
||||
width, height = get_screen()
|
||||
# MainWindow.resize(1173, 666)
|
||||
# print(width*0.6109, height*0.6166, 'screen')
|
||||
MainWindow.resize(width*0.6109, height*0.6166)
|
||||
icon = QIcon()
|
||||
icon.addFile(u"../.pos_app/presik_pos_v2/app/share/pos-icon.ico", QSize(), QIcon.Normal, QIcon.Off)
|
||||
MainWindow.setWindowIcon(icon)
|
||||
|
@ -213,7 +217,7 @@ class Ui_Login(object):
|
|||
|
||||
self.label_image = QLabel(self.gridGroupBoxMain)
|
||||
self.label_image.setObjectName(u"label_image")
|
||||
self.label_image.setMaximumSize(QSize(731, 661))
|
||||
self.label_image.setMaximumSize(QSize(width*0.3807, height*0.6120))
|
||||
self.label_image.setPixmap(QPixmap(path_pos_advanced))
|
||||
self.label_image.setScaledContents(True)
|
||||
|
||||
|
|
|
@ -365,7 +365,7 @@ class DialogManageTables(QuickDialog):
|
|||
width, height = get_screen()
|
||||
super(DialogManageTables, self).__init__(parent, 'action',
|
||||
widgets=[self.manager])
|
||||
self.setFixedSize(int(width / 1.5), int(height / 1.5))
|
||||
self.setFixedSize(int(width / 1.5), int(height / 1.2))
|
||||
|
||||
def exec(self):
|
||||
self.open_tables()
|
||||
|
|
|
@ -33,7 +33,7 @@ MODELS_RESTAURANT = {
|
|||
'tax_amount', 'delivery_charge', 'price_list', 'invoice_number',
|
||||
'shipment_address', 'kind', 'shop', 'order_status',
|
||||
'delivery_party', 'reference', 'comment', 'payment_method',
|
||||
'delivery_state', 'table_assigned', 'invoice_type', 'net_amount',
|
||||
'delivery_state', 'table_assigned.name', 'invoice_type', 'net_amount',
|
||||
'delivery_amount',
|
||||
'source.rec_name', 'position', 'payment_term.payment_type',
|
||||
'consumer.name', 'consumer.phone', 'consumer.rec_name',
|
||||
|
|
Loading…
Reference in New Issue