コード例 #1
0
ファイル: test.py プロジェクト: gestionamos/retrofix
    def setUp(self):
        self.data = read_flat("115.txt")
        record = Record(aeat115.HEADER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.header_record = record

        record = Record(aeat115.RECORD)
        record.type = "U"
        record.nif = "B12345678"
        record.name = "NAME SL"
        record.fiscalyear = "2015"
        record.period = "1T"
        record.number_beneficiaries = 1
        record.taxable_amount = Decimal("1000.50")
        record.withholdings = Decimal("100.50")
        record.payable_amount = Decimal("100.50")
        record.complementary = False
        record.bank_account = "ES1122223333441111111111"
        self.record = record

        record = Record(aeat115.FOOTER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.footer_record = record
コード例 #2
0
ファイル: test.py プロジェクト: gestionamos/retrofix
    def setUp(self):
        self.data = read_flat("111.txt")
        record = Record(aeat111.HEADER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.header_record = record

        record = Record(aeat111.RECORD)
        record.type = "U"
        record.nif = "B12345678"
        record.name = "NAME SL"
        record.fiscalyear = "2015"
        record.period = "1T"
        record.earned_cash_income_number_beneficiaries = 4
        record.earned_cash_income_taxable_amount = Decimal("9369.88")
        record.earned_cash_income_withholdings = Decimal("582.25")
        record.economic_activities_cash_income_number_beneficiaries = 6
        record.economic_activities_cash_income_taxable_amount = Decimal("11871.16")
        record.economic_activities_cash_income_withholdings = Decimal("224.86")
        record.withholdings = Decimal("2000.50")
        record.payable_amount = Decimal("2000.50")
        record.complementary = False
        record.bank_account = "ES1122223333441111111111"
        self.record = record

        record = Record(aeat111.FOOTER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.footer_record = record
コード例 #3
0
ファイル: test.py プロジェクト: gestionamos/retrofix
    def setUp(self):
        self.data = read_flat("130.txt")

        record = Record(aeat130.HEADER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.header_record = record

        record = Record(aeat130.RECORD)
        record.type = "U"
        record.nif = "12345678A"
        record.surname = "SURNAME"
        record.name = "NAME"
        record.fiscalyear = "2015"
        record.period = "1T"
        record.economic_activity_income = Decimal("4177.52")
        record.economic_activity_deduction_expenses = Decimal("1405.97")
        record.economic_activity_taxable_amount = Decimal("2771.55")
        record.economic_activity_20_percent_taxable_amount = Decimal("554.31")
        record.economic_activity_withholdings_y2d = Decimal("122.85")
        record.economic_activity_payable_amount = Decimal("431.46")
        record.withholdings = Decimal("431.46")
        record.deduction_article_110dot3 = Decimal("100.00")
        record.difference = Decimal("331.46")
        record.amount = Decimal("331.46")
        record.payable_amount = Decimal("331.46")
        record.complementary = False
        record.bank_account = "ES1122223333441111111111"
        self.record = record

        record = Record(aeat130.FOOTER_RECORD)
        record.fiscalyear = "2015"
        record.period = "1T"
        self.footer_record = record
コード例 #4
0
ファイル: test.py プロジェクト: gisce/retrofix
 def setUp(self):
     self.data = read_flat('c19.txt')
     self.data = self.data.upper()
     # Presenter Header
     record = Record(c19.PRESENTER_HEADER_RECORD)
     record.record_code = '51'
     record.data_code = '80'
     record.nif = 'B65247983'
     record.suffix = '701'
     record.creation_date = datetime.datetime(2012, 2, 24)
     record.name = 'NAN PROJECTES DE PROGRAMARI LLIURE, S.L.'
     record.bank_code = '2059'
     record.bank_office = '0060'
     self.presenter_header = record
コード例 #5
0
ファイル: test.py プロジェクト: gestionamos/retrofix
 def setUp(self):
     self.data = read_flat("c58.txt")
     self.data = self.data.upper()
     # Presenter Header
     record = Record(c58.PRESENTER_HEADER_RECORD)
     record.record_code = "51"
     record.data_code = "70"
     record.nif = "B65247983"
     record.suffix = "000"
     record.creation_date = datetime.datetime(2012, 2, 24)
     record.name = "NAN PROJECTES DE PROGRAMARI LLIURE, S.L."
     record.bank_code = "0075"
     record.bank_office = "1454"
     self.presenter_header = record