예제 #1
0
def main():
    t = Transaction()
    s = CRUDController.fromXmlFile('point_of_sale.xml')
    s.store = t
    a = Application()
    s.parent = Application()
    s.show()
    a.run()
예제 #2
0
def main():
    t = Transaction()
    s = CRUDController.fromXmlFile('point_of_sale.xml')
    s.store = t
    a = Application()
    s.parent = Application()
    s.show()
    a.run()
예제 #3
0
                self.otherParty.enable()
            else:
                self.thirdLabel.text = "Documento interno"

    def save(self, *ignore):
        # build a document of the right kind
        # cls = self.docType.value['cls']
        # document = cls(amount=self.amount.value, number=self.docNumber.value,
        #                type=self.docType.value['type'], )
        # set the other side
        # document.setattr(self.docType.value['attr'], self.provider.value)
        cls = self.docType.value['cls']
        document = cls(number=self.docNumber.value,
                       type=self.docType.value['type'],
                       detail=self.description.value,
                       amount=self.amount.value,
                       actualDate=self.docDate.value)
        self.trans.track(document)
        document.pettyRegister(self.pos, self.otherParty.value,
                               self.category.value, self.account.value)
        # register w/ the trans!
        # save it
        self.trans.save()


if __name__ == '__main__':
    a = Application()
    w = LoadPettyCashEntry(parent=a)
    w.show()
    a.run()
예제 #4
0
    

    def save(self, *ignore):
        # build a document of the right kind
        # cls = self.docType.value['cls']
        # document = cls(amount=self.amount.value, number=self.docNumber.value,
        #                type=self.docType.value['type'], )
        # set the other side
        # document.setattr(self.docType.value['attr'], self.provider.value)
        cls = self.docType.value['cls']
        document = cls(number=self.docNumber.value,
                       type=self.docType.value['type'],
                       detail=self.description.value,
                       amount=self.amount.value,
                       actualDate=self.docDate.value)
        self.trans.track(document)
        document.pettyRegister(self.pos,
                               self.otherParty.value,
                               self.category.value,
                               self.account.value)
        # register w/ the trans!
        # save it
        self.trans.save()
        

if __name__=='__main__':
    a = Application()
    w = LoadPettyCashEntry(parent=a)
    w.show()
    a.run()