Example #1
0
 def setUp(self):
     self.address = generate_address()
     self.client = generate_customer()
     self.client.add_address(self.address)
     self.project = generate_project()
     self.customer_id = get_smallinvoice().clients.add(self.client)
     self.project.client_id = self.customer_id
     self.project_id = get_smallinvoice().projects.add(self.project)
Example #2
0
 def setUp(self):
     self.address = generate_address()
     self.client = generate_customer()
     self.client.add_address(self.address)
     self.project = generate_project()
     self.customer_id = get_smallinvoice().clients.add(self.client)
     self.project.client_id = self.customer_id
     self.project_id = get_smallinvoice().projects.add(self.project)
Example #3
0
    def setUp(self):
        self.address = generate_address()
        self.client = generate_customer()
        self.client.add_address(self.address)
        self.letter = generate_letter()
        self.customer_id = get_smallinvoice().clients.add(self.client)

        self.letter.client_id = self.customer_id
        test = get_smallinvoice().clients.details(self.customer_id)
        self.letter.client_address_id = test['main_address_id']

        self.letter_id = get_smallinvoice().letters.add(self.letter)
Example #4
0
    def setUp(self):
        self.address = generate_address()
        self.client = generate_customer()
        self.client.add_address(self.address)
        self.letter = generate_letter()
        self.customer_id = get_smallinvoice().clients.add(self.client)

        self.letter.client_id = self.customer_id
        test = get_smallinvoice().clients.details(self.customer_id)
        self.letter.client_address_id = test['main_address_id']

        self.letter_id = get_smallinvoice().letters.add(self.letter)
Example #5
0
    def setUp(self):
        self.address = generate_address()
        self.client = generate_customer()
        self.client.add_address(self.address)
        self.position = generate_position()
        self.receipt = generate_receipt()
        self.receipt.add_position(self.position)

        self.customer_id = get_smallinvoice().clients.add(self.client)

        self.receipt.client_id = self.customer_id
        test = get_smallinvoice().clients.details(self.customer_id)
        self.receipt.client_address_id = test['main_address_id']

        self.receipt_id = get_smallinvoice().receipts.add(self.receipt)
Example #6
0
    def setUp(self):
        self.address = generate_address()
        self.client = generate_customer()
        self.client.add_address(self.address)
        self.position = generate_position()
        self.receipt = generate_receipt()
        self.receipt.add_position(self.position)

        self.customer_id = get_smallinvoice().clients.add(self.client)

        self.receipt.client_id = self.customer_id
        test = get_smallinvoice().clients.details(self.customer_id)
        self.receipt.client_address_id = test['main_address_id']

        self.receipt_id = get_smallinvoice().receipts.add(self.receipt)
Example #7
0
    def setUp(self):
        self.address = generate_address()
        self.client = generate_customer()
        self.client.add_address(self.address)
        self.position = generate_position()
        self.invoice = generate_invoice()
        self.invoice.period = INVOICE_PERIOD
        self.invoice.add_position(self.position)

        self.customer_id = get_smallinvoice().clients.add(self.client)

        self.invoice.client_id = self.customer_id
        test = get_smallinvoice().clients.details(self.customer_id)
        self.invoice.client_address_id = test['main_address_id']

        self.invoice_id = get_smallinvoice().invoices.add(self.invoice)
Example #8
0
 def setUp(self):
     self.address = generate_address()
     self.client = generate_customer()
     self.client.add_address(self.address)
     self.client_id = get_smallinvoice().clients.add(self.client)
 def setUp(self):
     self.address = generate_address()
     self.client = generate_customer()
     self.client.add_address(self.address)
     self.client_id = get_smallinvoice().clients.add(self.client)