Example #1
0
    def test003_MAJ_RT(self, file_address):
        # read file
        tin = read_file('TIN', file_address=file_address)
        ABFB_doc_no = read_file('ABFB_doc_no', file_address=file_address)

        # Capture Adjust Brought Forward Balance类型Journal
        self.ii.journal_new(journal_type='MAJ')
        self.ii.capture_miscellaneous_adjustment(tin=tin,
                                                 journal_type='RT',
                                                 doc_no1=ABFB_doc_no)

        # Approve Adjust Brought Forward Balance类型Journal
        self.ii.journal_search(tin,
                               journal_category='MAJ',
                               journal_status='CAPTURED')
        self.ii.approve_journal()

        # Complete Adjust Brought Forward Balance类型Journal
        self.ii.journal_search(tin,
                               journal_category='MAJ',
                               journal_status='APPROVED')
        self.ii.complete_journal()

        # 读取document No.
        RT_doc_no = self.ii.journal_search_doc_no(tin=tin,
                                                  journal_category='MAJ',
                                                  journal_type='RT',
                                                  i=2)
        write_file(file_address=file_address, **{'RT_doc_no': RT_doc_no})
Example #2
0
    def test004_close_reconcile_till(self, file_address):
        # 读取till no.
        till_no = read_file('till_no', file_address)
        capture_payment_total_amount = read_file(
            'capture_payment_total_amount', file_address)

        # close till
        self.hh.till_search(till=till_no)
        self.hh.till_close(capture_payment_total_amount)

        # reconcile till
        self.hh.till_search(till=till_no)
        self.hh.till_reconcile()
Example #3
0
 def test_002_modify_other_information(self, file_address):
     # 读取Taxpayer Name
     taxpayer_name = read_file('taxpayer_name', file_address=file_address)
     tin = read_file('TIN', file_address=file_address)
     # 进行相关操作
     self.ccc.maintain_taxpayer_search_screen(file_address=file_address,
                                              taxpayer_name=taxpayer_name,
                                              **{'taxpayer': 2})
     # modify_other_information
     self.ccc.modify_other_information()
     # Operation Request---search
     self.ddd.approve(tin)
     self.ddd.complete(tin)
Example #4
0
 def test_002_registration_request_search_approve(self, file_address):
     # print(1, file_address)
     search_input_data = read_file(read_data='taxpayer_name',
                                   file_address=file_address)
     self.aaa.registration_request_search_process(
         **{'creg08Applicant': search_input_data})
     self.aaa.registration_request_search_approve()
Example #5
0
 def test_001_return_search_screen(self, file_address):
     # 读取TIN
     tin = read_file('TIN', file_address=file_address)
     # 提交Return
     self.ee.return_search_screen(tin=tin)
     self.ee.return_process_screen()
     # 获取Return ID&写入到临时文件
     return_id = self.ee.get_return_id(tin=tin)
     write_file(file_address=file_address, **{'return_id': return_id})
     # Send Batch
     self.ff.batch_search_screen(return_id=return_id)
     return_number_of_return = self.ff.batch_send_batch()
     # Accept Batch
     self.ff.batch_search_screen(return_id=return_id)
     self.ff.batch_accept(number_of_return=return_number_of_return)
     # Allocate Batch
     self.ff.batch_search_screen(return_id=return_id)
     self.ff.batch_allocate()
     # Capture Return
     self.ee.return_search_screen(tin=tin, return_status='RCV')
     self.ee.capture_vat_return()
     # 读取数据
     assessment_amount = return_post_verification\
         (driver=self.driver, url=common_url+menu_id_search_tac_transaction, tin=tin, doc_no=return_id,tax_type=1)
     write_file(file_address=file_address,
                **{'VAT': float(assessment_amount)})
     self.assertEqual(150, int(assessment_amount))
Example #6
0
 def test002_allocate_till(self, file_address):
     # 读取tin
     tin = read_file('TIN', file_address=file_address)
     # 创建till
     self.hh.till_search()
     till_no = self.hh.till_new(tin=tin)
     write_file(file_address, **{'till_no': till_no})
     # 分配till
     self.hh.till_search(till=till_no)
     self.hh.till_prepare()
     # Open till
     self.hh.till_search(till=till_no)
     self.hh.till_open()
Example #7
0
 def test_001_contact_information(self, file_address):
     # 读取Taxpayer Name
     taxpayer_name = read_file('taxpayer_name', file_address=file_address)
     # 进行相关操作
     self.ccc.maintain_taxpayer_search_screen(file_address=file_address,
                                              taxpayer_name=taxpayer_name,
                                              **{'taxpayer': 1})
     # 进行修改
     edit_data = self.ccc.contact_information()
     # 验证是否真正修改成功
     self.ccc.maintain_taxpayer_search_screen(file_address=file_address,
                                              taxpayer_name=taxpayer_name,
                                              **{'taxpayer': 1})
     actual_data = contact_information_verification(self.driver)
     print(1, actual_data, '\n', 2, edit_data)
     self.assertEqual(actual_data, edit_data)
Example #8
0
    def test004_MAJ_AA(self, file_address):
        # read file
        tin = read_file('TIN', file_address=file_address)

        # Capture Adjust Brought Forward Balance类型Journal
        self.ii.journal_new(journal_type='MAJ')
        self.ii.capture_miscellaneous_adjustment(tin=tin, journal_type='AA')

        # Approve Adjust Brought Forward Balance类型Journal
        self.ii.journal_search(tin,
                               journal_category='MAJ',
                               journal_status='CAPTURED')
        self.ii.approve_journal()

        # Complete Adjust Brought Forward Balance类型Journal
        self.ii.journal_search(tin,
                               journal_category='MAJ',
                               journal_status='APPROVED')
        self.ii.complete_journal()
Example #9
0
 def test003_capture_payment(self, file_address):
     tin = read_file('TIN', file_address)
     capture_payment_total_amount = self.jj.capture_payment(tin)
     write_file(
         file_address,
         **{'capture_payment_total_amount': capture_payment_total_amount})