Example #1
0
class Ui_PurchaseOrder(object):
    def setupUi(self, PurchaseOrder):
        PurchaseOrder.setObjectName("PurchaseOrder")
        PurchaseOrder.resize(1716, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            PurchaseOrder.sizePolicy().hasHeightForWidth())
        PurchaseOrder.setSizePolicy(sizePolicy)
        self.gridLayout_2 = QtGui.QGridLayout(PurchaseOrder)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.widget = Header(PurchaseOrder)
        self.widget.setObjectName("widget")
        self.gridLayout_2.addWidget(self.widget, 0, 0, 1, 4)
        self.groupBox = QtGui.QGroupBox(PurchaseOrder)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.customerNameLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameLabel.sizePolicy().hasHeightForWidth())
        self.customerNameLabel.setSizePolicy(sizePolicy)
        self.customerNameLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.gridLayout.addWidget(self.customerNameLabel, 0, 0, 1, 1)
        self.customerNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setObjectName("customerNameValue")
        self.gridLayout.addWidget(self.customerNameValue, 0, 1, 1, 1)
        self.PONoLabel = QtGui.QLabel(self.groupBox)
        self.PONoLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.PONoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.PONoLabel.setObjectName("PONoLabel")
        self.gridLayout.addWidget(self.PONoLabel, 0, 2, 1, 1)
        self.poNoValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poNoValue.sizePolicy().hasHeightForWidth())
        self.poNoValue.setSizePolicy(sizePolicy)
        self.poNoValue.setMinimumSize(QtCore.QSize(250, 30))
        self.poNoValue.setReadOnly(False)
        self.poNoValue.setObjectName("poNoValue")
        self.gridLayout.addWidget(self.poNoValue, 0, 3, 1, 1)
        self.PODatelabel = QtGui.QLabel(self.groupBox)
        self.PODatelabel.setMinimumSize(QtCore.QSize(150, 30))
        self.PODatelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.PODatelabel.setObjectName("PODatelabel")
        self.gridLayout.addWidget(self.PODatelabel, 0, 4, 1, 1)
        self.poDateValue = QtGui.QDateEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poDateValue.sizePolicy().hasHeightForWidth())
        self.poDateValue.setSizePolicy(sizePolicy)
        self.poDateValue.setMinimumSize(QtCore.QSize(150, 30))
        self.poDateValue.setCalendarPopup(True)
        self.poDateValue.setObjectName("poDateValue")
        self.gridLayout.addWidget(self.poDateValue, 0, 5, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 1, 0, 1, 3)
        self.addButton = QtGui.QPushButton(PurchaseOrder)
        self.addButton.setMinimumSize(QtCore.QSize(0, 35))
        self.addButton.setObjectName("addButton")
        self.gridLayout_2.addWidget(self.addButton, 2, 0, 1, 1)
        self.removeButton = QtGui.QPushButton(PurchaseOrder)
        self.removeButton.setMinimumSize(QtCore.QSize(0, 35))
        self.removeButton.setObjectName("removeButton")
        self.gridLayout_2.addWidget(self.removeButton, 2, 1, 1, 1)
        self.clearButton = QtGui.QPushButton(PurchaseOrder)
        self.clearButton.setMinimumSize(QtCore.QSize(0, 35))
        self.clearButton.setObjectName("clearButton")
        self.gridLayout_2.addWidget(self.clearButton, 2, 2, 1, 1)
        self.importButton = QtGui.QPushButton(PurchaseOrder)
        self.importButton.setMinimumSize(QtCore.QSize(0, 35))
        self.importButton.setObjectName("importButton")
        self.gridLayout_2.addWidget(self.importButton, 2, 3, 1, 1)
        self.purchaseOrderTable = PurchaseOrderTable(PurchaseOrder)
        self.purchaseOrderTable.setObjectName("purchaseOrderTable")
        self.gridLayout_2.addWidget(self.purchaseOrderTable, 3, 0, 1, 4)
        self.groupBox_3 = QtGui.QGroupBox(PurchaseOrder)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 40))
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 150))
        self.groupBox_3.setTitle("")
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.remarksLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.remarksLabel.sizePolicy().hasHeightForWidth())
        self.remarksLabel.setSizePolicy(sizePolicy)
        self.remarksLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.remarksLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.remarksLabel.setObjectName("remarksLabel")
        self.horizontalLayout.addWidget(self.remarksLabel)
        self.remarksValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.remarksValue.sizePolicy().hasHeightForWidth())
        self.remarksValue.setSizePolicy(sizePolicy)
        self.remarksValue.setMinimumSize(QtCore.QSize(350, 50))
        self.remarksValue.setMaximumSize(QtCore.QSize(16777215, 50))
        self.remarksValue.setObjectName("remarksValue")
        self.horizontalLayout.addWidget(self.remarksValue)
        self.saveButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(
            self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setMinimumSize(QtCore.QSize(300, 35))
        self.saveButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout.addWidget(self.saveButton)
        self.discardButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(
            self.discardButton.sizePolicy().hasHeightForWidth())
        self.discardButton.setSizePolicy(sizePolicy)
        self.discardButton.setMinimumSize(QtCore.QSize(300, 35))
        self.discardButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.discardButton.setObjectName("discardButton")
        self.horizontalLayout.addWidget(self.discardButton)
        self.gridLayout_2.addWidget(self.groupBox_3, 4, 0, 1, 4)

        self.retranslateUi(PurchaseOrder)
        QtCore.QMetaObject.connectSlotsByName(PurchaseOrder)

    def retranslateUi(self, PurchaseOrder):
        PurchaseOrder.setWindowTitle(
            QtGui.QApplication.translate("PurchaseOrder", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Customer Name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.PONoLabel.setText(
            QtGui.QApplication.translate("PurchaseOrder", "PO no", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.PODatelabel.setText(
            QtGui.QApplication.translate("PurchaseOrder", "PO Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.addButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Add", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Clear Selected Row",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Import", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.remarksLabel.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Remarks", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(
            QtGui.QApplication.translate("PurchaseOrder", "Discard", None,
                                         QtGui.QApplication.UnicodeUTF8))
class Ui_companyItem(object):
    def setupUi(self, companyItem):
        companyItem.setObjectName("companyItem")
        companyItem.resize(1694, 689)
        self.gridLayout_3 = QtGui.QGridLayout(companyItem)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 100))
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 2)
        self.inputGroupBox = QtGui.QGroupBox(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.inputGroupBox.sizePolicy().hasHeightForWidth())
        self.inputGroupBox.setSizePolicy(sizePolicy)
        self.inputGroupBox.setCheckable(False)
        self.inputGroupBox.setObjectName("inputGroupBox")
        self.gridLayout = QtGui.QGridLayout(self.inputGroupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.itemCodeLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemCodeLabel.sizePolicy().hasHeightForWidth())
        self.itemCodeLabel.setSizePolicy(sizePolicy)
        self.itemCodeLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemCodeLabel.setObjectName("itemCodeLabel")
        self.horizontalLayout_3.addWidget(self.itemCodeLabel)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.itemCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemCodeValue.sizePolicy().hasHeightForWidth())
        self.itemCodeValue.setSizePolicy(sizePolicy)
        self.itemCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemCodeValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.itemCodeValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.itemCodeValue.setObjectName("itemCodeValue")
        self.verticalLayout_2.addWidget(self.itemCodeValue)
        self.codeMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.codeMandLabel.sizePolicy().hasHeightForWidth())
        self.codeMandLabel.setSizePolicy(sizePolicy)
        self.codeMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.codeMandLabel.setStyleSheet("QLabel { color : red; }")
        self.codeMandLabel.setObjectName("codeMandLabel")
        self.verticalLayout_2.addWidget(self.codeMandLabel)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.itemNameLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemNameLabel.sizePolicy().hasHeightForWidth())
        self.itemNameLabel.setSizePolicy(sizePolicy)
        self.itemNameLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemNameLabel.setObjectName("itemNameLabel")
        self.horizontalLayout_4.addWidget(self.itemNameLabel)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.itemNameValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemNameValue.sizePolicy().hasHeightForWidth())
        self.itemNameValue.setSizePolicy(sizePolicy)
        self.itemNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemNameValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.itemNameValue.setObjectName("itemNameValue")
        self.verticalLayout_3.addWidget(self.itemNameValue)
        self.nameMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.nameMandLabel.sizePolicy().hasHeightForWidth())
        self.nameMandLabel.setSizePolicy(sizePolicy)
        self.nameMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.nameMandLabel.setStyleSheet("QLabel { color : red; }")
        self.nameMandLabel.setObjectName("nameMandLabel")
        self.verticalLayout_3.addWidget(self.nameMandLabel)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_4, 1, 0, 1, 2)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.hsnCodeLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnCodeLabel.sizePolicy().hasHeightForWidth())
        self.hsnCodeLabel.setSizePolicy(sizePolicy)
        self.hsnCodeLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.hsnCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.hsnCodeLabel.setObjectName("hsnCodeLabel")
        self.horizontalLayout_5.addWidget(self.hsnCodeLabel)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.hsnCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnCodeValue.sizePolicy().hasHeightForWidth())
        self.hsnCodeValue.setSizePolicy(sizePolicy)
        self.hsnCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.hsnCodeValue.setAlignment(QtCore.Qt.AlignBottom
                                       | QtCore.Qt.AlignLeading
                                       | QtCore.Qt.AlignLeft)
        self.hsnCodeValue.setObjectName("hsnCodeValue")
        self.verticalLayout_4.addWidget(self.hsnCodeValue)
        self.hsnMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.hsnMandLabel.sizePolicy().hasHeightForWidth())
        self.hsnMandLabel.setSizePolicy(sizePolicy)
        self.hsnMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.hsnMandLabel.setStyleSheet("QLabel { color : red; }")
        self.hsnMandLabel.setObjectName("hsnMandLabel")
        self.verticalLayout_4.addWidget(self.hsnMandLabel)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.gridLayout.addLayout(self.horizontalLayout_5, 2, 0, 1, 2)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.quantityLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityLabel.sizePolicy().hasHeightForWidth())
        self.quantityLabel.setSizePolicy(sizePolicy)
        self.quantityLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.quantityLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.quantityLabel.setObjectName("quantityLabel")
        self.horizontalLayout_6.addWidget(self.quantityLabel)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.quantityValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityValue.sizePolicy().hasHeightForWidth())
        self.quantityValue.setSizePolicy(sizePolicy)
        self.quantityValue.setMinimumSize(QtCore.QSize(200, 35))
        self.quantityValue.setAlignment(QtCore.Qt.AlignBottom
                                        | QtCore.Qt.AlignLeading
                                        | QtCore.Qt.AlignLeft)
        self.quantityValue.setObjectName("quantityValue")
        self.verticalLayout_5.addWidget(self.quantityValue)
        self.quantityMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quantityMandLabel.sizePolicy().hasHeightForWidth())
        self.quantityMandLabel.setSizePolicy(sizePolicy)
        self.quantityMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.quantityMandLabel.setStyleSheet("QLabel { color : red; }")
        self.quantityMandLabel.setObjectName("quantityMandLabel")
        self.verticalLayout_5.addWidget(self.quantityMandLabel)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)
        self.gridLayout.addLayout(self.horizontalLayout_6, 3, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.itemPriceLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemPriceLabel.sizePolicy().hasHeightForWidth())
        self.itemPriceLabel.setSizePolicy(sizePolicy)
        self.itemPriceLabel.setMinimumSize(QtCore.QSize(200, 35))
        self.itemPriceLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.itemPriceLabel.setObjectName("itemPriceLabel")
        self.horizontalLayout_7.addWidget(self.itemPriceLabel)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.itemPriceValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.itemPriceValue.sizePolicy().hasHeightForWidth())
        self.itemPriceValue.setSizePolicy(sizePolicy)
        self.itemPriceValue.setMinimumSize(QtCore.QSize(200, 35))
        self.itemPriceValue.setAlignment(QtCore.Qt.AlignBottom
                                         | QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft)
        self.itemPriceValue.setObjectName("itemPriceValue")
        self.verticalLayout_6.addWidget(self.itemPriceValue)
        self.priceMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.priceMandLabel.sizePolicy().hasHeightForWidth())
        self.priceMandLabel.setSizePolicy(sizePolicy)
        self.priceMandLabel.setMinimumSize(QtCore.QSize(200, 30))
        self.priceMandLabel.setStyleSheet("QLabel { color : red; }")
        self.priceMandLabel.setObjectName("priceMandLabel")
        self.verticalLayout_6.addWidget(self.priceMandLabel)
        self.horizontalLayout_7.addLayout(self.verticalLayout_6)
        self.gridLayout.addLayout(self.horizontalLayout_7, 4, 0, 1, 2)
        self.saveButton = QtGui.QPushButton(self.inputGroupBox)
        self.saveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 5, 0, 1, 1)
        self.discardButton = QtGui.QPushButton(self.inputGroupBox)
        self.discardButton.setMinimumSize(QtCore.QSize(200, 35))
        self.discardButton.setObjectName("discardButton")
        self.gridLayout.addWidget(self.discardButton, 5, 1, 1, 1)
        self.gridLayout_3.addWidget(self.inputGroupBox, 1, 0, 2, 1)
        self.groupBox = QtGui.QGroupBox(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 100))
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.voucherNoLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.voucherNoLabel_2.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_2.setSizePolicy(sizePolicy)
        self.voucherNoLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_2.setObjectName("voucherNoLabel_2")
        self.horizontalLayout.addWidget(self.voucherNoLabel_2)
        self.searchItemCodeValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchItemCodeValue.sizePolicy().hasHeightForWidth())
        self.searchItemCodeValue.setSizePolicy(sizePolicy)
        self.searchItemCodeValue.setMinimumSize(QtCore.QSize(450, 35))
        self.searchItemCodeValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.searchItemCodeValue.setObjectName("searchItemCodeValue")
        self.horizontalLayout.addWidget(self.searchItemCodeValue)
        self.voucherNoLabel_3 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.voucherNoLabel_3.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_3.setSizePolicy(sizePolicy)
        self.voucherNoLabel_3.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_3.setObjectName("voucherNoLabel_3")
        self.horizontalLayout.addWidget(self.voucherNoLabel_3)
        self.searchNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchNameValue.sizePolicy().hasHeightForWidth())
        self.searchNameValue.setSizePolicy(sizePolicy)
        self.searchNameValue.setMinimumSize(QtCore.QSize(450, 35))
        self.searchNameValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.searchNameValue.setObjectName("searchNameValue")
        self.horizontalLayout.addWidget(self.searchNameValue)
        self.gridLayout_4.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(400, 35))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_2.addWidget(self.searchButton)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 1, 1, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 3)
        self.removeButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setMinimumSize(QtCore.QSize(0, 35))
        self.removeButton.setObjectName("removeButton")
        self.gridLayout_2.addWidget(self.removeButton, 1, 0, 1, 1)
        self.clearButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setMinimumSize(QtCore.QSize(0, 35))
        self.clearButton.setObjectName("clearButton")
        self.gridLayout_2.addWidget(self.clearButton, 1, 1, 1, 1)
        self.importButton = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setMinimumSize(QtCore.QSize(0, 35))
        self.importButton.setObjectName("importButton")
        self.gridLayout_2.addWidget(self.importButton, 1, 2, 1, 1)
        self.companyItemsTable = CompanyItemTable(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.companyItemsTable.sizePolicy().hasHeightForWidth())
        self.companyItemsTable.setSizePolicy(sizePolicy)
        self.companyItemsTable.setObjectName("companyItemsTable")
        self.gridLayout_2.addWidget(self.companyItemsTable, 2, 0, 1, 3)
        spacerItem = QtGui.QSpacerItem(758, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 2)
        self.saveTableData = QtGui.QPushButton(companyItem)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.saveTableData.sizePolicy().hasHeightForWidth())
        self.saveTableData.setSizePolicy(sizePolicy)
        self.saveTableData.setMinimumSize(QtCore.QSize(300, 35))
        self.saveTableData.setObjectName("saveTableData")
        self.gridLayout_2.addWidget(self.saveTableData, 3, 2, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 2, 1, 1, 1)

        self.retranslateUi(companyItem)
        QtCore.QMetaObject.connectSlotsByName(companyItem)

    def retranslateUi(self, companyItem):
        companyItem.setWindowTitle(
            QtGui.QApplication.translate("companyItem", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.inputGroupBox.setTitle(
            QtGui.QApplication.translate("companyItem", "Sales Items", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemCodeLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Item Code",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.codeMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Code is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemNameLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemNameValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Item name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.nameMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Name is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnCodeLabel.setText(
            QtGui.QApplication.translate("companyItem", "HSN Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter HSN Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.hsnMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* HSN Code is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityLabel.setText(
            QtGui.QApplication.translate("companyItem", "Quantity", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter quantity", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.quantityMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Quantity is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemPriceLabel.setText(
            QtGui.QApplication.translate("companyItem", "Item Price", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.itemPriceValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter item price",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.priceMandLabel.setText(
            QtGui.QApplication.translate("companyItem",
                                         "* Item Price is Mandatory", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("companyItem", "Save Changes", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(
            QtGui.QApplication.translate("companyItem", "Discard", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(
            QtGui.QApplication.translate("companyItem", "Search ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_2.setText(
            QtGui.QApplication.translate("companyItem", "Enter ItemCode", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchItemCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter ItemCode", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_3.setText(
            QtGui.QApplication.translate("companyItem", "Enter Item Name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.searchNameValue.setPlaceholderText(
            QtGui.QApplication.translate("companyItem", "Enter Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(
            QtGui.QApplication.translate("companyItem", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("companyItem", "Remove Selected",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("companyItem", "Clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(
            QtGui.QApplication.translate("companyItem", "Import", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveTableData.setText(
            QtGui.QApplication.translate("companyItem", "Save Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
class Ui_quotationReport(object):
    def setupUi(self, quotationReport):
        quotationReport.setObjectName("quotationReport")
        quotationReport.resize(1716, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            quotationReport.sizePolicy().hasHeightForWidth())
        quotationReport.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(quotationReport)
        self.gridLayout.setObjectName("gridLayout")
        self.widget_2 = Header(quotationReport)
        self.widget_2.setObjectName("widget_2")
        self.gridLayout.addWidget(self.widget_2, 0, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(quotationReport)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.customerSearchValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerSearchValue.sizePolicy().hasHeightForWidth())
        self.customerSearchValue.setSizePolicy(sizePolicy)
        self.customerSearchValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerSearchValue.setMaximumSize(QtCore.QSize(400, 16777215))
        self.customerSearchValue.setObjectName("customerSearchValue")
        self.horizontalLayout.addWidget(self.customerSearchValue)
        self.billSearchValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billSearchValue.sizePolicy().hasHeightForWidth())
        self.billSearchValue.setSizePolicy(sizePolicy)
        self.billSearchValue.setMinimumSize(QtCore.QSize(0, 35))
        self.billSearchValue.setMaximumSize(QtCore.QSize(300, 16777215))
        self.billSearchValue.setObjectName("billSearchValue")
        self.horizontalLayout.addWidget(self.billSearchValue)
        self.fromDateLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fromDateLabel.sizePolicy().hasHeightForWidth())
        self.fromDateLabel.setSizePolicy(sizePolicy)
        self.fromDateLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.fromDateLabel.setMaximumSize(QtCore.QSize(200, 16777215))
        self.fromDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.fromDateLabel.setObjectName("fromDateLabel")
        self.horizontalLayout.addWidget(self.fromDateLabel)
        self.fromDateValue = QtGui.QDateEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fromDateValue.sizePolicy().hasHeightForWidth())
        self.fromDateValue.setSizePolicy(sizePolicy)
        self.fromDateValue.setMinimumSize(QtCore.QSize(0, 35))
        self.fromDateValue.setMaximumSize(QtCore.QSize(250, 16777215))
        self.fromDateValue.setCalendarPopup(True)
        self.fromDateValue.setObjectName("fromDateValue")
        self.horizontalLayout.addWidget(self.fromDateValue)
        self.toDateLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.toDateLabel.sizePolicy().hasHeightForWidth())
        self.toDateLabel.setSizePolicy(sizePolicy)
        self.toDateLabel.setMinimumSize(QtCore.QSize(0, 0))
        self.toDateLabel.setMaximumSize(QtCore.QSize(200, 16777215))
        self.toDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.toDateLabel.setObjectName("toDateLabel")
        self.horizontalLayout.addWidget(self.toDateLabel)
        self.toDateValue = QtGui.QDateEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.toDateValue.sizePolicy().hasHeightForWidth())
        self.toDateValue.setSizePolicy(sizePolicy)
        self.toDateValue.setMinimumSize(QtCore.QSize(0, 35))
        self.toDateValue.setMaximumSize(QtCore.QSize(250, 16777215))
        self.toDateValue.setCalendarPopup(True)
        self.toDateValue.setObjectName("toDateValue")
        self.horizontalLayout.addWidget(self.toDateValue)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(0, 35))
        self.searchButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_2.addWidget(self.searchButton)
        self.resetButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resetButton.sizePolicy().hasHeightForWidth())
        self.resetButton.setSizePolicy(sizePolicy)
        self.resetButton.setMinimumSize(QtCore.QSize(0, 35))
        self.resetButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.resetButton.setObjectName("resetButton")
        self.horizontalLayout_2.addWidget(self.resetButton)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.removeButton = QtGui.QPushButton(quotationReport)
        self.removeButton.setMinimumSize(QtCore.QSize(200, 0))
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_4.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(quotationReport)
        self.clearButton.setMinimumSize(QtCore.QSize(200, 0))
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_4.addWidget(self.clearButton)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_4, 2, 0, 1, 2)
        self.quotationReportTable = QuotationReportTable(quotationReport)
        self.quotationReportTable.setAlternatingRowColors(True)
        self.quotationReportTable.setObjectName("quotationReportTable")
        self.gridLayout.addWidget(self.quotationReportTable, 3, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(1278, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
        self.saveButton = QtGui.QPushButton(quotationReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setMinimumSize(QtCore.QSize(400, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 4, 1, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.amountLabel = QtGui.QLabel(quotationReport)
        self.amountLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountLabel.setObjectName("amountLabel")
        self.horizontalLayout_3.addWidget(self.amountLabel)
        self.amountValue = QtGui.QLineEdit(quotationReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.amountValue.sizePolicy().hasHeightForWidth())
        self.amountValue.setSizePolicy(sizePolicy)
        self.amountValue.setMinimumSize(QtCore.QSize(0, 35))
        self.amountValue.setReadOnly(True)
        self.amountValue.setObjectName("amountValue")
        self.horizontalLayout_3.addWidget(self.amountValue)
        self.taxLabel = QtGui.QLabel(quotationReport)
        self.taxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.taxLabel.setObjectName("taxLabel")
        self.horizontalLayout_3.addWidget(self.taxLabel)
        self.taxValue = QtGui.QLineEdit(quotationReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.taxValue.sizePolicy().hasHeightForWidth())
        self.taxValue.setSizePolicy(sizePolicy)
        self.taxValue.setMinimumSize(QtCore.QSize(0, 35))
        self.taxValue.setReadOnly(True)
        self.taxValue.setObjectName("taxValue")
        self.horizontalLayout_3.addWidget(self.taxValue)
        self.totalLabel = QtGui.QLabel(quotationReport)
        self.totalLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.totalLabel.setObjectName("totalLabel")
        self.horizontalLayout_3.addWidget(self.totalLabel)
        self.totalValue = QtGui.QLineEdit(quotationReport)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.totalValue.sizePolicy().hasHeightForWidth())
        self.totalValue.setSizePolicy(sizePolicy)
        self.totalValue.setMinimumSize(QtCore.QSize(0, 35))
        self.totalValue.setReadOnly(True)
        self.totalValue.setObjectName("totalValue")
        self.horizontalLayout_3.addWidget(self.totalValue)
        self.gridLayout.addLayout(self.horizontalLayout_3, 5, 0, 1, 2)

        self.retranslateUi(quotationReport)
        QtCore.QMetaObject.connectSlotsByName(quotationReport)

    def retranslateUi(self, quotationReport):
        quotationReport.setWindowTitle(
            QtGui.QApplication.translate("quotationReport", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerSearchValue.setPlaceholderText(
            QtGui.QApplication.translate("quotationReport",
                                         "Enter Customer Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billSearchValue.setPlaceholderText(
            QtGui.QApplication.translate("quotationReport",
                                         "Enter Quotation No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateLabel.setText(
            QtGui.QApplication.translate("quotationReport", "From Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateValue.setDisplayFormat(
            QtGui.QApplication.translate("quotationReport", "dd-MMM-yyyy",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.toDateLabel.setText(
            QtGui.QApplication.translate("quotationReport", "To Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toDateValue.setDisplayFormat(
            QtGui.QApplication.translate("quotationReport", "dd-MMM-yyyy",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(
            QtGui.QApplication.translate("quotationReport", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.resetButton.setText(
            QtGui.QApplication.translate("quotationReport", "Reset", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("quotationReport", "Remove Selected",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("quotationReport", "Clear Table",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("quotationReport", "Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.amountLabel.setText(
            QtGui.QApplication.translate("quotationReport", "Amount", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.taxLabel.setText(
            QtGui.QApplication.translate("quotationReport", "Tax", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.totalLabel.setText(
            QtGui.QApplication.translate("quotationReport", "Total", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #4
0
class Ui_quotation(object):
    def setupUi(self, quotation):
        quotation.setObjectName("quotation")
        quotation.resize(1596, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            quotation.sizePolicy().hasHeightForWidth())
        quotation.setSizePolicy(sizePolicy)
        self.gridLayout_6 = QtGui.QGridLayout(quotation)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.widget = Header(quotation)
        self.widget.setObjectName("widget")
        self.gridLayout_6.addWidget(self.widget, 0, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(quotation)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.customerNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setObjectName("customerNameValue")
        self.gridLayout.addWidget(self.customerNameValue, 0, 1, 1, 1)
        self.customerAddressValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerAddressValue.sizePolicy().hasHeightForWidth())
        self.customerAddressValue.setSizePolicy(sizePolicy)
        self.customerAddressValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerAddressValue.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.customerAddressValue.setObjectName("customerAddressValue")
        self.gridLayout.addWidget(self.customerAddressValue, 1, 1, 1, 1)
        self.customerAddressLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerAddressLabel.sizePolicy().hasHeightForWidth())
        self.customerAddressLabel.setSizePolicy(sizePolicy)
        self.customerAddressLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerAddressLabel.setObjectName("customerAddressLabel")
        self.gridLayout.addWidget(self.customerAddressLabel, 1, 0, 1, 1)
        self.customerNameLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameLabel.sizePolicy().hasHeightForWidth())
        self.customerNameLabel.setSizePolicy(sizePolicy)
        self.customerNameLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.gridLayout.addWidget(self.customerNameLabel, 0, 0, 1, 1)
        self.gridLayout_6.addWidget(self.groupBox, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(quotation)
        self.groupBox_2.setTitle("")
        self.groupBox_2.setCheckable(False)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_7 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.billNoLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billNoLabel.sizePolicy().hasHeightForWidth())
        self.billNoLabel.setSizePolicy(sizePolicy)
        self.billNoLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.billNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billNoLabel.setObjectName("billNoLabel")
        self.gridLayout_4.addWidget(self.billNoLabel, 0, 0, 1, 1)
        self.quotationNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quotationNoValue.sizePolicy().hasHeightForWidth())
        self.quotationNoValue.setSizePolicy(sizePolicy)
        self.quotationNoValue.setMinimumSize(QtCore.QSize(150, 30))
        self.quotationNoValue.setReadOnly(True)
        self.quotationNoValue.setObjectName("quotationNoValue")
        self.gridLayout_4.addWidget(self.quotationNoValue, 0, 1, 1, 1)
        self.billDatelabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billDatelabel.sizePolicy().hasHeightForWidth())
        self.billDatelabel.setSizePolicy(sizePolicy)
        self.billDatelabel.setMinimumSize(QtCore.QSize(150, 30))
        self.billDatelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billDatelabel.setObjectName("billDatelabel")
        self.gridLayout_4.addWidget(self.billDatelabel, 1, 0, 1, 1)
        self.quotationDateValue = QtGui.QDateEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.quotationDateValue.sizePolicy().hasHeightForWidth())
        self.quotationDateValue.setSizePolicy(sizePolicy)
        self.quotationDateValue.setMinimumSize(QtCore.QSize(150, 30))
        self.quotationDateValue.setCalendarPopup(True)
        self.quotationDateValue.setObjectName("quotationDateValue")
        self.gridLayout_4.addWidget(self.quotationDateValue, 1, 1, 1, 1)
        self.billDatelabel_2 = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billDatelabel_2.sizePolicy().hasHeightForWidth())
        self.billDatelabel_2.setSizePolicy(sizePolicy)
        self.billDatelabel_2.setMinimumSize(QtCore.QSize(150, 30))
        self.billDatelabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.billDatelabel_2.setObjectName("billDatelabel_2")
        self.gridLayout_4.addWidget(self.billDatelabel_2, 2, 0, 1, 1)
        self.validUntilValue = QtGui.QDateEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.validUntilValue.sizePolicy().hasHeightForWidth())
        self.validUntilValue.setSizePolicy(sizePolicy)
        self.validUntilValue.setMinimumSize(QtCore.QSize(150, 30))
        self.validUntilValue.setCalendarPopup(True)
        self.validUntilValue.setObjectName("validUntilValue")
        self.gridLayout_4.addWidget(self.validUntilValue, 2, 1, 1, 1)
        self.gridLayout_7.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.gridLayout_6.addWidget(self.groupBox_2, 1, 1, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.addButton = QtGui.QPushButton(quotation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.addButton.sizePolicy().hasHeightForWidth())
        self.addButton.setSizePolicy(sizePolicy)
        self.addButton.setObjectName("addButton")
        self.horizontalLayout_2.addWidget(self.addButton)
        self.removeButton = QtGui.QPushButton(quotation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_2.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(quotation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_2.addWidget(self.clearButton)
        self.importButton = QtGui.QPushButton(quotation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setObjectName("importButton")
        self.horizontalLayout_2.addWidget(self.importButton)
        self.gridLayout_6.addLayout(self.horizontalLayout_2, 2, 0, 1, 2)
        self.quotationTable = TableWidget(quotation)
        self.quotationTable.setObjectName("quotationTable")
        self.quotationTable.setColumnCount(0)
        self.quotationTable.setRowCount(0)
        self.gridLayout_6.addWidget(self.quotationTable, 3, 0, 1, 2)
        self.groupBox_3 = QtGui.QGroupBox(quotation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 40))
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 150))
        self.groupBox_3.setTitle("")
        self.groupBox_3.setCheckable(False)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.beforeTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.beforeTaxLabel.sizePolicy().hasHeightForWidth())
        self.beforeTaxLabel.setSizePolicy(sizePolicy)
        self.beforeTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.beforeTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.beforeTaxLabel.setObjectName("beforeTaxLabel")
        self.gridLayout_3.addWidget(self.beforeTaxLabel, 0, 0, 1, 1)
        self.afterTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.afterTaxLabel.sizePolicy().hasHeightForWidth())
        self.afterTaxLabel.setSizePolicy(sizePolicy)
        self.afterTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.afterTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.afterTaxLabel.setObjectName("afterTaxLabel")
        self.gridLayout_3.addWidget(self.afterTaxLabel, 0, 1, 1, 1)
        self.taxValueLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.taxValueLabel.sizePolicy().hasHeightForWidth())
        self.taxValueLabel.setSizePolicy(sizePolicy)
        self.taxValueLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.taxValueLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.taxValueLabel.setObjectName("taxValueLabel")
        self.gridLayout_3.addWidget(self.taxValueLabel, 0, 2, 1, 1)
        self.beforeTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.beforeTaxValue.sizePolicy().hasHeightForWidth())
        self.beforeTaxValue.setSizePolicy(sizePolicy)
        self.beforeTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.beforeTaxValue.setReadOnly(True)
        self.beforeTaxValue.setObjectName("beforeTaxValue")
        self.gridLayout_3.addWidget(self.beforeTaxValue, 1, 0, 1, 1)
        self.afterTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.afterTaxValue.sizePolicy().hasHeightForWidth())
        self.afterTaxValue.setSizePolicy(sizePolicy)
        self.afterTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.afterTaxValue.setReadOnly(True)
        self.afterTaxValue.setObjectName("afterTaxValue")
        self.gridLayout_3.addWidget(self.afterTaxValue, 1, 1, 1, 1)
        self.taxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.taxValue.sizePolicy().hasHeightForWidth())
        self.taxValue.setSizePolicy(sizePolicy)
        self.taxValue.setMinimumSize(QtCore.QSize(200, 35))
        self.taxValue.setReadOnly(True)
        self.taxValue.setObjectName("taxValue")
        self.gridLayout_3.addWidget(self.taxValue, 1, 2, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_3, 0, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.remarksLabel = QtGui.QLabel(self.groupBox_3)
        self.remarksLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.remarksLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.remarksLabel.setObjectName("remarksLabel")
        self.gridLayout_2.addWidget(self.remarksLabel, 0, 0, 1, 1)
        self.amountWordLabel = QtGui.QLabel(self.groupBox_3)
        self.amountWordLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.amountWordLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountWordLabel.setObjectName("amountWordLabel")
        self.gridLayout_2.addWidget(self.amountWordLabel, 0, 1, 1, 1)
        self.remarksValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.remarksValue.sizePolicy().hasHeightForWidth())
        self.remarksValue.setSizePolicy(sizePolicy)
        self.remarksValue.setMinimumSize(QtCore.QSize(350, 40))
        self.remarksValue.setObjectName("remarksValue")
        self.gridLayout_2.addWidget(self.remarksValue, 1, 0, 1, 1)
        self.amountWordsValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.amountWordsValue.sizePolicy().hasHeightForWidth())
        self.amountWordsValue.setSizePolicy(sizePolicy)
        self.amountWordsValue.setMinimumSize(QtCore.QSize(350, 40))
        self.amountWordsValue.setObjectName("amountWordsValue")
        self.gridLayout_2.addWidget(self.amountWordsValue, 1, 1, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_2, 0, 1, 2, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.printCheckBox = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.printCheckBox.sizePolicy().hasHeightForWidth())
        self.printCheckBox.setSizePolicy(sizePolicy)
        self.printCheckBox.setObjectName("printCheckBox")
        self.horizontalLayout.addWidget(self.printCheckBox)
        self.previewButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.previewButton.sizePolicy().hasHeightForWidth())
        self.previewButton.setSizePolicy(sizePolicy)
        self.previewButton.setObjectName("previewButton")
        self.horizontalLayout.addWidget(self.previewButton)
        self.saveButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout.addWidget(self.saveButton)
        self.discardButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.discardButton.sizePolicy().hasHeightForWidth())
        self.discardButton.setSizePolicy(sizePolicy)
        self.discardButton.setObjectName("discardButton")
        self.horizontalLayout.addWidget(self.discardButton)
        self.gridLayout_5.addLayout(self.horizontalLayout, 1, 0, 1, 1)
        self.gridLayout_6.addWidget(self.groupBox_3, 4, 0, 1, 2)

        self.retranslateUi(quotation)
        QtCore.QMetaObject.connectSlotsByName(quotation)

    def retranslateUi(self, quotation):
        quotation.setWindowTitle(
            QtGui.QApplication.translate("quotation", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerNameValue.setPlaceholderText(
            QtGui.QApplication.translate("quotation", "Enter Customer Name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressValue.setPlaceholderText(
            QtGui.QApplication.translate("quotation", "Enter Customer Address",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressLabel.setText(
            QtGui.QApplication.translate("quotation", "Customer Address", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(
            QtGui.QApplication.translate("quotation", "Customer Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billNoLabel.setText(
            QtGui.QApplication.translate("quotation", "Quotation no", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billDatelabel.setText(
            QtGui.QApplication.translate("quotation", "Quotation Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billDatelabel_2.setText(
            QtGui.QApplication.translate("quotation", "Valid Until", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.addButton.setText(
            QtGui.QApplication.translate("quotation", "Add Row", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("quotation", "Remove Selected", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("quotation", "Clear Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(
            QtGui.QApplication.translate("quotation", "Import Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.beforeTaxLabel.setText(
            QtGui.QApplication.translate("quotation",
                                         "Total Amount Before Tax", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.afterTaxLabel.setText(
            QtGui.QApplication.translate("quotation", "Total Amount After Tax",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.taxValueLabel.setText(
            QtGui.QApplication.translate("quotation", "Total Tax Value", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.remarksLabel.setText(
            QtGui.QApplication.translate("quotation", "Remarks", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.amountWordLabel.setText(
            QtGui.QApplication.translate("quotation", "Total Amount in words",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.printCheckBox.setText(
            QtGui.QApplication.translate("quotation", "Print", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.previewButton.setText(
            QtGui.QApplication.translate("quotation", "Preview", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("quotation", "Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(
            QtGui.QApplication.translate("quotation", "Discard", None,
                                         QtGui.QApplication.UnicodeUTF8))
class Ui_SalesInvoice(object):
    def setupUi(self, SalesInvoice):
        SalesInvoice.setObjectName("SalesInvoice")
        SalesInvoice.resize(1718, 797)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            SalesInvoice.sizePolicy().hasHeightForWidth())
        SalesInvoice.setSizePolicy(sizePolicy)
        self.gridLayout_7 = QtGui.QGridLayout(SalesInvoice)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.widget = Header(SalesInvoice)
        self.widget.setObjectName("widget")
        self.verticalLayout_2.addWidget(self.widget)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtGui.QGroupBox(SalesInvoice)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.customerNameLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameLabel.sizePolicy().hasHeightForWidth())
        self.customerNameLabel.setSizePolicy(sizePolicy)
        self.customerNameLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.verticalLayout_3.addWidget(self.customerNameLabel)
        self.customerNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setObjectName("customerNameValue")
        self.verticalLayout_3.addWidget(self.customerNameValue)
        self.customerAddressLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerAddressLabel.sizePolicy().hasHeightForWidth())
        self.customerAddressLabel.setSizePolicy(sizePolicy)
        self.customerAddressLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerAddressLabel.setObjectName("customerAddressLabel")
        self.verticalLayout_3.addWidget(self.customerAddressLabel)
        self.customerAddressValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.customerAddressValue.sizePolicy().hasHeightForWidth())
        self.customerAddressValue.setSizePolicy(sizePolicy)
        self.customerAddressValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerAddressValue.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.customerAddressValue.setObjectName("customerAddressValue")
        self.verticalLayout_3.addWidget(self.customerAddressValue)
        self.gridLayout.addLayout(self.verticalLayout_3, 0, 0, 1, 1)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gstinLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gstinLabel.sizePolicy().hasHeightForWidth())
        self.gstinLabel.setSizePolicy(sizePolicy)
        self.gstinLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.gstinLabel.setObjectName("gstinLabel")
        self.gridLayout_3.addWidget(self.gstinLabel, 0, 0, 1, 1)
        self.gstinValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gstinValue.sizePolicy().hasHeightForWidth())
        self.gstinValue.setSizePolicy(sizePolicy)
        self.gstinValue.setMinimumSize(QtCore.QSize(150, 35))
        self.gstinValue.setObjectName("gstinValue")
        self.gridLayout_3.addWidget(self.gstinValue, 0, 1, 1, 1)
        self.stateCodeLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.stateCodeLabel.sizePolicy().hasHeightForWidth())
        self.stateCodeLabel.setSizePolicy(sizePolicy)
        self.stateCodeLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.stateCodeLabel.setObjectName("stateCodeLabel")
        self.gridLayout_3.addWidget(self.stateCodeLabel, 1, 0, 1, 1)
        self.stateCodeValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.stateCodeValue.sizePolicy().hasHeightForWidth())
        self.stateCodeValue.setSizePolicy(sizePolicy)
        self.stateCodeValue.setMinimumSize(QtCore.QSize(150, 35))
        self.stateCodeValue.setObjectName("stateCodeValue")
        self.gridLayout_3.addWidget(self.stateCodeValue, 1, 1, 1, 1)
        self.paidByLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.paidByLabel.sizePolicy().hasHeightForWidth())
        self.paidByLabel.setSizePolicy(sizePolicy)
        self.paidByLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.paidByLabel.setObjectName("paidByLabel")
        self.gridLayout_3.addWidget(self.paidByLabel, 2, 0, 1, 1)
        self.comboBox = QtGui.QComboBox(self.groupBox)
        self.comboBox.setObjectName("comboBox")
        self.gridLayout_3.addWidget(self.comboBox, 2, 1, 1, 1)
        self.gridLayout.addLayout(self.gridLayout_3, 0, 1, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(SalesInvoice)
        self.groupBox_2.setTitle("")
        self.groupBox_2.setCheckable(False)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_8.setObjectName("gridLayout_8")
        self.gridLayout_4 = QtGui.QGridLayout()
        self.gridLayout_4.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.billNoLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billNoLabel.sizePolicy().hasHeightForWidth())
        self.billNoLabel.setSizePolicy(sizePolicy)
        self.billNoLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.billNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billNoLabel.setObjectName("billNoLabel")
        self.gridLayout_4.addWidget(self.billNoLabel, 0, 0, 1, 1)
        self.billNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billNoValue.sizePolicy().hasHeightForWidth())
        self.billNoValue.setSizePolicy(sizePolicy)
        self.billNoValue.setMinimumSize(QtCore.QSize(150, 30))
        self.billNoValue.setReadOnly(True)
        self.billNoValue.setObjectName("billNoValue")
        self.gridLayout_4.addWidget(self.billNoValue, 0, 1, 1, 1)
        self.billDatelabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billDatelabel.sizePolicy().hasHeightForWidth())
        self.billDatelabel.setSizePolicy(sizePolicy)
        self.billDatelabel.setMinimumSize(QtCore.QSize(100, 30))
        self.billDatelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billDatelabel.setObjectName("billDatelabel")
        self.gridLayout_4.addWidget(self.billDatelabel, 0, 2, 1, 1)
        self.billDateValue = QtGui.QDateEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.billDateValue.sizePolicy().hasHeightForWidth())
        self.billDateValue.setSizePolicy(sizePolicy)
        self.billDateValue.setMinimumSize(QtCore.QSize(150, 30))
        self.billDateValue.setCalendarPopup(True)
        self.billDateValue.setObjectName("billDateValue")
        self.gridLayout_4.addWidget(self.billDateValue, 0, 3, 1, 1)
        self.poNoLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poNoLabel.sizePolicy().hasHeightForWidth())
        self.poNoLabel.setSizePolicy(sizePolicy)
        self.poNoLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.poNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.poNoLabel.setObjectName("poNoLabel")
        self.gridLayout_4.addWidget(self.poNoLabel, 1, 0, 1, 1)
        self.poNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poNoValue.sizePolicy().hasHeightForWidth())
        self.poNoValue.setSizePolicy(sizePolicy)
        self.poNoValue.setMinimumSize(QtCore.QSize(150, 30))
        self.poNoValue.setObjectName("poNoValue")
        self.gridLayout_4.addWidget(self.poNoValue, 1, 1, 1, 1)
        self.poDatelabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poDatelabel.sizePolicy().hasHeightForWidth())
        self.poDatelabel.setSizePolicy(sizePolicy)
        self.poDatelabel.setMinimumSize(QtCore.QSize(100, 30))
        self.poDatelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.poDatelabel.setObjectName("poDatelabel")
        self.gridLayout_4.addWidget(self.poDatelabel, 1, 2, 1, 1)
        self.poDateValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.poDateValue.sizePolicy().hasHeightForWidth())
        self.poDateValue.setSizePolicy(sizePolicy)
        self.poDateValue.setMinimumSize(QtCore.QSize(150, 30))
        self.poDateValue.setObjectName("poDateValue")
        self.gridLayout_4.addWidget(self.poDateValue, 1, 3, 1, 1)
        self.vendorCodeLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.vendorCodeLabel.sizePolicy().hasHeightForWidth())
        self.vendorCodeLabel.setSizePolicy(sizePolicy)
        self.vendorCodeLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.vendorCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.vendorCodeLabel.setObjectName("vendorCodeLabel")
        self.gridLayout_4.addWidget(self.vendorCodeLabel, 2, 0, 1, 1)
        self.vendorCodeValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.vendorCodeValue.sizePolicy().hasHeightForWidth())
        self.vendorCodeValue.setSizePolicy(sizePolicy)
        self.vendorCodeValue.setMinimumSize(QtCore.QSize(150, 30))
        self.vendorCodeValue.setObjectName("vendorCodeValue")
        self.gridLayout_4.addWidget(self.vendorCodeValue, 2, 1, 1, 1)
        self.paymentTermslabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.paymentTermslabel.sizePolicy().hasHeightForWidth())
        self.paymentTermslabel.setSizePolicy(sizePolicy)
        self.paymentTermslabel.setMinimumSize(QtCore.QSize(100, 30))
        self.paymentTermslabel.setAlignment(QtCore.Qt.AlignCenter)
        self.paymentTermslabel.setObjectName("paymentTermslabel")
        self.gridLayout_4.addWidget(self.paymentTermslabel, 2, 2, 1, 1)
        self.paymentTermsValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.paymentTermsValue.sizePolicy().hasHeightForWidth())
        self.paymentTermsValue.setSizePolicy(sizePolicy)
        self.paymentTermsValue.setMinimumSize(QtCore.QSize(150, 30))
        self.paymentTermsValue.setObjectName("paymentTermsValue")
        self.gridLayout_4.addWidget(self.paymentTermsValue, 2, 3, 1, 1)
        self.dcNoLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dcNoLabel.sizePolicy().hasHeightForWidth())
        self.dcNoLabel.setSizePolicy(sizePolicy)
        self.dcNoLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.dcNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.dcNoLabel.setObjectName("dcNoLabel")
        self.gridLayout_4.addWidget(self.dcNoLabel, 3, 0, 1, 1)
        self.dcNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dcNoValue.sizePolicy().hasHeightForWidth())
        self.dcNoValue.setSizePolicy(sizePolicy)
        self.dcNoValue.setMinimumSize(QtCore.QSize(150, 30))
        self.dcNoValue.setObjectName("dcNoValue")
        self.gridLayout_4.addWidget(self.dcNoValue, 3, 1, 1, 1)
        self.daDateLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.daDateLabel.sizePolicy().hasHeightForWidth())
        self.daDateLabel.setSizePolicy(sizePolicy)
        self.daDateLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.daDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.daDateLabel.setObjectName("daDateLabel")
        self.gridLayout_4.addWidget(self.daDateLabel, 3, 2, 1, 1)
        self.dcDateValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dcDateValue.sizePolicy().hasHeightForWidth())
        self.dcDateValue.setSizePolicy(sizePolicy)
        self.dcDateValue.setMinimumSize(QtCore.QSize(150, 30))
        self.dcDateValue.setObjectName("dcDateValue")
        self.gridLayout_4.addWidget(self.dcDateValue, 3, 3, 1, 1)
        self.vehicleNoLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.vehicleNoLabel.sizePolicy().hasHeightForWidth())
        self.vehicleNoLabel.setSizePolicy(sizePolicy)
        self.vehicleNoLabel.setMinimumSize(QtCore.QSize(100, 30))
        self.vehicleNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.vehicleNoLabel.setObjectName("vehicleNoLabel")
        self.gridLayout_4.addWidget(self.vehicleNoLabel, 4, 0, 1, 1)
        self.vehicleNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.vehicleNoValue.sizePolicy().hasHeightForWidth())
        self.vehicleNoValue.setSizePolicy(sizePolicy)
        self.vehicleNoValue.setMinimumSize(QtCore.QSize(150, 30))
        self.vehicleNoValue.setObjectName("vehicleNoValue")
        self.gridLayout_4.addWidget(self.vehicleNoValue, 4, 1, 1, 1)
        self.dispatchedlabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dispatchedlabel.sizePolicy().hasHeightForWidth())
        self.dispatchedlabel.setSizePolicy(sizePolicy)
        self.dispatchedlabel.setMinimumSize(QtCore.QSize(100, 30))
        self.dispatchedlabel.setAlignment(QtCore.Qt.AlignCenter)
        self.dispatchedlabel.setObjectName("dispatchedlabel")
        self.gridLayout_4.addWidget(self.dispatchedlabel, 4, 2, 1, 1)
        self.dispatchedValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dispatchedValue.sizePolicy().hasHeightForWidth())
        self.dispatchedValue.setSizePolicy(sizePolicy)
        self.dispatchedValue.setMinimumSize(QtCore.QSize(150, 30))
        self.dispatchedValue.setObjectName("dispatchedValue")
        self.gridLayout_4.addWidget(self.dispatchedValue, 4, 3, 1, 1)
        self.gridLayout_8.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.addButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.addButton.sizePolicy().hasHeightForWidth())
        self.addButton.setSizePolicy(sizePolicy)
        self.addButton.setObjectName("addButton")
        self.horizontalLayout_4.addWidget(self.addButton)
        self.removeButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_4.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_4.addWidget(self.clearButton)
        self.importButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setObjectName("importButton")
        self.horizontalLayout_4.addWidget(self.importButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.salesInvoiceTable = TableWidget(SalesInvoice)
        self.salesInvoiceTable.setObjectName("salesInvoiceTable")
        self.salesInvoiceTable.setColumnCount(0)
        self.salesInvoiceTable.setRowCount(0)
        self.verticalLayout_2.addWidget(self.salesInvoiceTable)
        self.groupBox_3 = QtGui.QGroupBox(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 40))
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 210))
        self.groupBox_3.setTitle("")
        self.groupBox_3.setCheckable(False)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.beforeTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.beforeTaxLabel.sizePolicy().hasHeightForWidth())
        self.beforeTaxLabel.setSizePolicy(sizePolicy)
        self.beforeTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.beforeTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.beforeTaxLabel.setObjectName("beforeTaxLabel")
        self.verticalLayout.addWidget(self.beforeTaxLabel)
        self.beforeTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.beforeTaxValue.sizePolicy().hasHeightForWidth())
        self.beforeTaxValue.setSizePolicy(sizePolicy)
        self.beforeTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.beforeTaxValue.setReadOnly(True)
        self.beforeTaxValue.setObjectName("beforeTaxValue")
        self.verticalLayout.addWidget(self.beforeTaxValue)
        self.afterTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.afterTaxLabel.sizePolicy().hasHeightForWidth())
        self.afterTaxLabel.setSizePolicy(sizePolicy)
        self.afterTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.afterTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.afterTaxLabel.setObjectName("afterTaxLabel")
        self.verticalLayout.addWidget(self.afterTaxLabel)
        self.afterTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.afterTaxValue.sizePolicy().hasHeightForWidth())
        self.afterTaxValue.setSizePolicy(sizePolicy)
        self.afterTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.afterTaxValue.setReadOnly(True)
        self.afterTaxValue.setObjectName("afterTaxValue")
        self.verticalLayout.addWidget(self.afterTaxValue)
        self.gridLayout_6.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.amountPaidLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.amountPaidLabel.sizePolicy().hasHeightForWidth())
        self.amountPaidLabel.setSizePolicy(sizePolicy)
        self.amountPaidLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.amountPaidLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountPaidLabel.setObjectName("amountPaidLabel")
        self.horizontalLayout.addWidget(self.amountPaidLabel)
        self.amountPaidValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.amountPaidValue.sizePolicy().hasHeightForWidth())
        self.amountPaidValue.setSizePolicy(sizePolicy)
        self.amountPaidValue.setMinimumSize(QtCore.QSize(150, 30))
        self.amountPaidValue.setObjectName("amountPaidValue")
        self.horizontalLayout.addWidget(self.amountPaidValue)
        self.taxValueLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.taxValueLabel.sizePolicy().hasHeightForWidth())
        self.taxValueLabel.setSizePolicy(sizePolicy)
        self.taxValueLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.taxValueLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.taxValueLabel.setObjectName("taxValueLabel")
        self.horizontalLayout.addWidget(self.taxValueLabel)
        self.taxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.taxValue.sizePolicy().hasHeightForWidth())
        self.taxValue.setSizePolicy(sizePolicy)
        self.taxValue.setMinimumSize(QtCore.QSize(150, 30))
        self.taxValue.setObjectName("taxValue")
        self.horizontalLayout.addWidget(self.taxValue)
        self.gridLayout_5.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.performaLayout = QtGui.QHBoxLayout()
        self.performaLayout.setObjectName("performaLayout")
        self.deliveryChallan = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.deliveryChallan.sizePolicy().hasHeightForWidth())
        self.deliveryChallan.setSizePolicy(sizePolicy)
        self.deliveryChallan.setObjectName("deliveryChallan")
        self.performaLayout.addWidget(self.deliveryChallan)
        self.gridLayout_5.addLayout(self.performaLayout, 1, 0, 1, 1)
        self.gridLayout_6.addLayout(self.gridLayout_5, 0, 1, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.remarksLabel = QtGui.QLabel(self.groupBox_3)
        self.remarksLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.remarksLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.remarksLabel.setObjectName("remarksLabel")
        self.gridLayout_2.addWidget(self.remarksLabel, 0, 0, 1, 1)
        self.amountWordLabel = QtGui.QLabel(self.groupBox_3)
        self.amountWordLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.amountWordLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountWordLabel.setObjectName("amountWordLabel")
        self.gridLayout_2.addWidget(self.amountWordLabel, 0, 1, 1, 1)
        self.remarksValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.remarksValue.sizePolicy().hasHeightForWidth())
        self.remarksValue.setSizePolicy(sizePolicy)
        self.remarksValue.setMinimumSize(QtCore.QSize(350, 40))
        self.remarksValue.setObjectName("remarksValue")
        self.gridLayout_2.addWidget(self.remarksValue, 1, 0, 1, 1)
        self.amountWordsValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.amountWordsValue.sizePolicy().hasHeightForWidth())
        self.amountWordsValue.setSizePolicy(sizePolicy)
        self.amountWordsValue.setMinimumSize(QtCore.QSize(350, 40))
        self.amountWordsValue.setReadOnly(True)
        self.amountWordsValue.setObjectName("amountWordsValue")
        self.gridLayout_2.addWidget(self.amountWordsValue, 1, 1, 1, 1)
        self.gridLayout_6.addLayout(self.gridLayout_2, 0, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        self.gridLayout_7.addLayout(self.verticalLayout_2, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.printCheckBox = QtGui.QCheckBox(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.printCheckBox.sizePolicy().hasHeightForWidth())
        self.printCheckBox.setSizePolicy(sizePolicy)
        self.printCheckBox.setObjectName("printCheckBox")
        self.horizontalLayout_2.addWidget(self.printCheckBox)
        self.previewButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(
            self.previewButton.sizePolicy().hasHeightForWidth())
        self.previewButton.setSizePolicy(sizePolicy)
        self.previewButton.setObjectName("previewButton")
        self.horizontalLayout_2.addWidget(self.previewButton)
        self.saveButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout_2.addWidget(self.saveButton)
        self.discardButton = QtGui.QPushButton(SalesInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.discardButton.sizePolicy().hasHeightForWidth())
        self.discardButton.setSizePolicy(sizePolicy)
        self.discardButton.setObjectName("discardButton")
        self.horizontalLayout_2.addWidget(self.discardButton)
        self.gridLayout_7.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)

        self.retranslateUi(SalesInvoice)
        QtCore.QMetaObject.connectSlotsByName(SalesInvoice)

    def retranslateUi(self, SalesInvoice):
        SalesInvoice.setWindowTitle(
            QtGui.QApplication.translate("SalesInvoice", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Customer Name", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.customerNameValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter Customer Name",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Customer Address",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Enter Customer Address", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "GSTIN", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.gstinValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter GSTIN ", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.stateCodeLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "State Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.stateCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter State Code",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.paidByLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Paid By", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billNoLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Bill no", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.billDatelabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Bill Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.poNoLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Po No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.poNoValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter PO No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.poDatelabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "PO Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.poDateValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter PO Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.vendorCodeLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Vendor Code", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.vendorCodeValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter Vendor Code",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.paymentTermslabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Payment Terms", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.paymentTermsValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter Payment Terms",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.dcNoLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "DC No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.dcNoValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter DC No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.daDateLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "DC Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.dcDateValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter DC Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.vehicleNoLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Vehicle No", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.vehicleNoValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter vehicle No",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.dispatchedlabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Dispatched Through",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.dispatchedValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Enter Dispatched Through", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.addButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Add Row", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Remove Selected",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Clear Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Import Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.beforeTaxLabel.setText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Total Amount Before Tax", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.afterTaxLabel.setText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Total Amount After Tax", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.amountPaidLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Amount Paid", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.amountPaidValue.setPlaceholderText(
            QtGui.QApplication.translate("SalesInvoice", "Enter Amount Paid",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.taxValueLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Tax Value", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.deliveryChallan.setText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Create Delivery Challan", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.remarksLabel.setText(
            QtGui.QApplication.translate("SalesInvoice", "Remarks", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.amountWordLabel.setText(
            QtGui.QApplication.translate("SalesInvoice",
                                         "Total Amount in words", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.printCheckBox.setText(
            QtGui.QApplication.translate("SalesInvoice", "Print", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.previewButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Preview", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(
            QtGui.QApplication.translate("SalesInvoice", "Discard", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #6
0
class Ui_PurchaseInvoice(object):
    def setupUi(self, PurchaseInvoice):
        PurchaseInvoice.setObjectName("PurchaseInvoice")
        PurchaseInvoice.resize(1398, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(PurchaseInvoice.sizePolicy().hasHeightForWidth())
        PurchaseInvoice.setSizePolicy(sizePolicy)
        self.gridLayout_3 = QtGui.QGridLayout(PurchaseInvoice)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(PurchaseInvoice)
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.customerNameLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerNameLabel.sizePolicy().hasHeightForWidth())
        self.customerNameLabel.setSizePolicy(sizePolicy)
        self.customerNameLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.gridLayout.addWidget(self.customerNameLabel, 0, 0, 1, 1)
        self.customerNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setObjectName("customerNameValue")
        self.gridLayout.addWidget(self.customerNameValue, 0, 1, 1, 1)
        self.customerAddressLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerAddressLabel.sizePolicy().hasHeightForWidth())
        self.customerAddressLabel.setSizePolicy(sizePolicy)
        self.customerAddressLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.customerAddressLabel.setObjectName("customerAddressLabel")
        self.gridLayout.addWidget(self.customerAddressLabel, 1, 0, 1, 1)
        self.customerAddressValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerAddressValue.sizePolicy().hasHeightForWidth())
        self.customerAddressValue.setSizePolicy(sizePolicy)
        self.customerAddressValue.setMinimumSize(QtCore.QSize(350, 35))
        self.customerAddressValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerAddressValue.setObjectName("customerAddressValue")
        self.gridLayout.addWidget(self.customerAddressValue, 1, 1, 2, 1)
        self.gstinLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinLabel.sizePolicy().hasHeightForWidth())
        self.gstinLabel.setSizePolicy(sizePolicy)
        self.gstinLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.gstinLabel.setObjectName("gstinLabel")
        self.gridLayout.addWidget(self.gstinLabel, 2, 0, 2, 1)
        self.gstinValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinValue.sizePolicy().hasHeightForWidth())
        self.gstinValue.setSizePolicy(sizePolicy)
        self.gstinValue.setMinimumSize(QtCore.QSize(200, 35))
        self.gstinValue.setObjectName("gstinValue")
        self.gridLayout.addWidget(self.gstinValue, 3, 1, 2, 1)
        self.stateCodeLabel = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateCodeLabel.sizePolicy().hasHeightForWidth())
        self.stateCodeLabel.setSizePolicy(sizePolicy)
        self.stateCodeLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.stateCodeLabel.setObjectName("stateCodeLabel")
        self.gridLayout.addWidget(self.stateCodeLabel, 4, 0, 2, 1)
        self.stateCodeValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateCodeValue.sizePolicy().hasHeightForWidth())
        self.stateCodeValue.setSizePolicy(sizePolicy)
        self.stateCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.stateCodeValue.setObjectName("stateCodeValue")
        self.gridLayout.addWidget(self.stateCodeValue, 5, 1, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setTitle("")
        self.groupBox_2.setCheckable(False)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.billNoLabel = QtGui.QLabel(self.groupBox_2)
        self.billNoLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.billNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billNoLabel.setObjectName("billNoLabel")
        self.gridLayout_4.addWidget(self.billNoLabel, 0, 0, 1, 1)
        self.billNoValue = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.billNoValue.sizePolicy().hasHeightForWidth())
        self.billNoValue.setSizePolicy(sizePolicy)
        self.billNoValue.setMinimumSize(QtCore.QSize(250, 30))
        self.billNoValue.setReadOnly(True)
        self.billNoValue.setObjectName("billNoValue")
        self.gridLayout_4.addWidget(self.billNoValue, 0, 1, 1, 1)
        self.billDateLabel = QtGui.QLabel(self.groupBox_2)
        self.billDateLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.billDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.billDateLabel.setObjectName("billDateLabel")
        self.gridLayout_4.addWidget(self.billDateLabel, 1, 0, 1, 1)
        self.billDateValue = QtGui.QDateEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.billDateValue.sizePolicy().hasHeightForWidth())
        self.billDateValue.setSizePolicy(sizePolicy)
        self.billDateValue.setMinimumSize(QtCore.QSize(250, 30))
        self.billDateValue.setCalendarPopup(True)
        self.billDateValue.setObjectName("billDateValue")
        self.gridLayout_4.addWidget(self.billDateValue, 1, 1, 1, 1)
        self.dueDateLabel = QtGui.QLabel(self.groupBox_2)
        self.dueDateLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.dueDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.dueDateLabel.setObjectName("dueDateLabel")
        self.gridLayout_4.addWidget(self.dueDateLabel, 2, 0, 1, 1)
        self.dueDateValue = QtGui.QDateEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.dueDateValue.sizePolicy().hasHeightForWidth())
        self.dueDateValue.setSizePolicy(sizePolicy)
        self.dueDateValue.setMinimumSize(QtCore.QSize(250, 30))
        self.dueDateValue.setCalendarPopup(True)
        self.dueDateValue.setObjectName("dueDateValue")
        self.gridLayout_4.addWidget(self.dueDateValue, 2, 1, 1, 1)
        self.paidByLabel = QtGui.QLabel(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.paidByLabel.sizePolicy().hasHeightForWidth())
        self.paidByLabel.setSizePolicy(sizePolicy)
        self.paidByLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.paidByLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.paidByLabel.setObjectName("paidByLabel")
        self.gridLayout_4.addWidget(self.paidByLabel, 3, 0, 1, 1)
        self.paymentValue = QtGui.QComboBox(self.groupBox_2)
        self.paymentValue.setObjectName("paymentValue")
        self.gridLayout_4.addWidget(self.paymentValue, 3, 1, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_2, 1, 1, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.addButton = QtGui.QPushButton(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(self.addButton.sizePolicy().hasHeightForWidth())
        self.addButton.setSizePolicy(sizePolicy)
        self.addButton.setObjectName("addButton")
        self.horizontalLayout_4.addWidget(self.addButton)
        self.removeButton = QtGui.QPushButton(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_4.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_4.addWidget(self.clearButton)
        self.importButton = QtGui.QPushButton(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(35)
        sizePolicy.setHeightForWidth(self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setObjectName("importButton")
        self.horizontalLayout_4.addWidget(self.importButton)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 2, 0, 1, 2)
        self.purchaseTable = TableWidget(PurchaseInvoice)
        self.purchaseTable.setObjectName("purchaseTable")
        self.purchaseTable.setColumnCount(0)
        self.purchaseTable.setRowCount(0)
        self.gridLayout_3.addWidget(self.purchaseTable, 3, 0, 1, 2)
        self.groupBox_3 = QtGui.QGroupBox(PurchaseInvoice)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 40))
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 210))
        self.groupBox_3.setTitle("")
        self.groupBox_3.setCheckable(False)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.beforeTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.beforeTaxLabel.sizePolicy().hasHeightForWidth())
        self.beforeTaxLabel.setSizePolicy(sizePolicy)
        self.beforeTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.beforeTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.beforeTaxLabel.setObjectName("beforeTaxLabel")
        self.verticalLayout.addWidget(self.beforeTaxLabel)
        self.beforeTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.beforeTaxValue.sizePolicy().hasHeightForWidth())
        self.beforeTaxValue.setSizePolicy(sizePolicy)
        self.beforeTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.beforeTaxValue.setReadOnly(True)
        self.beforeTaxValue.setObjectName("beforeTaxValue")
        self.verticalLayout.addWidget(self.beforeTaxValue)
        self.afterTaxLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.afterTaxLabel.sizePolicy().hasHeightForWidth())
        self.afterTaxLabel.setSizePolicy(sizePolicy)
        self.afterTaxLabel.setMinimumSize(QtCore.QSize(300, 30))
        self.afterTaxLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.afterTaxLabel.setObjectName("afterTaxLabel")
        self.verticalLayout.addWidget(self.afterTaxLabel)
        self.afterTaxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.afterTaxValue.sizePolicy().hasHeightForWidth())
        self.afterTaxValue.setSizePolicy(sizePolicy)
        self.afterTaxValue.setMinimumSize(QtCore.QSize(300, 35))
        self.afterTaxValue.setReadOnly(True)
        self.afterTaxValue.setObjectName("afterTaxValue")
        self.verticalLayout.addWidget(self.afterTaxValue)
        self.gridLayout_6.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.amountPaidLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.amountPaidLabel.sizePolicy().hasHeightForWidth())
        self.amountPaidLabel.setSizePolicy(sizePolicy)
        self.amountPaidLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.amountPaidLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountPaidLabel.setObjectName("amountPaidLabel")
        self.horizontalLayout.addWidget(self.amountPaidLabel)
        self.amountPaidValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.amountPaidValue.sizePolicy().hasHeightForWidth())
        self.amountPaidValue.setSizePolicy(sizePolicy)
        self.amountPaidValue.setMinimumSize(QtCore.QSize(150, 30))
        self.amountPaidValue.setObjectName("amountPaidValue")
        self.horizontalLayout.addWidget(self.amountPaidValue)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.taxValueLabel = QtGui.QLabel(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.taxValueLabel.sizePolicy().hasHeightForWidth())
        self.taxValueLabel.setSizePolicy(sizePolicy)
        self.taxValueLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.taxValueLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.taxValueLabel.setObjectName("taxValueLabel")
        self.horizontalLayout_3.addWidget(self.taxValueLabel)
        self.taxValue = QtGui.QLineEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.taxValue.sizePolicy().hasHeightForWidth())
        self.taxValue.setSizePolicy(sizePolicy)
        self.taxValue.setMinimumSize(QtCore.QSize(150, 30))
        self.taxValue.setReadOnly(True)
        self.taxValue.setObjectName("taxValue")
        self.horizontalLayout_3.addWidget(self.taxValue)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.saveButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.saveButton.sizePolicy().hasHeightForWidth())
        self.saveButton.setSizePolicy(sizePolicy)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout_2.addWidget(self.saveButton)
        self.discardButton = QtGui.QPushButton(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.discardButton.sizePolicy().hasHeightForWidth())
        self.discardButton.setSizePolicy(sizePolicy)
        self.discardButton.setObjectName("discardButton")
        self.horizontalLayout_2.addWidget(self.discardButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.gridLayout_6.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.remarksLabel = QtGui.QLabel(self.groupBox_3)
        self.remarksLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.remarksLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.remarksLabel.setObjectName("remarksLabel")
        self.gridLayout_2.addWidget(self.remarksLabel, 0, 0, 1, 1)
        self.amountWordLabel = QtGui.QLabel(self.groupBox_3)
        self.amountWordLabel.setMinimumSize(QtCore.QSize(150, 30))
        self.amountWordLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.amountWordLabel.setObjectName("amountWordLabel")
        self.gridLayout_2.addWidget(self.amountWordLabel, 0, 1, 1, 1)
        self.remarksValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.remarksValue.sizePolicy().hasHeightForWidth())
        self.remarksValue.setSizePolicy(sizePolicy)
        self.remarksValue.setMinimumSize(QtCore.QSize(350, 40))
        self.remarksValue.setObjectName("remarksValue")
        self.gridLayout_2.addWidget(self.remarksValue, 1, 0, 1, 1)
        self.amountWordsValue = QtGui.QTextEdit(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.amountWordsValue.sizePolicy().hasHeightForWidth())
        self.amountWordsValue.setSizePolicy(sizePolicy)
        self.amountWordsValue.setMinimumSize(QtCore.QSize(350, 40))
        self.amountWordsValue.setReadOnly(True)
        self.amountWordsValue.setObjectName("amountWordsValue")
        self.gridLayout_2.addWidget(self.amountWordsValue, 1, 1, 1, 1)
        self.gridLayout_6.addLayout(self.gridLayout_2, 0, 2, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox_3, 4, 0, 1, 2)

        self.retranslateUi(PurchaseInvoice)
        QtCore.QMetaObject.connectSlotsByName(PurchaseInvoice)

    def retranslateUi(self, PurchaseInvoice):
        PurchaseInvoice.setWindowTitle(QtGui.QApplication.translate("PurchaseInvoice", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Vendor Name", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameValue.setPlaceholderText(QtGui.QApplication.translate("PurchaseInvoice", "Enter Vendor Name", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Vendor Address", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressValue.setPlaceholderText(QtGui.QApplication.translate("PurchaseInvoice", "Enter Vendor Address", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinValue.setPlaceholderText(QtGui.QApplication.translate("PurchaseInvoice", "Enter GSTIN No", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "State Code", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeValue.setPlaceholderText(QtGui.QApplication.translate("PurchaseInvoice", "Enter State Code", None, QtGui.QApplication.UnicodeUTF8))
        self.billNoLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Bill no", None, QtGui.QApplication.UnicodeUTF8))
        self.billDateLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Bill Date", None, QtGui.QApplication.UnicodeUTF8))
        self.dueDateLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Due Date", None, QtGui.QApplication.UnicodeUTF8))
        self.paidByLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Paid By", None, QtGui.QApplication.UnicodeUTF8))
        self.addButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Add Row", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Clear Selected row", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Clear Table", None, QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Import Table", None, QtGui.QApplication.UnicodeUTF8))
        self.beforeTaxLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Total Amount Before Tax", None, QtGui.QApplication.UnicodeUTF8))
        self.afterTaxLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Total Amount After Tax", None, QtGui.QApplication.UnicodeUTF8))
        self.amountPaidLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Amount Paid", None, QtGui.QApplication.UnicodeUTF8))
        self.amountPaidValue.setPlaceholderText(QtGui.QApplication.translate("PurchaseInvoice", "Enter Amount Paid", None, QtGui.QApplication.UnicodeUTF8))
        self.taxValueLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Tax Value", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Save", None, QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(QtGui.QApplication.translate("PurchaseInvoice", "Discard", None, QtGui.QApplication.UnicodeUTF8))
        self.remarksLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Remarks", None, QtGui.QApplication.UnicodeUTF8))
        self.amountWordLabel.setText(QtGui.QApplication.translate("PurchaseInvoice", "Total Amount in words", None, QtGui.QApplication.UnicodeUTF8))
Example #7
0
class Ui_chart(object):
    def setupUi(self, chart):
        chart.setObjectName("chart")
        chart.resize(1716, 734)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(chart.sizePolicy().hasHeightForWidth())
        chart.setSizePolicy(sizePolicy)
        self.gridLayout_3 = QtGui.QGridLayout(chart)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(chart)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(chart)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setTitle("")
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.fromDateLabel = QtGui.QLabel(self.groupBox)
        self.fromDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.fromDateLabel.setObjectName("fromDateLabel")
        self.gridLayout_2.addWidget(self.fromDateLabel, 0, 0, 1, 1)
        self.toDateLabel = QtGui.QLabel(self.groupBox)
        self.toDateLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.toDateLabel.setObjectName("toDateLabel")
        self.gridLayout_2.addWidget(self.toDateLabel, 0, 2, 1, 1)
        spacerItem = QtGui.QSpacerItem(400, 20, QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 0, 4, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.barRadioButton = QtGui.QRadioButton(self.groupBox)
        self.barRadioButton.setObjectName("barRadioButton")
        self.horizontalLayout_2.addWidget(self.barRadioButton)
        self.lineRadioButton = QtGui.QRadioButton(self.groupBox)
        self.lineRadioButton.setObjectName("lineRadioButton")
        self.horizontalLayout_2.addWidget(self.lineRadioButton)
        self.scatterRadioButton = QtGui.QRadioButton(self.groupBox)
        self.scatterRadioButton.setObjectName("scatterRadioButton")
        self.horizontalLayout_2.addWidget(self.scatterRadioButton)
        spacerItem1 = QtGui.QSpacerItem(500, 20, QtGui.QSizePolicy.Fixed,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(300, 35))
        self.searchButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.searchButton.setObjectName("searchButton")
        self.horizontalLayout_3.addWidget(self.searchButton)
        self.resetButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resetButton.sizePolicy().hasHeightForWidth())
        self.resetButton.setSizePolicy(sizePolicy)
        self.resetButton.setMinimumSize(QtCore.QSize(300, 35))
        self.resetButton.setMaximumSize(QtCore.QSize(200, 16777215))
        self.resetButton.setObjectName("resetButton")
        self.horizontalLayout_3.addWidget(self.resetButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 2, 0, 1, 5)
        self.fromDateValue = QtGui.QDateTimeEdit(self.groupBox)
        self.fromDateValue.setCalendarPopup(True)
        self.fromDateValue.setObjectName("fromDateValue")
        self.gridLayout_2.addWidget(self.fromDateValue, 0, 1, 1, 1)
        self.toDateValue = QtGui.QDateTimeEdit(self.groupBox)
        self.toDateValue.setCalendarPopup(True)
        self.toDateValue.setObjectName("toDateValue")
        self.gridLayout_2.addWidget(self.toDateValue, 0, 3, 1, 1)
        self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1)
        self.matplotLibWidget = QtGui.QWidget(chart)
        self.matplotLibWidget.setObjectName("matplotLibWidget")
        self.gridLayout_3.addWidget(self.matplotLibWidget, 2, 0, 1, 1)

        self.retranslateUi(chart)
        QtCore.QMetaObject.connectSlotsByName(chart)

    def retranslateUi(self, chart):
        chart.setWindowTitle(
            QtGui.QApplication.translate("chart", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateLabel.setText(
            QtGui.QApplication.translate("chart", "From Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toDateLabel.setText(
            QtGui.QApplication.translate("chart", "To Date", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.barRadioButton.setText(
            QtGui.QApplication.translate("chart", "Bar Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.lineRadioButton.setText(
            QtGui.QApplication.translate("chart", "Line Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.scatterRadioButton.setText(
            QtGui.QApplication.translate("chart", "Scatter Chart", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(
            QtGui.QApplication.translate("chart", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.resetButton.setText(
            QtGui.QApplication.translate("chart", "Reset", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fromDateValue.setDisplayFormat(
            QtGui.QApplication.translate("chart", "dd-MMM-yyyy", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toDateValue.setDisplayFormat(
            QtGui.QApplication.translate("chart", "dd-MMM-yyyy", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #8
0
class Ui_addCustomer(object):
    def setupUi(self, addCustomer):
        addCustomer.setObjectName("addCustomer")
        addCustomer.resize(1602, 689)
        self.gridLayout_3 = QtGui.QGridLayout(addCustomer)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.widget = Header(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 100))
        self.widget.setObjectName("widget")
        self.gridLayout_3.addWidget(self.widget, 0, 0, 1, 2)
        self.inputGroupBox = QtGui.QGroupBox(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.inputGroupBox.sizePolicy().hasHeightForWidth())
        self.inputGroupBox.setSizePolicy(sizePolicy)
        self.inputGroupBox.setCheckable(False)
        self.inputGroupBox.setObjectName("inputGroupBox")
        self.gridLayout = QtGui.QGridLayout(self.inputGroupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.customerCodeLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerCodeLabel.setObjectName("customerCodeLabel")
        self.horizontalLayout.addWidget(self.customerCodeLabel)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.customerCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerCodeValue.sizePolicy().hasHeightForWidth())
        self.customerCodeValue.setSizePolicy(sizePolicy)
        self.customerCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerCodeValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerCodeValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerCodeValue.setObjectName("customerCodeValue")
        self.verticalLayout.addWidget(self.customerCodeValue)
        self.codeMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.codeMandLabel.sizePolicy().hasHeightForWidth())
        self.codeMandLabel.setSizePolicy(sizePolicy)
        self.codeMandLabel.setStyleSheet("QLabel { color : red; }")
        self.codeMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.codeMandLabel.setObjectName("codeMandLabel")
        self.verticalLayout.addWidget(self.codeMandLabel)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 2)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.customerNameLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerNameLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerNameLabel.setObjectName("customerNameLabel")
        self.horizontalLayout_2.addWidget(self.customerNameLabel)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.customerNameValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerNameValue.sizePolicy().hasHeightForWidth())
        self.customerNameValue.setSizePolicy(sizePolicy)
        self.customerNameValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.customerNameValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerNameValue.setObjectName("customerNameValue")
        self.verticalLayout_2.addWidget(self.customerNameValue)
        self.nameMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nameMandLabel.sizePolicy().hasHeightForWidth())
        self.nameMandLabel.setSizePolicy(sizePolicy)
        self.nameMandLabel.setStyleSheet("QLabel { color : red; }")
        self.nameMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.nameMandLabel.setObjectName("nameMandLabel")
        self.verticalLayout_2.addWidget(self.nameMandLabel)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.customerAddressLabel = QtGui.QLabel(self.inputGroupBox)
        self.customerAddressLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.customerAddressLabel.setObjectName("customerAddressLabel")
        self.horizontalLayout_3.addWidget(self.customerAddressLabel)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.customerAddressValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerAddressValue.sizePolicy().hasHeightForWidth())
        self.customerAddressValue.setSizePolicy(sizePolicy)
        self.customerAddressValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerAddressValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerAddressValue.setObjectName("customerAddressValue")
        self.verticalLayout_3.addWidget(self.customerAddressValue)
        self.addressMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addressMandLabel.sizePolicy().hasHeightForWidth())
        self.addressMandLabel.setSizePolicy(sizePolicy)
        self.addressMandLabel.setStyleSheet("QLabel { color : red; }")
        self.addressMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.addressMandLabel.setObjectName("addressMandLabel")
        self.verticalLayout_3.addWidget(self.addressMandLabel)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.gridLayout.addLayout(self.horizontalLayout_3, 2, 0, 1, 2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.gstinLabel = QtGui.QLabel(self.inputGroupBox)
        self.gstinLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinLabel.setObjectName("gstinLabel")
        self.horizontalLayout_4.addWidget(self.gstinLabel)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.customerGstinValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerGstinValue.sizePolicy().hasHeightForWidth())
        self.customerGstinValue.setSizePolicy(sizePolicy)
        self.customerGstinValue.setMinimumSize(QtCore.QSize(200, 35))
        self.customerGstinValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.customerGstinValue.setObjectName("customerGstinValue")
        self.verticalLayout_4.addWidget(self.customerGstinValue)
        self.gstinMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinMandLabel.sizePolicy().hasHeightForWidth())
        self.gstinMandLabel.setSizePolicy(sizePolicy)
        self.gstinMandLabel.setStyleSheet("QLabel { color : red; }")
        self.gstinMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinMandLabel.setObjectName("gstinMandLabel")
        self.verticalLayout_4.addWidget(self.gstinMandLabel)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.gridLayout.addLayout(self.horizontalLayout_4, 3, 0, 1, 2)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.stateCodeLabel = QtGui.QLabel(self.inputGroupBox)
        self.stateCodeLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stateCodeLabel.setObjectName("stateCodeLabel")
        self.horizontalLayout_5.addWidget(self.stateCodeLabel)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.stateCodeValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateCodeValue.sizePolicy().hasHeightForWidth())
        self.stateCodeValue.setSizePolicy(sizePolicy)
        self.stateCodeValue.setMinimumSize(QtCore.QSize(200, 35))
        self.stateCodeValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.stateCodeValue.setObjectName("stateCodeValue")
        self.verticalLayout_5.addWidget(self.stateCodeValue)
        self.stateMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stateMandLabel.sizePolicy().hasHeightForWidth())
        self.stateMandLabel.setSizePolicy(sizePolicy)
        self.stateMandLabel.setStyleSheet("QLabel { color : red; }")
        self.stateMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.stateMandLabel.setObjectName("stateMandLabel")
        self.verticalLayout_5.addWidget(self.stateMandLabel)
        self.horizontalLayout_5.addLayout(self.verticalLayout_5)
        self.gridLayout.addLayout(self.horizontalLayout_5, 4, 0, 1, 2)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.contactNoLabel = QtGui.QLabel(self.inputGroupBox)
        self.contactNoLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.contactNoLabel.setObjectName("contactNoLabel")
        self.horizontalLayout_6.addWidget(self.contactNoLabel)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.contactNoValue = QtGui.QLineEdit(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.contactNoValue.sizePolicy().hasHeightForWidth())
        self.contactNoValue.setSizePolicy(sizePolicy)
        self.contactNoValue.setMinimumSize(QtCore.QSize(200, 35))
        self.contactNoValue.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.contactNoValue.setObjectName("contactNoValue")
        self.verticalLayout_6.addWidget(self.contactNoValue)
        self.contactMandLabel = QtGui.QLabel(self.inputGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.contactMandLabel.sizePolicy().hasHeightForWidth())
        self.contactMandLabel.setSizePolicy(sizePolicy)
        self.contactMandLabel.setStyleSheet("QLabel { color : red; }")
        self.contactMandLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.contactMandLabel.setObjectName("contactMandLabel")
        self.verticalLayout_6.addWidget(self.contactMandLabel)
        self.horizontalLayout_6.addLayout(self.verticalLayout_6)
        self.gridLayout.addLayout(self.horizontalLayout_6, 5, 0, 1, 2)
        self.saveButton = QtGui.QPushButton(self.inputGroupBox)
        self.saveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.saveButton.setObjectName("saveButton")
        self.gridLayout.addWidget(self.saveButton, 6, 0, 1, 1)
        self.discardButton = QtGui.QPushButton(self.inputGroupBox)
        self.discardButton.setMinimumSize(QtCore.QSize(200, 35))
        self.discardButton.setObjectName("discardButton")
        self.gridLayout.addWidget(self.discardButton, 6, 1, 1, 1)
        self.gridLayout_3.addWidget(self.inputGroupBox, 1, 0, 1, 1)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.groupBox = QtGui.QGroupBox(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 100))
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.voucherNoLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.voucherNoLabel_2.sizePolicy().hasHeightForWidth())
        self.voucherNoLabel_2.setSizePolicy(sizePolicy)
        self.voucherNoLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.voucherNoLabel_2.setObjectName("voucherNoLabel_2")
        self.gridLayout_4.addWidget(self.voucherNoLabel_2, 0, 0, 1, 1)
        self.searchNameValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchNameValue.sizePolicy().hasHeightForWidth())
        self.searchNameValue.setSizePolicy(sizePolicy)
        self.searchNameValue.setMinimumSize(QtCore.QSize(350, 35))
        self.searchNameValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.searchNameValue.setObjectName("searchNameValue")
        self.gridLayout_4.addWidget(self.searchNameValue, 0, 1, 1, 1)
        self.gstinLabel_2 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.gstinLabel_2.sizePolicy().hasHeightForWidth())
        self.gstinLabel_2.setSizePolicy(sizePolicy)
        self.gstinLabel_2.setAlignment(QtCore.Qt.AlignCenter)
        self.gstinLabel_2.setObjectName("gstinLabel_2")
        self.gridLayout_4.addWidget(self.gstinLabel_2, 0, 2, 1, 1)
        self.searchGstinValue = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchGstinValue.sizePolicy().hasHeightForWidth())
        self.searchGstinValue.setSizePolicy(sizePolicy)
        self.searchGstinValue.setMinimumSize(QtCore.QSize(350, 35))
        self.searchGstinValue.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.searchGstinValue.setObjectName("searchGstinValue")
        self.gridLayout_4.addWidget(self.searchGstinValue, 0, 3, 1, 1)
        self.searchButton = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.searchButton.sizePolicy().hasHeightForWidth())
        self.searchButton.setSizePolicy(sizePolicy)
        self.searchButton.setMinimumSize(QtCore.QSize(200, 35))
        self.searchButton.setObjectName("searchButton")
        self.gridLayout_4.addWidget(self.searchButton, 0, 4, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 2)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.removeButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.removeButton.sizePolicy().hasHeightForWidth())
        self.removeButton.setSizePolicy(sizePolicy)
        self.removeButton.setMinimumSize(QtCore.QSize(0, 35))
        self.removeButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.removeButton.setObjectName("removeButton")
        self.horizontalLayout_7.addWidget(self.removeButton)
        self.clearButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.clearButton.sizePolicy().hasHeightForWidth())
        self.clearButton.setSizePolicy(sizePolicy)
        self.clearButton.setMinimumSize(QtCore.QSize(0, 35))
        self.clearButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.clearButton.setObjectName("clearButton")
        self.horizontalLayout_7.addWidget(self.clearButton)
        self.importButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.importButton.sizePolicy().hasHeightForWidth())
        self.importButton.setSizePolicy(sizePolicy)
        self.importButton.setMinimumSize(QtCore.QSize(0, 35))
        self.importButton.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.importButton.setObjectName("importButton")
        self.horizontalLayout_7.addWidget(self.importButton)
        self.gridLayout_2.addLayout(self.horizontalLayout_7, 1, 0, 1, 2)
        self.customerTable = CustomerTable(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.customerTable.sizePolicy().hasHeightForWidth())
        self.customerTable.setSizePolicy(sizePolicy)
        self.customerTable.setObjectName("customerTable")
        self.gridLayout_2.addWidget(self.customerTable, 2, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(878, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 1)
        self.tableSaveButton = QtGui.QPushButton(addCustomer)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableSaveButton.sizePolicy().hasHeightForWidth())
        self.tableSaveButton.setSizePolicy(sizePolicy)
        self.tableSaveButton.setMinimumSize(QtCore.QSize(200, 35))
        self.tableSaveButton.setObjectName("tableSaveButton")
        self.gridLayout_2.addWidget(self.tableSaveButton, 3, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 1, 1, 1, 1)

        self.retranslateUi(addCustomer)
        QtCore.QMetaObject.connectSlotsByName(addCustomer)

    def retranslateUi(self, addCustomer):
        addCustomer.setWindowTitle(QtGui.QApplication.translate("addCustomer", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.inputGroupBox.setTitle(QtGui.QApplication.translate("addCustomer", "Customer Details", None, QtGui.QApplication.UnicodeUTF8))
        self.customerCodeLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Code", None, QtGui.QApplication.UnicodeUTF8))
        self.customerCodeValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Code", None, QtGui.QApplication.UnicodeUTF8))
        self.codeMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Code is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.customerNameValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Name", None, QtGui.QApplication.UnicodeUTF8))
        self.nameMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Nameis Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer Address", None, QtGui.QApplication.UnicodeUTF8))
        self.customerAddressValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer Address", None, QtGui.QApplication.UnicodeUTF8))
        self.addressMandLabel.setText(QtGui.QApplication.translate("addCustomer", "*Address  is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel.setText(QtGui.QApplication.translate("addCustomer", "Customer GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.customerGstinValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Customer GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* GSTIN is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeLabel.setText(QtGui.QApplication.translate("addCustomer", "State Code", None, QtGui.QApplication.UnicodeUTF8))
        self.stateCodeValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter state code", None, QtGui.QApplication.UnicodeUTF8))
        self.stateMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* State Code is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.contactNoLabel.setText(QtGui.QApplication.translate("addCustomer", "Contact No", None, QtGui.QApplication.UnicodeUTF8))
        self.contactNoValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter contact no", None, QtGui.QApplication.UnicodeUTF8))
        self.contactMandLabel.setText(QtGui.QApplication.translate("addCustomer", "* Contact No is Mandatory", None, QtGui.QApplication.UnicodeUTF8))
        self.saveButton.setText(QtGui.QApplication.translate("addCustomer", "Save Changes", None, QtGui.QApplication.UnicodeUTF8))
        self.discardButton.setText(QtGui.QApplication.translate("addCustomer", "Discard", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("addCustomer", "Search ", None, QtGui.QApplication.UnicodeUTF8))
        self.voucherNoLabel_2.setText(QtGui.QApplication.translate("addCustomer", "Customer name", None, QtGui.QApplication.UnicodeUTF8))
        self.searchNameValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Name", None, QtGui.QApplication.UnicodeUTF8))
        self.gstinLabel_2.setText(QtGui.QApplication.translate("addCustomer", "GSTIN", None, QtGui.QApplication.UnicodeUTF8))
        self.searchGstinValue.setPlaceholderText(QtGui.QApplication.translate("addCustomer", "Enter Gstin", None, QtGui.QApplication.UnicodeUTF8))
        self.searchButton.setText(QtGui.QApplication.translate("addCustomer", "Search", None, QtGui.QApplication.UnicodeUTF8))
        self.removeButton.setText(QtGui.QApplication.translate("addCustomer", "Remove Selected", None, QtGui.QApplication.UnicodeUTF8))
        self.clearButton.setText(QtGui.QApplication.translate("addCustomer", "Clear", None, QtGui.QApplication.UnicodeUTF8))
        self.importButton.setText(QtGui.QApplication.translate("addCustomer", "Import", None, QtGui.QApplication.UnicodeUTF8))
        self.tableSaveButton.setText(QtGui.QApplication.translate("addCustomer", "Save Changes", None, QtGui.QApplication.UnicodeUTF8))