Allow to export tax reports as file
issue7484 review45241002
This commit is contained in:
1 parent
748735ce67
commit
eccab77238
23 files changed
+847
-1
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Allow to export tax reports as file
|
||||
* Remove support for Python 2.7
|
||||
|
||||
Version 4.8.0 - 2018-05-21
|
||||
|
||||
+19
@@ -1,2 +1,21 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
from . import account
|
||||
from . import reporting_tax
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
reporting_tax.PrintAEATStart,
|
||||
account.TaxCodeTemplate,
|
||||
account.TaxCode,
|
||||
module='account_es', type_='model')
|
||||
Pool.register(
|
||||
reporting_tax.AEAT111,
|
||||
reporting_tax.AEAT115,
|
||||
reporting_tax.AEAT303,
|
||||
module='account_es', type_='report')
|
||||
Pool.register(
|
||||
reporting_tax.PrintAEAT,
|
||||
module='account_es', type_='wizard')
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.pyson import Bool, Eval
|
||||
|
||||
__all__ = ['TaxCodeTemplate', 'TaxCode']
|
||||
|
||||
|
||||
class TaxCodeTemplate(metaclass=PoolMeta):
|
||||
__name__ = 'account.tax.code.template'
|
||||
|
||||
aeat_report = fields.Selection([
|
||||
(None, ''),
|
||||
('111', "Model 111"),
|
||||
('115', "Model 115"),
|
||||
('303', "Model 303"),
|
||||
], "AEAT Report")
|
||||
|
||||
def _get_tax_code_value(self, code=None):
|
||||
value = super(TaxCodeTemplate, self)._get_tax_code_value(code=code)
|
||||
value['aeat_report'] = self.aeat_report
|
||||
return value
|
||||
|
||||
|
||||
class TaxCode(metaclass=PoolMeta):
|
||||
__name__ = 'account.tax.code'
|
||||
|
||||
aeat_report = fields.Selection([
|
||||
(None, ''),
|
||||
('111', "Model 111"),
|
||||
('115', "Model 115"),
|
||||
('303', "Model 303"),
|
||||
], "AEAT Report",
|
||||
states={
|
||||
'readonly': (Bool(Eval('template', -1))
|
||||
& ~Eval('template_override', False)),
|
||||
},
|
||||
depends=['template', 'template_override'])
|
||||
@@ -0,0 +1 @@
|
||||
<T1110${year}${period}0000><AUX>${justify('', 300)}</AUX><T11101000> I${company.party.tax_identifier.code[2:]}${justify(company.rec_name.upper(), 80)}${year}${period}${format_integer(parties['02'])}${format_decimal(amounts['02'])}${format_decimal(amounts['03'])}${format_integer(parties['05'])}${format_decimal(amounts['05'])}${format_decimal(amounts['06'])}${format_integer(parties['08'])}${format_decimal(amounts['08'])}${format_decimal(amounts['09'])}${format_integer(parties['11'])}${format_decimal(amounts['11'])}${format_decimal(amounts['12'])}${format_integer(parties['14'])}${format_decimal(amounts['14'])}${format_decimal(amounts['15'])}${format_integer(parties['17'])}${format_decimal(amounts['17'])}${format_decimal(amounts['18'])}${format_integer(parties['20'])}${format_decimal(amounts['20'])}${format_decimal(amounts['21'])}${format_integer(parties['23'])}${format_decimal(amounts['23'])}${format_decimal(amounts['24'])}${format_integer(parties['26'])}${format_decimal(amounts['26'])}${format_decimal(amounts['27'])}${format_decimal(amounts['28'])}${format_decimal(amounts['29'])}${format_decimal(amounts['30'])}${justify('', 451)}</T11101000></T1110${year}${period}0000>
|
||||
@@ -0,0 +1 @@
|
||||
<T1150${year}${period}0000><AUX>${justify('', 300)}</AUX><T11501000> I${company.party.tax_identifier.code[2:]}${justify(company.rec_name.upper(), 80)}${year}${period}${format_integer(parties['03'], 15)}${format_decimal(amounts['02'])}${format_decimal(amounts['03'])}${format_decimal(amounts['04'])}${format_decimal(amounts['05'])}${justify('', 297)}</T11501000></T1150${year}${period}0000>
|
||||
@@ -0,0 +1 @@
|
||||
<T3030${year}${period}0000><AUX>${justify('', 300)}</AUX><T30301000> ${declaration_type}${company.party.tax_identifier.code[2:]}${justify(company.rec_name.upper(), 80)}${year}${period}2322 2222${format_decimal(amounts['01'])}${format_percentage(amounts['02'])}${format_decimal(amounts['03'])}${format_decimal(amounts['04'])}${format_percentage(amounts['05'])}${format_decimal(amounts['06'])}${format_decimal(amounts['07'])}${format_percentage(amounts['08'])}${format_decimal(amounts['09'])}${format_decimal(amounts['10'])}${format_decimal(amounts['11'])}${format_decimal(amounts['12'])}${format_decimal(amounts['13'])}${format_decimal(amounts['14'])}${format_decimal(amounts['15'])}${format_decimal(amounts['16'])}${format_percentage(amounts['017'])}${format_decimal(amounts['18'])}${format_decimal(amounts['19'])}${format_percentage(amounts['20'])}${format_decimal(amounts['21'])}${format_decimal(amounts['22'])}${format_percentage(amounts['23'])}${format_decimal(amounts['24'])}${format_decimal(amounts['25'], True)}${format_decimal(amounts['26'], True)}${format_decimal(amounts['27'], True)}${format_decimal(amounts['28'])}${format_decimal(amounts['29'])}${format_decimal(amounts['30'])}${format_decimal(amounts['31'])}${format_decimal(amounts['32'])}${format_decimal(amounts['33'])}${format_decimal(amounts['34'])}${format_decimal(amounts['35'])}${format_decimal(amounts['36'])}${format_decimal(amounts['37'])}${format_decimal(amounts['38'])}${format_decimal(amounts['39'])}${format_decimal(amounts['40'], True)}${format_decimal(amounts['41'], True)}${format_decimal(amounts['42'], True)}${format_decimal(amounts['43'], True)}${format_decimal(amounts['44'], True)}${format_decimal(amounts['45'], True)}${format_decimal(amounts['46'], True)}022${justify('', 592)}</T30301000><T30303000>${format_decimal(amounts['59'])}${format_decimal(amounts['60'])}${format_decimal(amounts['61'])}${format_decimal(amounts['62'])}${format_decimal(amounts['63'])}${format_decimal(amounts['74'])}${format_decimal(amounts['75'])}${format_decimal(amounts['76'])}${format_decimal(amounts['64'], True)}${format_percentage(amounts['65'])}0000${format_decimal(amounts['66'], True)}${format_decimal(amounts['77'])}${format_decimal(amounts['67'])}${format_decimal(amounts['68'], True)}${format_decimal(amounts['69'], True)}${format_decimal(amounts['70'], True)}${format_decimal(amounts['71'], True)}${justify('', 60)}0 0 0 0 0 0 ${format_decimal(amounts['80'])}${format_decimal(amounts['81'])}${format_decimal(amounts['93'])}${format_decimal(amounts['83'])}${format_decimal(amounts['84'])}${format_decimal(amounts['85'])}${format_decimal(amounts['86'])}${format_decimal(amounts['79'])}${format_decimal(amounts['88'])}0${format_percentage(amounts['89'])}${format_percentage(amounts['90'])}${format_percentage(amounts['91'])}${format_percentage(amounts['92'])}${format_decimal(amounts['94'])}${format_decimal(amounts['95'])}${format_decimal(amounts['96'])}${format_decimal(amounts['97'])}${format_decimal(amounts['98'])}${format_decimal(amounts['99'])}${justify('', 468)}</T30303000></T3030${year}${period}0000>
|
||||
@@ -9,3 +9,9 @@ The Spanish account module defines the following charts of account:
|
||||
The chart was published as `REAL DECRETO 1514/2007
|
||||
https://www.boe.es/boe/dias/2007/11/20/pdfs/C00001-00152.pdf`_ on 20th November
|
||||
2007.
|
||||
|
||||
A wizard allows to generate the following AEAT files:
|
||||
|
||||
* Modelo 111
|
||||
* Modelo 115
|
||||
* Modelo 303
|
||||
@@ -0,0 +1,317 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from collections import defaultdict
|
||||
from decimal import Decimal
|
||||
from operator import attrgetter
|
||||
|
||||
from sql import Cast, Null, Literal
|
||||
from sql.aggregate import Count
|
||||
from sql.conditionals import Case
|
||||
from sql.functions import Substring, Position
|
||||
|
||||
from trytond.model import ModelView, fields
|
||||
from trytond.model.modelsql import convert_from
|
||||
from trytond.pool import Pool
|
||||
from trytond.report import Report
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.wizard import Wizard, StateView, StateTransition, StateReport, \
|
||||
Button
|
||||
|
||||
__all__ = ['AEAT111', 'AEAT115', 'AEAT303', 'PrintAEATStart', 'PrintAEAT']
|
||||
|
||||
|
||||
def justify(string, size):
|
||||
return string[:size].ljust(size)
|
||||
|
||||
|
||||
def format_decimal(n, include_sign=False):
|
||||
if not isinstance(n, Decimal):
|
||||
n = Decimal(n)
|
||||
sign = ''
|
||||
if include_sign:
|
||||
sign = 'N' if n < 0 else ''
|
||||
return sign + ('{0:.2f}'.format(abs(n))).replace('.', '').rjust(
|
||||
17 - len(sign), '0')
|
||||
|
||||
|
||||
def format_integer(n, size=8):
|
||||
return ('%d' % n).rjust(size, '0')
|
||||
|
||||
|
||||
def format_percentage(n, size=5):
|
||||
return ('{0:.2f}'.format(n)).replace('.', '').rjust(size, '0')
|
||||
|
||||
|
||||
class AEATReport(Report):
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
pool = Pool()
|
||||
Period = pool.get('account.period')
|
||||
context = super().get_context(records, data)
|
||||
|
||||
periods = sorted(
|
||||
Period.browse(data['periods']), key=attrgetter('start_date'))
|
||||
|
||||
context['year'] = str(periods[0].start_date.year)
|
||||
context['company'] = periods[0].fiscalyear.company
|
||||
|
||||
start_month = periods[0].start_date.month
|
||||
end_month = periods[-1].end_date.month
|
||||
if end_month - start_month > 0:
|
||||
context['period'] = str(end_month // 3) + 'T'
|
||||
else:
|
||||
context['period'] = str(start_month).rjust(2, '0')
|
||||
|
||||
context['justify'] = justify
|
||||
context['format_decimal'] = format_decimal
|
||||
context['format_integer'] = format_integer
|
||||
context['format_percentage'] = format_percentage
|
||||
|
||||
with Transaction().set_context(periods=data['periods']):
|
||||
context['amounts'] = cls.compute_amounts()
|
||||
|
||||
return context
|
||||
|
||||
@classmethod
|
||||
def compute_amounts(cls):
|
||||
amounts = defaultdict(lambda: Decimal(0))
|
||||
for tax_code in cls.tax_codes():
|
||||
amounts[tax_code.code] += tax_code.amount
|
||||
return amounts
|
||||
|
||||
@classmethod
|
||||
def tax_codes(cls):
|
||||
pool = Pool()
|
||||
TaxCode = pool.get('account.tax.code')
|
||||
return TaxCode.search([('aeat_report', '=', cls._aeat_report)])
|
||||
|
||||
|
||||
class AEATPartyReport(AEATReport):
|
||||
|
||||
@classmethod
|
||||
def aeat_party_expression(cls, tables):
|
||||
'''
|
||||
Returns a couple of sql expression and tables used by sql query to
|
||||
compute the aeat party.
|
||||
'''
|
||||
pool = Pool()
|
||||
Invoice = pool.get('account.invoice')
|
||||
|
||||
table, _ = tables[None]
|
||||
is_invoice = table.origin.like(Invoice.__name__ + ',%')
|
||||
|
||||
if 'invoice' in tables:
|
||||
invoice, _ = tables['invoice']
|
||||
else:
|
||||
invoice = Invoice.__table__()
|
||||
tables['invoice'] = {
|
||||
None: (invoice, (is_invoice
|
||||
& (invoice.id == Cast(
|
||||
Substring(table.origin,
|
||||
Position(',', table.origin) + Literal(1)),
|
||||
Invoice.id.sql_type().base)))),
|
||||
}
|
||||
|
||||
return Case((is_invoice, invoice.party), else_=Null), tables
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
pool = Pool()
|
||||
Move = pool.get('account.move')
|
||||
Line = pool.get('account.move.line')
|
||||
TaxLine = pool.get('account.tax.line')
|
||||
Tax = pool.get('account.tax')
|
||||
|
||||
context = super().get_context(records, data)
|
||||
cursor = Transaction().connection.cursor()
|
||||
|
||||
move = Move.__table__()
|
||||
move_line = Line.__table__()
|
||||
tax_line = TaxLine.__table__()
|
||||
|
||||
tables = {
|
||||
None: (move, None),
|
||||
'lines': {
|
||||
None: (move_line, move_line.move == move.id),
|
||||
'tax_lines': {
|
||||
None: (tax_line, tax_line.move_line == move_line.id),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
expression, tables = cls.aeat_party_expression(tables)
|
||||
|
||||
parties = defaultdict(int)
|
||||
for tax_code in cls.tax_codes():
|
||||
domain = ['OR']
|
||||
for line in tax_code.lines:
|
||||
domain.append(line._line_domain)
|
||||
|
||||
with Transaction().set_context(periods=data['periods']):
|
||||
tax_line_domain = [Tax._amount_domain(), domain]
|
||||
_, where = Move.search_domain([
|
||||
('lines', 'where', [
|
||||
('tax_lines', 'where', tax_line_domain),
|
||||
]),
|
||||
], tables=tables)
|
||||
|
||||
from_ = convert_from(None, tables)
|
||||
cursor.execute(*from_.select(
|
||||
expression, where=where, group_by=(expression,)).select(
|
||||
Count(Literal('*'))))
|
||||
row = cursor.fetchone()
|
||||
if row:
|
||||
parties[tax_code.code] += row[0]
|
||||
context['parties'] = parties
|
||||
return context
|
||||
|
||||
|
||||
class AEAT111(AEATPartyReport):
|
||||
__name__ = 'account.reporting.aeat111'
|
||||
_aeat_report = '111'
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
context = super().get_context(records, data)
|
||||
amounts = context['amounts']
|
||||
for code in ['28', '30']:
|
||||
assert code not in amounts, (
|
||||
"computed code %s already defined" % code)
|
||||
amounts['28'] = (amounts['03'] + amounts['06'] + amounts['09']
|
||||
+ amounts['12'] + amounts['15'] + amounts['18'] + amounts['21']
|
||||
+ amounts['24'] + amounts['27'])
|
||||
amounts['30'] = amounts['28'] - amounts['29']
|
||||
return context
|
||||
|
||||
|
||||
class AEAT115(AEATPartyReport):
|
||||
__name__ = 'account.reporting.aeat115'
|
||||
_aeat_report = '115'
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
context = super().get_context(records, data)
|
||||
amounts = context['amounts']
|
||||
assert '05' not in amounts, (
|
||||
"computed code 05 already defined")
|
||||
amounts['05'] = amounts['03'] - amounts['04']
|
||||
return context
|
||||
|
||||
|
||||
class AEAT303(AEATReport):
|
||||
__name__ = 'account.reporting.aeat303'
|
||||
_aeat_report = '303'
|
||||
|
||||
@classmethod
|
||||
def compute_amounts(cls):
|
||||
amounts = super().compute_amounts()
|
||||
amounts['65'] = 100.0
|
||||
return amounts
|
||||
|
||||
@classmethod
|
||||
def get_context(cls, records, data):
|
||||
pool = Pool()
|
||||
Period = pool.get('account.period')
|
||||
TaxCodeLine = pool.get('account.tax.code.line')
|
||||
context = super().get_context(records, data)
|
||||
amounts = context['amounts']
|
||||
|
||||
periods = Period.browse(data['periods'])
|
||||
start_date = periods[0].start_date
|
||||
end_date = periods[-1].end_date
|
||||
|
||||
lines = TaxCodeLine.search([
|
||||
('code', 'in', cls.tax_codes()),
|
||||
('code.code', 'in', ['03', '06', '09', '18', '21', '24']),
|
||||
('tax', 'where', [
|
||||
('type', '=', 'percentage'),
|
||||
['OR',
|
||||
('start_date', '=', None),
|
||||
('start_date', '<=', end_date),
|
||||
],
|
||||
['OR',
|
||||
('end_date', '=', None),
|
||||
('end_date', '>=', start_date),
|
||||
],
|
||||
]),
|
||||
])
|
||||
for line in lines:
|
||||
code = str(int(line.code.code) - 1).rjust(2, '0')
|
||||
amounts[code] = float(line.tax.rate * Decimal(100))
|
||||
|
||||
for code in ['46', '64', '66', '69', '71', '88']:
|
||||
assert code not in amounts, (
|
||||
"computed code %s already defined" % code)
|
||||
amounts['46'] = amounts['27'] - amounts['45']
|
||||
amounts['64'] = amounts['46'] + amounts['58'] + amounts['76']
|
||||
amounts['66'] = amounts['64'] * Decimal(amounts['65']) / Decimal(100.0)
|
||||
amounts['69'] = (amounts['66'] + amounts['77'] - amounts['67']
|
||||
+ amounts['68'])
|
||||
amounts['71'] = (amounts['69'] - amounts['70'])
|
||||
amounts['88'] = (amounts['80'] + amounts['81'] - amounts['93']
|
||||
+ amounts['94'] + amounts['83'] + amounts['84'] + amounts['85']
|
||||
+ amounts['86'] + amounts['95'] + amounts['96'] + amounts['97']
|
||||
+ amounts['98'] - amounts['79'] - amounts['99'])
|
||||
|
||||
last_period = [p for p in periods[0].fiscalyear.periods
|
||||
if p.type == 'standard'][-1]
|
||||
declaration_type = 'N'
|
||||
if amounts['69'] > 0:
|
||||
declaration_type = 'I'
|
||||
elif amounts['69'] < 0:
|
||||
declaration_type = 'D' if last_period in periods else 'C'
|
||||
context['declaration_type'] = declaration_type
|
||||
return context
|
||||
|
||||
|
||||
class PrintAEATStart(ModelView):
|
||||
'Print AEAT Start'
|
||||
__name__ = 'account.reporting.aeat.start'
|
||||
|
||||
report = fields.Selection([
|
||||
('111', "Model 111"),
|
||||
('115', "Model 115"),
|
||||
('303', "Model 303"),
|
||||
], "Report", required=True)
|
||||
periods = fields.Many2Many('account.period', None, None, 'Periods',
|
||||
required=True)
|
||||
|
||||
|
||||
class PrintAEAT(Wizard):
|
||||
'Print AEAT'
|
||||
__name__ = 'account.reporting.aeat'
|
||||
start = StateView('account.reporting.aeat.start',
|
||||
'account_es.print_aeat_start_view_form', [
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Print', 'choice', 'tryton-ok', default=True),
|
||||
])
|
||||
choice = StateTransition()
|
||||
model_111 = StateReport('account.reporting.aeat111')
|
||||
model_115 = StateReport('account.reporting.aeat115')
|
||||
model_303 = StateReport('account.reporting.aeat303')
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super().__setup__()
|
||||
cls._error_messages.update({
|
||||
'same_fiscalyear': ("Periods should be of the same fiscalyear "
|
||||
"to generate the report."),
|
||||
})
|
||||
|
||||
def transition_choice(self):
|
||||
validate = getattr(self, 'validate_%s' % self.start.report, None)
|
||||
if validate:
|
||||
validate()
|
||||
return 'model_%s' % self.start.report
|
||||
|
||||
def open_report(self, action):
|
||||
return action, {'periods': [p.id for p in self.start.periods]}
|
||||
|
||||
do_model_111 = open_report
|
||||
do_model_115 = open_report
|
||||
do_model_303 = open_report
|
||||
|
||||
def validate_303(self):
|
||||
if len(set(p.fiscalyear for p in self.start.periods)) > 1:
|
||||
self.raise_user_error('same_fiscalyear')
|
||||
@@ -0,0 +1,84 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.action.report" id="report_aeat_111">
|
||||
<field name="name">AEAT Model 111</field>
|
||||
<field name="report_name">account.reporting.aeat111</field>
|
||||
<field name="report">account_es/aeat111.txt</field>
|
||||
<field name="template_extension">txt</field>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_111_group_account">
|
||||
<field name="action" ref="report_aeat_111"/>
|
||||
<field name="group" ref="account.group_account"/>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_111_group_account_admin">
|
||||
<field name="action" ref="report_aeat_111"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.report" id="report_aeat_115">
|
||||
<field name="name">AEAT Model 115</field>
|
||||
<field name="report_name">account.reporting.aeat115</field>
|
||||
<field name="report">account_es/aeat115.txt</field>
|
||||
<field name="template_extension">txt</field>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_115_group_account">
|
||||
<field name="action" ref="report_aeat_115"/>
|
||||
<field name="group" ref="account.group_account"/>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_115_group_account_admin">
|
||||
<field name="action" ref="report_aeat_115"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.report" id="report_aeat_303">
|
||||
<field name="name">AEAT Model 303</field>
|
||||
<field name="report_name">account.reporting.aeat303</field>
|
||||
<field name="report">account_es/aeat303.txt</field>
|
||||
<field name="template_extension">txt</field>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_303_group_account">
|
||||
<field name="action" ref="report_aeat_303"/>
|
||||
<field name="group" ref="account.group_account"/>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="report_aeat_303_group_account_admin">
|
||||
<field name="action" ref="report_aeat_303"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="print_aeat_start_view_form">
|
||||
<field name="model">account.reporting.aeat.start</field>
|
||||
<field name="type">form</field>
|
||||
<field name="name">print_aeat_start_form</field>
|
||||
</record>
|
||||
<record model="ir.action.wizard" id="wizard_print_aeat_report">
|
||||
<field name="name">Print AEAT</field>
|
||||
<field name="wiz_name">account.reporting.aeat</field>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="wizard_print_aeat_report_group_account">
|
||||
<field name="action" ref="wizard_print_aeat_report"/>
|
||||
<field name="group" ref="account.group_account"/>
|
||||
</record>
|
||||
<record model="ir.action-res.group" id="wizard_print_aeat_report_group_account_admin">
|
||||
<field name="action" ref="wizard_print_aeat_report"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
</record>
|
||||
|
||||
<menuitem parent="account.menu_reporting"
|
||||
action="wizard_print_aeat_report"
|
||||
id="menu_print_aeat"
|
||||
icon="tryton-print"/>
|
||||
<record model="ir.ui.menu-res.group" id="menu_print_aeat_group_account">
|
||||
<field name="menu" ref="menu_print_aeat"/>
|
||||
<field name="group" ref="account.group_account"/>
|
||||
</record>
|
||||
<record model="ir.ui.menu-res.group" id="menu_print_aeat_group_account_admin">
|
||||
<field name="menu" ref="menu_print_aeat"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -72,7 +72,8 @@ setup(name=name,
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.account_es': (info.get('xml', [])
|
||||
+ ['tryton.cfg']),
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', '*.text',
|
||||
'icons/*.svg', 'tests/*.rst', 'tests/*.txt']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -375,6 +375,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_superred">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">01</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -395,6 +396,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_red">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">04</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -415,6 +417,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_normal">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">07</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -435,6 +438,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_intracomunitario">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">10</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -469,18 +473,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_sujeto_pasivo">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">12</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_modification_bases">
|
||||
<field name="name">Modificación bases</field>
|
||||
<field name="code">14</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_re_normal">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">16</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -501,6 +508,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_re_red">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">19</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -521,6 +529,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_base_re_superred">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">22</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -542,6 +551,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_modification_bases_re">
|
||||
<field name="name">Modificación bases del recargo de equivalencia</field>
|
||||
<field name="code">25</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -549,12 +559,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax">
|
||||
<field name="name">Total cuota devengada</field>
|
||||
<field name="code">27</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_superred">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -575,6 +587,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_red">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">06</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -595,6 +608,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_normal">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -615,6 +629,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_intracomunitario">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">11</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -649,18 +664,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_sujeto_pasivo">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">13</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_modification_taxes">
|
||||
<field name="name">Modificación cuotas</field>
|
||||
<field name="code">15</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_re_normal">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">18</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -681,6 +699,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_re_red">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">21</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -701,6 +720,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_tax_re_superred">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">24</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -722,6 +742,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_devengado_modification_taxes_re">
|
||||
<field name="name">Modificación cuotas del recargo equivalencia</field>
|
||||
<field name="code">26</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -741,6 +762,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_corrientes">
|
||||
<field name="name">Operaciones interiores corrientes</field>
|
||||
<field name="code">28</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -804,6 +826,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_inversion">
|
||||
<field name="name">Operaciones interiores con bienes inversión</field>
|
||||
<field name="code">30</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -853,6 +876,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_importacion">
|
||||
<field name="name">Importaciones de bienes corrientes</field>
|
||||
<field name="code">32</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -873,6 +897,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_importacion_inversion">
|
||||
<field name="name">Importaciones de bienes de inversión</field>
|
||||
<field name="code">34</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -893,6 +918,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_intracomunitario">
|
||||
<field name="name">Adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">36</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -913,6 +939,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_intracomunitario_inv">
|
||||
<field name="name">Adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">38</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -933,6 +960,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_base_rectification_deductions">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">40</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -940,12 +968,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax">
|
||||
<field name="name">Total a deducir</field>
|
||||
<field name="code">45</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_corrientes">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores corrientes</field>
|
||||
<field name="code">29</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -995,6 +1025,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_inversion">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores con bienes inversión</field>
|
||||
<field name="code">31</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1057,6 +1088,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_importacion">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes corrientes</field>
|
||||
<field name="code">33</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1077,6 +1109,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_importacion_inversion">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes de inversión</field>
|
||||
<field name="code">35</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1097,6 +1130,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_intracomunitario">
|
||||
<field name="name">En adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">37</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1117,6 +1151,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_intracomunitario_inv">
|
||||
<field name="name">En adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">39</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1137,24 +1172,28 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_rectification_deductions">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">41</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_reagp">
|
||||
<field name="name">Compensaciones Reǵimen Especial A.G y P.</field>
|
||||
<field name="code">42</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_regularization_inv">
|
||||
<field name="name">Regularización bienes de inversión</field>
|
||||
<field name="code">43</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.template" id="vat_code_iva_deducible_tax_regularization_prorrata">
|
||||
<field name="name">Regularización por aplicación del porcentaje definitio de prorrata</field>
|
||||
<field name="code">44</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1162,6 +1201,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_rep_intracomunitario">
|
||||
<field name="name">Entregas intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">59</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1198,6 +1238,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_exportaciones">
|
||||
<field name="name">Exportaciones y operaciones asimiladas</field>
|
||||
<field name="code">60</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1218,6 +1259,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_iva_no_sujetas">
|
||||
<field name="name">Operaciones no sujetas o con inversión del sujeto pasivo que originn derecho a deducción</field>
|
||||
<field name="code">61</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1231,6 +1273,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Importe percepeciones actividades economicas</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase"/>
|
||||
<field name="code">08</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.line.template" id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice">
|
||||
@@ -1293,6 +1336,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="account.tax.code.template" id="vat_code_irpf_purchase_tax">
|
||||
<field name="name">Importe retenciones actividades economicas</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase"/>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
@@ -1362,6 +1406,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Base de las retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent"/>
|
||||
<field name="code">02</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.line.template" id="vat_code_irpf_19_purchase_rent_base-irpf_19_purchase_rent-invoice">
|
||||
@@ -1382,6 +1427,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent"/>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0"/>
|
||||
</record>
|
||||
<record model="account.tax.code.line.template" id="vat_code_irpf_19_purchase_rent_tax-irpf_19_purchase_rent-invoice">
|
||||
|
||||
@@ -375,6 +375,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_superred_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">01</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -395,6 +396,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_red_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">04</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -415,6 +417,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_normal_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">07</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -435,6 +438,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_intracomunitario_normal" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">10</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -469,18 +473,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_sujeto_pasivo_normal" model="account.tax.code.template">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">12</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_modification_bases_normal" model="account.tax.code.template">
|
||||
<field name="name">Modificación bases</field>
|
||||
<field name="code">14</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_base_re_normal_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">16</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -501,6 +508,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_re_red_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">19</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -521,6 +529,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_re_superred_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">22</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -542,6 +551,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_modification_bases_re_normal" model="account.tax.code.template">
|
||||
<field name="name">Modificación bases del recargo de equivalencia</field>
|
||||
<field name="code">25</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -549,12 +559,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_normal" model="account.tax.code.template">
|
||||
<field name="name">Total cuota devengada</field>
|
||||
<field name="code">27</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_tax_superred_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -575,6 +587,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_red_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">06</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -595,6 +608,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_normal_normal" model="account.tax.code.template">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -615,6 +629,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_intracomunitario_normal" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">11</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -649,18 +664,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_sujeto_pasivo_normal" model="account.tax.code.template">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">13</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_modification_taxes_normal" model="account.tax.code.template">
|
||||
<field name="name">Modificación cuotas</field>
|
||||
<field name="code">15</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_tax_re_normal_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">18</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -681,6 +699,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_re_red_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">21</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -701,6 +720,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_re_superred_normal" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">24</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -722,6 +742,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_modification_taxes_re_normal" model="account.tax.code.template">
|
||||
<field name="name">Modificación cuotas del recargo equivalencia</field>
|
||||
<field name="code">26</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -741,6 +762,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_corrientes_normal" model="account.tax.code.template">
|
||||
<field name="name">Operaciones interiores corrientes</field>
|
||||
<field name="code">28</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -804,6 +826,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_inversion_normal" model="account.tax.code.template">
|
||||
<field name="name">Operaciones interiores con bienes inversión</field>
|
||||
<field name="code">30</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -853,6 +876,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_importacion_normal" model="account.tax.code.template">
|
||||
<field name="name">Importaciones de bienes corrientes</field>
|
||||
<field name="code">32</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -873,6 +897,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_importacion_inversion_normal" model="account.tax.code.template">
|
||||
<field name="name">Importaciones de bienes de inversión</field>
|
||||
<field name="code">34</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -893,6 +918,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_intracomunitario_normal" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">36</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -913,6 +939,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_intracomunitario_inv_normal" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">38</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -933,6 +960,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_rectification_deductions_normal" model="account.tax.code.template">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">40</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -940,12 +968,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_normal" model="account.tax.code.template">
|
||||
<field name="name">Total a deducir</field>
|
||||
<field name="code">45</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_corrientes_normal" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores corrientes</field>
|
||||
<field name="code">29</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -995,6 +1025,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_inversion_normal" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores con bienes inversión</field>
|
||||
<field name="code">31</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1057,6 +1088,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_importacion_normal" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes corrientes</field>
|
||||
<field name="code">33</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1077,6 +1109,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_importacion_inversion_normal" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes de inversión</field>
|
||||
<field name="code">35</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1097,6 +1130,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_intracomunitario_normal" model="account.tax.code.template">
|
||||
<field name="name">En adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">37</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1117,6 +1151,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_intracomunitario_inv_normal" model="account.tax.code.template">
|
||||
<field name="name">En adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">39</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1137,24 +1172,28 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_rectification_deductions_normal" model="account.tax.code.template">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">41</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_reagp_normal" model="account.tax.code.template">
|
||||
<field name="name">Compensaciones Reǵimen Especial A.G y P.</field>
|
||||
<field name="code">42</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_regularization_inv_normal" model="account.tax.code.template">
|
||||
<field name="name">Regularización bienes de inversión</field>
|
||||
<field name="code">43</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_regularization_prorrata_normal" model="account.tax.code.template">
|
||||
<field name="name">Regularización por aplicación del porcentaje definitio de prorrata</field>
|
||||
<field name="code">44</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1162,6 +1201,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_rep_intracomunitario_normal" model="account.tax.code.template">
|
||||
<field name="name">Entregas intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">59</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1198,6 +1238,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_exportaciones_normal" model="account.tax.code.template">
|
||||
<field name="name">Exportaciones y operaciones asimiladas</field>
|
||||
<field name="code">60</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1218,6 +1259,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_no_sujetas_normal" model="account.tax.code.template">
|
||||
<field name="name">Operaciones no sujetas o con inversión del sujeto pasivo que originn derecho a deducción</field>
|
||||
<field name="code">61</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1231,6 +1273,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Importe percepeciones actividades economicas</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase_normal"/>
|
||||
<field name="code">08</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice_normal" model="account.tax.code.line.template">
|
||||
@@ -1293,6 +1336,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_irpf_purchase_tax_normal" model="account.tax.code.template">
|
||||
<field name="name">Importe retenciones actividades economicas</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase_normal"/>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
@@ -1362,6 +1406,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Base de las retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent_normal"/>
|
||||
<field name="code">02</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_19_purchase_rent_base-irpf_19_purchase_rent-invoice_normal" model="account.tax.code.line.template">
|
||||
@@ -1382,6 +1427,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent_normal"/>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0_normal"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_19_purchase_rent_tax-irpf_19_purchase_rent-invoice_normal" model="account.tax.code.line.template">
|
||||
|
||||
@@ -375,6 +375,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_superred_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">01</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -395,6 +396,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_red_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">04</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -415,6 +417,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_normal_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">07</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -435,6 +438,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_intracomunitario_pyme" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">10</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -469,18 +473,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_sujeto_pasivo_pyme" model="account.tax.code.template">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">12</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_modification_bases_pyme" model="account.tax.code.template">
|
||||
<field name="name">Modificación bases</field>
|
||||
<field name="code">14</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_base_re_normal_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">16</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -501,6 +508,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_re_red_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">19</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -521,6 +529,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_base_re_superred_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">22</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -542,6 +551,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_modification_bases_re_pyme" model="account.tax.code.template">
|
||||
<field name="name">Modificación bases del recargo de equivalencia</field>
|
||||
<field name="code">25</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -549,12 +559,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_pyme" model="account.tax.code.template">
|
||||
<field name="name">Total cuota devengada</field>
|
||||
<field name="code">27</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_tax_superred_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA superreducido</field>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -575,6 +587,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_red_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA reducido</field>
|
||||
<field name="code">06</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -595,6 +608,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_normal_pyme" model="account.tax.code.template">
|
||||
<field name="name">IVA normal</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -615,6 +629,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_intracomunitario_pyme" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">11</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -649,18 +664,21 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_sujeto_pasivo_pyme" model="account.tax.code.template">
|
||||
<field name="name">Otras operaciones con inversión del sujeto pasivo</field>
|
||||
<field name="code">13</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_modification_taxes_pyme" model="account.tax.code.template">
|
||||
<field name="name">Modificación cuotas</field>
|
||||
<field name="code">15</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_devengado_tax_re_normal_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia normal</field>
|
||||
<field name="code">18</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -681,6 +699,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_re_red_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia reducido</field>
|
||||
<field name="code">21</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -701,6 +720,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_tax_re_superred_pyme" model="account.tax.code.template">
|
||||
<field name="name">Recargo equivalencia superreducido</field>
|
||||
<field name="code">24</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -722,6 +742,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_devengado_modification_taxes_re_pyme" model="account.tax.code.template">
|
||||
<field name="name">Modificación cuotas del recargo equivalencia</field>
|
||||
<field name="code">26</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_devengado_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -741,6 +762,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_corrientes_pyme" model="account.tax.code.template">
|
||||
<field name="name">Operaciones interiores corrientes</field>
|
||||
<field name="code">28</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -804,6 +826,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_inversion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Operaciones interiores con bienes inversión</field>
|
||||
<field name="code">30</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -853,6 +876,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_importacion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Importaciones de bienes corrientes</field>
|
||||
<field name="code">32</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -873,6 +897,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_importacion_inversion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Importaciones de bienes de inversión</field>
|
||||
<field name="code">34</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -893,6 +918,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_intracomunitario_pyme" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">36</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -913,6 +939,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_intracomunitario_inv_pyme" model="account.tax.code.template">
|
||||
<field name="name">Adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">38</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -933,6 +960,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_base_rectification_deductions_pyme" model="account.tax.code.template">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">40</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_base_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -940,12 +968,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_pyme" model="account.tax.code.template">
|
||||
<field name="name">Total a deducir</field>
|
||||
<field name="code">45</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_corrientes_pyme" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores corrientes</field>
|
||||
<field name="code">29</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -995,6 +1025,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_inversion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en operaciones interiores con bienes inversión</field>
|
||||
<field name="code">31</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1057,6 +1088,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_importacion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes corrientes</field>
|
||||
<field name="code">33</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1077,6 +1109,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_importacion_inversion_pyme" model="account.tax.code.template">
|
||||
<field name="name">Por cuotas soportadas en las importaciones de bienes de inversión</field>
|
||||
<field name="code">35</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1097,6 +1130,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_intracomunitario_pyme" model="account.tax.code.template">
|
||||
<field name="name">En adquisiciones intracomunitarios de bienes y servicios corrientes</field>
|
||||
<field name="code">37</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1117,6 +1151,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_intracomunitario_inv_pyme" model="account.tax.code.template">
|
||||
<field name="name">En adquisiciones intracomunitario de bienes de inversión</field>
|
||||
<field name="code">39</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1137,24 +1172,28 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_deducible_tax_rectification_deductions_pyme" model="account.tax.code.template">
|
||||
<field name="name">Rectificación de deducciones</field>
|
||||
<field name="code">41</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_reagp_pyme" model="account.tax.code.template">
|
||||
<field name="name">Compensaciones Reǵimen Especial A.G y P.</field>
|
||||
<field name="code">42</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_regularization_inv_pyme" model="account.tax.code.template">
|
||||
<field name="name">Regularización bienes de inversión</field>
|
||||
<field name="code">43</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_iva_deducible_tax_regularization_prorrata_pyme" model="account.tax.code.template">
|
||||
<field name="name">Regularización por aplicación del porcentaje definitio de prorrata</field>
|
||||
<field name="code">44</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_deducible_tax_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1162,6 +1201,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_rep_intracomunitario_pyme" model="account.tax.code.template">
|
||||
<field name="name">Entregas intracomunitarias de bienes y servicios</field>
|
||||
<field name="code">59</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1198,6 +1238,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_exportaciones_pyme" model="account.tax.code.template">
|
||||
<field name="name">Exportaciones y operaciones asimiladas</field>
|
||||
<field name="code">60</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1218,6 +1259,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_iva_no_sujetas_pyme" model="account.tax.code.template">
|
||||
<field name="name">Operaciones no sujetas o con inversión del sujeto pasivo que originn derecho a deducción</field>
|
||||
<field name="code">61</field>
|
||||
<field name="aeat_report">303</field>
|
||||
<field name="parent" ref="vat_code_iva_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1231,6 +1273,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Importe percepeciones actividades economicas</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase_pyme"/>
|
||||
<field name="code">08</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_purchase_base-irpf_1_purchase-invoice_pyme" model="account.tax.code.line.template">
|
||||
@@ -1293,6 +1336,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record id="vat_code_irpf_purchase_tax_pyme" model="account.tax.code.template">
|
||||
<field name="name">Importe retenciones actividades economicas</field>
|
||||
<field name="code">09</field>
|
||||
<field name="aeat_report">111</field>
|
||||
<field name="parent" ref="vat_code_irpf_purchase_pyme"/>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
@@ -1362,6 +1406,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Base de las retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent_pyme"/>
|
||||
<field name="code">02</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_19_purchase_rent_base-irpf_19_purchase_rent-invoice_pyme" model="account.tax.code.line.template">
|
||||
@@ -1382,6 +1427,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="name">Retenciones e ingresos a cuenta</field>
|
||||
<field name="parent" ref="vat_code_irpf_19_purchase_rent_pyme"/>
|
||||
<field name="code">03</field>
|
||||
<field name="aeat_report">115</field>
|
||||
<field name="account" ref="pgc_0_pyme"/>
|
||||
</record>
|
||||
<record id="vat_code_irpf_19_purchase_rent_tax-irpf_19_purchase_rent-invoice_pyme" model="account.tax.code.line.template">
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<T11102018010000><AUX> </AUX><T11101000> IB01000009DUNDER MIFFLIN 201801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000001000000000000000001500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015000000000000000000000000000000001500 </T11101000></T11102018010000>
|
||||
@@ -0,0 +1 @@
|
||||
<T11502018010000><AUX> </AUX><T11501000> IB01000009DUNDER MIFFLIN 20180100000000000000000000000000000000000000000000000000000000000000000000000000000000000 </T11501000></T11502018010000>
|
||||
@@ -0,0 +1 @@
|
||||
<T30302018010000><AUX> </AUX><T30301000> IB01000009DUNDER MIFFLIN 2018012322 222200000000000000000004000000000000000000000000000000000000010000000000000000000000000000000020000021000000000000000420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000420000000000000010000000000000000021000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000210000000000000002100022 </T30301000><T30303000>00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000210010000000000000000000002100000000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000002100 0 0 0 0 0 0 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 </T30303000></T30302018010000>
|
||||
@@ -0,0 +1,181 @@
|
||||
=============================
|
||||
Account ES Reporting Scenario
|
||||
=============================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> import datetime
|
||||
>>> from decimal import Decimal
|
||||
>>> from proteus import Model, Wizard
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
>>> from trytond.tools import file_open
|
||||
>>> from trytond.modules.company.tests.tools import create_company, \
|
||||
... get_company
|
||||
>>> from trytond.modules.account.tests.tools import create_fiscalyear
|
||||
>>> from trytond.modules.account_invoice.tests.tools import \
|
||||
... set_fiscalyear_invoice_sequences
|
||||
>>> today = datetime.date.today()
|
||||
|
||||
Install account_es::
|
||||
|
||||
>>> config = activate_modules('account_es')
|
||||
|
||||
Create company::
|
||||
|
||||
>>> _ = create_company()
|
||||
>>> company = get_company()
|
||||
>>> tax_identifier = company.party.identifiers.new()
|
||||
>>> tax_identifier.type = 'eu_vat'
|
||||
>>> tax_identifier.code = 'ESB01000009'
|
||||
>>> company.party.save()
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = set_fiscalyear_invoice_sequences(
|
||||
... create_fiscalyear(company, datetime.date(2018, 1, 1)))
|
||||
>>> fiscalyear.click('create_period')
|
||||
>>> period = fiscalyear.periods[0]
|
||||
|
||||
Create chart of accounts::
|
||||
|
||||
>>> AccountTemplate = Model.get('account.account.template')
|
||||
>>> Account = Model.get('account.account')
|
||||
>>> ModelData = Model.get('ir.model.data')
|
||||
>>> data, = ModelData.find([
|
||||
... ('module', '=', 'account_es'),
|
||||
... ('fs_id', '=', 'pgc_0_pyme'),
|
||||
... ], limit=1)
|
||||
>>> account_template = AccountTemplate(data.db_id)
|
||||
>>> create_chart = Wizard('account.create_chart')
|
||||
>>> create_chart.execute('account')
|
||||
>>> create_chart.form.account_template = account_template
|
||||
>>> create_chart.form.company = company
|
||||
>>> create_chart.execute('create_account')
|
||||
>>> accounts = {}
|
||||
>>> for kind in ['receivable', 'payable', 'revenue', 'expense']:
|
||||
... accounts[kind], = Account.find([
|
||||
... ('kind', '=', kind),
|
||||
... ('company', '=', company.id),
|
||||
... ], limit=1)
|
||||
>>> expense = accounts['expense']
|
||||
>>> revenue = accounts['revenue']
|
||||
>>> create_chart.form.account_receivable = accounts['receivable']
|
||||
>>> create_chart.form.account_payable = accounts['payable']
|
||||
>>> create_chart.execute('create_properties')
|
||||
|
||||
Create parties::
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> TaxRule = Model.get('account.tax.rule')
|
||||
>>> party = Party(name='Party')
|
||||
>>> party.save()
|
||||
>>> tax_rule, = TaxRule.find([
|
||||
... ('company', '=', company.id),
|
||||
... ('kind', '=', 'purchase'),
|
||||
... ('name', '=', 'Retención IRPF 15%'),
|
||||
... ])
|
||||
>>> supplier = Party(name='Supplier')
|
||||
>>> supplier.supplier_tax_rule = tax_rule
|
||||
>>> supplier.save()
|
||||
|
||||
Create account category::
|
||||
|
||||
>>> Tax = Model.get('account.tax')
|
||||
>>> customer_tax, = Tax.find([
|
||||
... ('company', '=', company.id),
|
||||
... ('name', '=', 'IVA 21%'),
|
||||
... ])
|
||||
>>> supplier_tax, = Tax.find([
|
||||
... ('company', '=', company.id),
|
||||
... ('name', '=', 'IVA 21% (operaciones corrientes)'),
|
||||
... ])
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_expense = expense
|
||||
>>> account_category.account_revenue = revenue
|
||||
>>> account_category.customer_taxes.append(customer_tax)
|
||||
>>> account_category.supplier_taxes.append(supplier_tax)
|
||||
>>> account_category.save()
|
||||
|
||||
Create product::
|
||||
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'service'
|
||||
>>> template.list_price = Decimal('40')
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
Create invoices::
|
||||
|
||||
>>> Invoice = Model.get('account.invoice')
|
||||
>>> invoice = Invoice()
|
||||
>>> invoice.party = party
|
||||
>>> invoice.invoice_date = period.start_date
|
||||
>>> line = invoice.lines.new()
|
||||
>>> line.product = product
|
||||
>>> line.quantity = 5
|
||||
>>> line.unit_price = Decimal('40')
|
||||
>>> invoice.click('post')
|
||||
>>> invoice.total_amount
|
||||
Decimal('242.00')
|
||||
>>> invoice = Invoice()
|
||||
>>> invoice.type = 'in'
|
||||
>>> invoice.party = supplier
|
||||
>>> invoice.invoice_date = period.start_date
|
||||
>>> line = invoice.lines.new()
|
||||
>>> line.product = product
|
||||
>>> line.quantity = 5
|
||||
>>> line.unit_price = Decimal('20')
|
||||
>>> invoice.click('post')
|
||||
>>> invoice.total_amount
|
||||
Decimal('106.00')
|
||||
|
||||
Generate aeat reports::
|
||||
|
||||
>>> Period = Model.get('account.period')
|
||||
>>> aeat = Wizard('account.reporting.aeat')
|
||||
>>> aeat.form.report = '111'
|
||||
>>> aeat.form.periods.append(Period(period.id))
|
||||
>>> aeat.execute('choice')
|
||||
>>> extension, content, _, name = aeat.actions[0]
|
||||
>>> extension
|
||||
'txt'
|
||||
>>> with file_open('account_es/tests/111.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 111'
|
||||
|
||||
>>> aeat = Wizard('account.reporting.aeat')
|
||||
>>> aeat.form.report = '115'
|
||||
>>> period = Period(period.id)
|
||||
>>> aeat.form.periods.append(Period(period.id))
|
||||
>>> aeat.execute('choice')
|
||||
>>> extension, content, _, name = aeat.actions[0]
|
||||
>>> extension
|
||||
'txt'
|
||||
>>> with file_open('account_es/tests/115.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 115'
|
||||
|
||||
>>> aeat = Wizard('account.reporting.aeat')
|
||||
>>> aeat.form.report = '303'
|
||||
>>> aeat.form.periods.append(Period(period.id))
|
||||
>>> aeat.execute('choice')
|
||||
>>> extension, content, _, name = aeat.actions[0]
|
||||
>>> extension
|
||||
'txt'
|
||||
>>> with file_open('account_es/tests/303.txt') as f:
|
||||
... content == f.read()
|
||||
True
|
||||
>>> name
|
||||
'AEAT Model 303'
|
||||
@@ -1,8 +1,12 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import unittest
|
||||
import doctest
|
||||
|
||||
import trytond.tests.test_tryton
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import doctest_teardown
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
|
||||
|
||||
class AccountTestCase(ModuleTestCase):
|
||||
@@ -14,4 +18,8 @@ def suite():
|
||||
suite = trytond.tests.test_tryton.suite()
|
||||
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
|
||||
AccountTestCase))
|
||||
suite.addTests(doctest.DocFileSuite('scenario_reporting.rst',
|
||||
tearDown=doctest_teardown, encoding='utf-8',
|
||||
checker=doctest_checker,
|
||||
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
|
||||
return suite
|
||||
@@ -10,3 +10,5 @@ xml:
|
||||
tax_normal.xml
|
||||
account_pyme.xml
|
||||
tax_pyme.xml
|
||||
view.xml
|
||||
reporting_tax.xml
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="tax_code_template_view_form">
|
||||
<field name="model">account.tax.code.template</field>
|
||||
<field name="inherit" ref="account.tax_code_template_view_form"/>
|
||||
<field name="name">tax_code_template_form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="tax_code_view_form">
|
||||
<field name="model">account.tax.code</field>
|
||||
<field name="inherit" ref="account.tax_code_view_form"/>
|
||||
<field name="name">tax_code_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form col="2">
|
||||
<label name="report"/>
|
||||
<field name="report"/>
|
||||
<field name="periods" colspan="2"/>
|
||||
</form>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='parent']" position="after">
|
||||
<label name="aeat_report"/>
|
||||
<field name="aeat_report"/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/field[@name='parent']" position="after">
|
||||
<label name="aeat_report"/>
|
||||
<field name="aeat_report"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in new issue
Block a user