def __init__(self, parent=None):
     super(PurchaseReport, self).__init__(parent)
     self._manager = PurchaseManager()
     self.__purchaseReportUI = Ui_purchaseReport()
     self.__setupWidget()
     self.__connectWidget()
     self.__setpurchaseInformation()
示例#2
0
    def setTableItems(self, dbtype='purchase'):
        self.setRowCount(15)
        self.setColumnCount(11)
        headers = [
            'Item Code', 'Particulars', 'HSN Code', 'Qty', 'Rate', 'CGST',
            'SGST', 'IGST', 'Amount', 'Tax', 'Total'
        ]
        self.setHorizontalHeaderLabels(headers)
        if dbtype == 'purchase':
            self.__manager = PurchaseManager()
        else:
            self.__manager = SalesManager(dbtype)
        self.__type = dbtype
        for i in range(self.rowCount()):
            self.setTableWidgets(i)

        width = self.size().width()
        self.setColumnWidth(0, width / 20)
        self.setColumnWidth(1, (width * 1.92) / 5.5)
        self.setColumnWidth(2, width / 13)
        self.setColumnWidth(3, width / 18)
        self.setColumnWidth(4, width / 18)
        self.setColumnWidth(5, width / 25)
        self.setColumnWidth(6, width / 25)
        self.setColumnWidth(7, width / 25)
        self.setColumnWidth(8, width / 18)
        self.setColumnWidth(9, width / 18)
        self.setColumnWidth(10, width / 18)
示例#3
0
 def __init__(self, dbtype):
     super(InvoiceChart, self).__init__()
     if dbtype == 'sales':
         self.__manager = SalesManager(dbtype)
     else:
         self.__manager = PurchaseManager()
     self.__objXData = 'customerName'
     self.__objYData = 'amountPaid'
示例#4
0
    def __init__(self, parent=None):
        super(PurchaseInvoiceWidget, self).__init__(parent)

        self.__purchaseInvoiceUI = Ui_PurchaseInvoice()
        self.__manager = PurchaseManager()
        self.__customerManager = CustomerManager()
        self.__companyItemManager = CompanyItemManager('purchase')
        self.__setVariables()
        self.__setUpWidget()
        self.__connectWidgets()
        self.__saveRestore = utils.StoreRestore(self.settings)
示例#5
0
 def __init__(self, dbtype):
     super(ParticularsChart, self).__init__()
     if dbtype == 'sales':
         self.__manager = SalesManager(dbtype)
     else:
         self.__manager = PurchaseManager()