Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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