Merge lp:~andres-calle/openerp-ecuador/6.0 into lp:openerp-ecuador
- 6.0
- Merge into ecua_contabilidad61
Proposed by
Andres Calle (TRESCLOUD)
Status: | Rejected |
---|---|
Rejected by: | Christopher Ormaza - (Ecuadorenlinea.net) |
Proposed branch: | lp:~andres-calle/openerp-ecuador/6.0 |
Merge into: | lp:openerp-ecuador |
Diff against target: |
59424 lines (has conflicts)
Conflict adding file ecua_account. Moved existing file to ecua_account.moved. Conflict adding file ecua_account_anglo_saxon. Moved existing file to ecua_account_anglo_saxon.moved. Conflict adding file ecua_anexos_ats. Moved existing file to ecua_anexos_ats.moved. Conflict adding file ecua_anexos_reoc. Moved existing file to ecua_anexos_reoc.moved. Conflict adding file ecua_caja_chica. Moved existing file to ecua_caja_chica.moved. Conflict adding file ecua_inventarios. Moved existing file to ecua_inventarios.moved. Conflict adding file ecua_pagos. Moved existing file to ecua_pagos.moved. Conflict adding file ecua_posicion_fiscal. Moved existing file to ecua_posicion_fiscal.moved. Conflict adding file ecua_sequence. Moved existing file to ecua_sequence.moved. Conflict adding file ecua_states. Moved existing file to ecua_states.moved. Conflict adding file ecua_verifica_ruc_cedula. Moved existing file to ecua_verifica_ruc_cedula.moved. Conflict adding file ecua_verifica_ruc_cedula_importacion. Moved existing file to ecua_verifica_ruc_cedula_importacion.moved. Conflict adding file l10n_ec_niif_minimal. Moved existing file to l10n_ec_niif_minimal.moved. |
To merge this branch: | bzr merge lp:~andres-calle/openerp-ecuador/6.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Ormaza - (Ecuadorenlinea.net) | Disapprove | ||
Review via email: mp+162260@code.launchpad.net |
Commit message
Mejoras realizadas por TRESCLOUD, y modulos nuevos para cierre de caja, cheques, posiciones fiscales, otros.
Description of the change
To post a comment you must log in.
Revision history for this message
Christopher Ormaza - (Ecuadorenlinea.net) (chris-ormaza) wrote : | # |
review:
Disapprove
Unmerged revisions
- 4. By Andres Calle (TRESCLOUD)
-
Mejoras varias realizadas por TRESCLOUD, y agregado cheques, automatizacion de posiciones fiscales para clientes/
proveedores ecuatorianos, cierre de caja, otros - 3. By Christopher Ormaza - (Ecuadorenlinea.net)
-
Combinar
- 2. By Christopher Ormaza - (Ecuadorenlinea.net)
-
Mejoras Varias
- 1. By Christopher Ormaza - (Ecuadorenlinea.net)
-
Inicio de Repositorio
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'README.md' |
2 | --- README.md 1970-01-01 00:00:00 +0000 |
3 | +++ README.md 2013-05-02 22:04:32 +0000 |
4 | @@ -0,0 +1,9 @@ |
5 | +OpenERP-EC-NIIF-PYMES 6.0 |
6 | +========================= |
7 | +Branch 6.0 - Contabilidad y RRHH Niif Pymes para OpenERP 6.0 |
8 | + |
9 | +Incluye para la versión 6.0: |
10 | + |
11 | +- Modulos contables |
12 | +- Modulos de recursos humanos |
13 | +- Otros modulos relacionados a PYMES |
14 | \ No newline at end of file |
15 | |
16 | === added directory 'account_fiscal_position_country' |
17 | === added file 'account_fiscal_position_country/AUTHORS.txt' |
18 | --- account_fiscal_position_country/AUTHORS.txt 1970-01-01 00:00:00 +0000 |
19 | +++ account_fiscal_position_country/AUTHORS.txt 2013-05-02 22:04:32 +0000 |
20 | @@ -0,0 +1,1 @@ |
21 | +Leonardo Pistone <leonardo.pistone@agilebg.com> |
22 | |
23 | === added file 'account_fiscal_position_country/__init__.py' |
24 | --- account_fiscal_position_country/__init__.py 1970-01-01 00:00:00 +0000 |
25 | +++ account_fiscal_position_country/__init__.py 2013-05-02 22:04:32 +0000 |
26 | @@ -0,0 +1,27 @@ |
27 | +# -*- coding: utf-8 -*- |
28 | +############################################################################## |
29 | +# |
30 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
31 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
32 | +# All Rights Reserved |
33 | +# |
34 | +# This program is free software: you can redistribute it and/or modify |
35 | +# it under the terms of the GNU Affero General Public License as published |
36 | +# by the Free Software Foundation, either version 3 of the License, or |
37 | +# (at your option) any later version. |
38 | +# |
39 | +# This program is distributed in the hope that it will be useful, |
40 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
41 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
42 | +# GNU General Public License for more details. |
43 | +# |
44 | +# You should have received a copy of the GNU Affero General Public License |
45 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
46 | +# |
47 | +############################################################################## |
48 | + |
49 | +import country |
50 | +import account |
51 | +import invoice |
52 | + |
53 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
54 | |
55 | === added file 'account_fiscal_position_country/__openerp__.py' |
56 | --- account_fiscal_position_country/__openerp__.py 1970-01-01 00:00:00 +0000 |
57 | +++ account_fiscal_position_country/__openerp__.py 2013-05-02 22:04:32 +0000 |
58 | @@ -0,0 +1,50 @@ |
59 | +# -*- coding: utf-8 -*- |
60 | +############################################################################## |
61 | +# |
62 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
63 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
64 | +# All Rights Reserved |
65 | +# |
66 | +# This program is free software: you can redistribute it and/or modify |
67 | +# it under the terms of the GNU Affero General Public License as published |
68 | +# by the Free Software Foundation, either version 3 of the License, or |
69 | +# (at your option) any later version. |
70 | +# |
71 | +# This program is distributed in the hope that it will be useful, |
72 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
73 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
74 | +# GNU General Public License for more details. |
75 | +# |
76 | +# You should have received a copy of the GNU Affero General Public License |
77 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
78 | +# |
79 | +############################################################################## |
80 | + |
81 | +{ |
82 | + 'name': 'Fiscal Position by country', |
83 | + 'version': '0.2', |
84 | + 'category': 'Generic Modules/Accounting', |
85 | + 'description': """A rule to select automatically the fiscal position based on the country |
86 | + In the configuration of the country, choose a default fiscal position for it. |
87 | + When selecting a partner in an invoice, if the fiscal position for the partner is not set, the one |
88 | + from the country will be used. |
89 | + |
90 | + For more info: http://planet.domsense.com/en/2011/12/account_fiscal_position_country/""", |
91 | + 'author': 'Agile Business Group & Domsense', |
92 | + 'website': 'http://www.agilebg.com', |
93 | + 'license': 'AGPL-3', |
94 | + |
95 | + 'depends': ['base','account'], |
96 | + 'init_xml': [], |
97 | + 'update_xml': |
98 | + [ |
99 | + 'account_view.xml', |
100 | + 'account_invoice_view.xml', |
101 | + 'country_view.xml', |
102 | + ], |
103 | + 'demo_xml': [], |
104 | + "active": False, |
105 | + |
106 | + 'installable': True, |
107 | +} |
108 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
109 | |
110 | === added file 'account_fiscal_position_country/account.py' |
111 | --- account_fiscal_position_country/account.py 1970-01-01 00:00:00 +0000 |
112 | +++ account_fiscal_position_country/account.py 2013-05-02 22:04:32 +0000 |
113 | @@ -0,0 +1,30 @@ |
114 | +# -*- coding: utf-8 -*- |
115 | +############################################################################## |
116 | +# |
117 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
118 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
119 | +# All Rights Reserved |
120 | +# |
121 | +# This program is free software: you can redistribute it and/or modify |
122 | +# it under the terms of the GNU Affero General Public License as published |
123 | +# by the Free Software Foundation, either version 3 of the License, or |
124 | +# (at your option) any later version. |
125 | +# |
126 | +# This program is distributed in the hope that it will be useful, |
127 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
128 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
129 | +# GNU General Public License for more details. |
130 | +# |
131 | +# You should have received a copy of the GNU Affero General Public License |
132 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
133 | +# |
134 | +############################################################################## |
135 | + |
136 | +from osv import fields, osv |
137 | + |
138 | +class account_fiscal_position(osv.osv): |
139 | + _inherit = "account.fiscal.position" |
140 | + _columns = { |
141 | + 'country_ids': fields.one2many('res.country', 'property_account_position', 'Countries', readonly=True), |
142 | + } |
143 | +account_fiscal_position() |
144 | |
145 | === added file 'account_fiscal_position_country/account_invoice_view.xml' |
146 | --- account_fiscal_position_country/account_invoice_view.xml 1970-01-01 00:00:00 +0000 |
147 | +++ account_fiscal_position_country/account_invoice_view.xml 2013-05-02 22:04:32 +0000 |
148 | @@ -0,0 +1,28 @@ |
149 | +<?xml version="1.0" encoding="UTF-8"?> |
150 | +<openerp> |
151 | + <data> |
152 | + |
153 | + <record id="invoice_form_position_country" model="ir.ui.view"> |
154 | + <field name="name">account.invoice.form.position.country</field> |
155 | + <field name="model">account.invoice</field> |
156 | + <field name="inherit_id" ref="account.invoice_form"/> |
157 | + <field name="arch" type="xml"> |
158 | + <field name="partner_id" position="replace"> |
159 | + <field string="Customer" name="partner_id" on_change="onchange_partner_id_fiscal_position(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" groups="base.group_user" context="{'search_default_customer': 1}"/> |
160 | + </field> |
161 | + </field> |
162 | + </record> |
163 | + |
164 | + <record id="invoice_supplier_form_position_country" model="ir.ui.view"> |
165 | + <field name="name">account.invoice.supplier.form.position.country</field> |
166 | + <field name="model">account.invoice</field> |
167 | + <field name="inherit_id" ref="account.invoice_supplier_form"/> |
168 | + <field name="arch" type="xml"> |
169 | + <field name="partner_id" position="replace"> |
170 | + <field string="Supplier" name="partner_id" on_change="onchange_partner_id_fiscal_position(type,partner_id,date_invoice,payment_term, partner_bank_id,company_id)" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"/> |
171 | + </field> |
172 | + </field> |
173 | + </record> |
174 | + |
175 | + </data> |
176 | +</openerp> |
177 | |
178 | === added file 'account_fiscal_position_country/account_view.xml' |
179 | --- account_fiscal_position_country/account_view.xml 1970-01-01 00:00:00 +0000 |
180 | +++ account_fiscal_position_country/account_view.xml 2013-05-02 22:04:32 +0000 |
181 | @@ -0,0 +1,18 @@ |
182 | +<?xml version="1.0" encoding="UTF-8"?> |
183 | +<openerp> |
184 | + <data> |
185 | + |
186 | + <record id="view_account_position_form_country" model="ir.ui.view"> |
187 | + <field name="name">account.fiscal.position.form.country</field> |
188 | + <field name="model">account.fiscal.position</field> |
189 | + <field name="inherit_id" ref="account.view_account_position_form"/> |
190 | + <field name="type">form</field> |
191 | + <field name="arch" type="xml"> |
192 | + <field name="note" position="after"> |
193 | + <field name="country_ids" colspan="4" nolabel="1"/> |
194 | + </field> |
195 | + </field> |
196 | + </record> |
197 | + |
198 | + </data> |
199 | +</openerp> |
200 | |
201 | === added file 'account_fiscal_position_country/country.py' |
202 | --- account_fiscal_position_country/country.py 1970-01-01 00:00:00 +0000 |
203 | +++ account_fiscal_position_country/country.py 2013-05-02 22:04:32 +0000 |
204 | @@ -0,0 +1,39 @@ |
205 | +# -*- coding: utf-8 -*- |
206 | +############################################################################## |
207 | +# |
208 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
209 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
210 | +# All Rights Reserved |
211 | +# |
212 | +# This program is free software: you can redistribute it and/or modify |
213 | +# it under the terms of the GNU Affero General Public License as published |
214 | +# by the Free Software Foundation, either version 3 of the License, or |
215 | +# (at your option) any later version. |
216 | +# |
217 | +# This program is distributed in the hope that it will be useful, |
218 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
219 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
220 | +# GNU General Public License for more details. |
221 | +# |
222 | +# You should have received a copy of the GNU Affero General Public License |
223 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
224 | +# |
225 | +############################################################################## |
226 | + |
227 | +from osv import fields, osv |
228 | + |
229 | +class Country(osv.osv): |
230 | + _inherit = 'res.country' |
231 | + _columns = { |
232 | + # 'fiscal_position_id': fields.many2one('account.fiscal.position','Default fiscal position'), |
233 | + 'property_account_position': fields.property( |
234 | + 'account.fiscal.position', |
235 | + type='many2one', |
236 | + relation='account.fiscal.position', |
237 | + string="Default Fiscal Position", |
238 | + method=True, |
239 | + view_load=True, |
240 | + help="The fiscal position will determine taxes and the accounts used for the country, if not set specifically elsewere.", |
241 | + ), |
242 | + } |
243 | +Country() |
244 | |
245 | === added file 'account_fiscal_position_country/country_view.xml' |
246 | --- account_fiscal_position_country/country_view.xml 1970-01-01 00:00:00 +0000 |
247 | +++ account_fiscal_position_country/country_view.xml 2013-05-02 22:04:32 +0000 |
248 | @@ -0,0 +1,17 @@ |
249 | +<?xml version="1.0" encoding="UTF-8"?> |
250 | +<openerp> |
251 | + <data> |
252 | + |
253 | + <record model="ir.ui.view" id="view_country_fiscal_position_form"> |
254 | + <field name="name">country.fiscal.position.form</field> |
255 | + <field name="model">res.country</field> |
256 | + <field name="inherit_id" ref="base.view_country_form"/> |
257 | + <field name="arch" type="xml"> |
258 | + <field name="code" position="after"> |
259 | + <field name="property_account_position" widget="selection"/> |
260 | + </field> |
261 | + </field> |
262 | + </record> |
263 | + |
264 | + </data> |
265 | +</openerp> |
266 | |
267 | === added file 'account_fiscal_position_country/invoice.py' |
268 | --- account_fiscal_position_country/invoice.py 1970-01-01 00:00:00 +0000 |
269 | +++ account_fiscal_position_country/invoice.py 2013-05-02 22:04:32 +0000 |
270 | @@ -0,0 +1,43 @@ |
271 | +# -*- coding: utf-8 -*- |
272 | +############################################################################## |
273 | +# |
274 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
275 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
276 | +# All Rights Reserved |
277 | +# |
278 | +# This program is free software: you can redistribute it and/or modify |
279 | +# it under the terms of the GNU Affero General Public License as published |
280 | +# by the Free Software Foundation, either version 3 of the License, or |
281 | +# (at your option) any later version. |
282 | +# |
283 | +# This program is distributed in the hope that it will be useful, |
284 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
285 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
286 | +# GNU General Public License for more details. |
287 | +# |
288 | +# You should have received a copy of the GNU Affero General Public License |
289 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
290 | +# |
291 | +############################################################################## |
292 | + |
293 | +from osv import fields, osv |
294 | + |
295 | +class account_invoice(osv.osv): |
296 | + _inherit = "account.invoice" |
297 | + |
298 | + def onchange_partner_id_fiscal_position(self, cr, uid, ids, type, partner_id,\ |
299 | + date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): |
300 | + |
301 | + result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id,\ |
302 | + date_invoice, payment_term, partner_bank_id, company_id) |
303 | + |
304 | + if not result['value']['fiscal_position']: |
305 | + if partner_id: |
306 | + partner = self.pool.get('res.partner').browse(cr, uid, partner_id) |
307 | + addr = self.pool.get('res.partner').address_get(cr, uid, [partner_id]) |
308 | + address = self.pool.get('res.partner.address').browse(cr, uid, addr['default']) |
309 | + result['value']['fiscal_position'] = address.country_id and address.country_id.property_account_position and address.country_id.property_account_position.id or False |
310 | + |
311 | + return result |
312 | + |
313 | +account_invoice() |
314 | |
315 | === added directory 'account_fiscal_position_country_sale' |
316 | === added file 'account_fiscal_position_country_sale/AUTHORS.txt' |
317 | --- account_fiscal_position_country_sale/AUTHORS.txt 1970-01-01 00:00:00 +0000 |
318 | +++ account_fiscal_position_country_sale/AUTHORS.txt 2013-05-02 22:04:32 +0000 |
319 | @@ -0,0 +1,1 @@ |
320 | +Leonardo Pistone <leonardo.pistone@agilebg.com> |
321 | |
322 | === added file 'account_fiscal_position_country_sale/__init__.py' |
323 | --- account_fiscal_position_country_sale/__init__.py 1970-01-01 00:00:00 +0000 |
324 | +++ account_fiscal_position_country_sale/__init__.py 2013-05-02 22:04:32 +0000 |
325 | @@ -0,0 +1,25 @@ |
326 | +# -*- coding: utf-8 -*- |
327 | +############################################################################## |
328 | +# |
329 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
330 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
331 | +# All Rights Reserved |
332 | +# |
333 | +# This program is free software: you can redistribute it and/or modify |
334 | +# it under the terms of the GNU Affero General Public License as published |
335 | +# by the Free Software Foundation, either version 3 of the License, or |
336 | +# (at your option) any later version. |
337 | +# |
338 | +# This program is distributed in the hope that it will be useful, |
339 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
340 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
341 | +# GNU General Public License for more details. |
342 | +# |
343 | +# You should have received a copy of the GNU Affero General Public License |
344 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
345 | +# |
346 | +############################################################################## |
347 | + |
348 | +import sale |
349 | + |
350 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
351 | |
352 | === added file 'account_fiscal_position_country_sale/__openerp__.py' |
353 | --- account_fiscal_position_country_sale/__openerp__.py 1970-01-01 00:00:00 +0000 |
354 | +++ account_fiscal_position_country_sale/__openerp__.py 2013-05-02 22:04:32 +0000 |
355 | @@ -0,0 +1,46 @@ |
356 | +# -*- coding: utf-8 -*- |
357 | +############################################################################## |
358 | +# |
359 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
360 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
361 | +# All Rights Reserved |
362 | +# |
363 | +# This program is free software: you can redistribute it and/or modify |
364 | +# it under the terms of the GNU Affero General Public License as published |
365 | +# by the Free Software Foundation, either version 3 of the License, or |
366 | +# (at your option) any later version. |
367 | +# |
368 | +# This program is distributed in the hope that it will be useful, |
369 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
370 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
371 | +# GNU General Public License for more details. |
372 | +# |
373 | +# You should have received a copy of the GNU Affero General Public License |
374 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
375 | +# |
376 | +############################################################################## |
377 | + |
378 | +{ |
379 | + 'name': 'Fiscal Position by country, sales', |
380 | + 'version': '0.2', |
381 | + 'category': 'Generic Modules/Accounting', |
382 | + 'description': """A rule to select automatically the fiscal position in a sale order |
383 | + This module extends the account_fiscal_position_country_sale to sale orders. The modules are |
384 | + kept separate to reduce dependencies |
385 | + """, |
386 | + 'author': 'Agile Business Group & Domsense', |
387 | + 'website': 'http://www.agilebg.com', |
388 | + 'license': 'AGPL-3', |
389 | + |
390 | + 'depends': ['account_fiscal_position_country','sale'], |
391 | + 'init_xml': [], |
392 | + 'update_xml': |
393 | + [ |
394 | + 'sale_view.xml', |
395 | + ], |
396 | + 'demo_xml': [], |
397 | + 'active': False, |
398 | + |
399 | + 'installable': True, |
400 | +} |
401 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
402 | |
403 | === added file 'account_fiscal_position_country_sale/sale.py' |
404 | --- account_fiscal_position_country_sale/sale.py 1970-01-01 00:00:00 +0000 |
405 | +++ account_fiscal_position_country_sale/sale.py 2013-05-02 22:04:32 +0000 |
406 | @@ -0,0 +1,40 @@ |
407 | +# -*- coding: utf-8 -*- |
408 | +############################################################################## |
409 | +# |
410 | +# Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>) |
411 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
412 | +# All Rights Reserved |
413 | +# |
414 | +# This program is free software: you can redistribute it and/or modify |
415 | +# it under the terms of the GNU Affero General Public License as published |
416 | +# by the Free Software Foundation, either version 3 of the License, or |
417 | +# (at your option) any later version. |
418 | +# |
419 | +# This program is distributed in the hope that it will be useful, |
420 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
421 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
422 | +# GNU General Public License for more details. |
423 | +# |
424 | +# You should have received a copy of the GNU Affero General Public License |
425 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
426 | +# |
427 | +############################################################################## |
428 | + |
429 | +from osv import fields, osv |
430 | + |
431 | +class sale_order(osv.osv): |
432 | + _inherit = "sale.order" |
433 | + |
434 | + def onchange_partner_id_fiscal_position(self, cr, uid, ids, partner_id): |
435 | + result = super(sale_order, self).onchange_partner_id(cr, uid, ids, partner_id) |
436 | + |
437 | + if not result['value']['fiscal_position']: |
438 | + if partner_id: |
439 | + partner = self.pool.get('res.partner').browse(cr, uid, partner_id) |
440 | + addr = self.pool.get('res.partner').address_get(cr, uid, [partner_id]) |
441 | + address = self.pool.get('res.partner.address').browse(cr, uid, addr['default']) |
442 | + result['value']['fiscal_position'] = address.country_id and address.country_id.property_account_position and address.country_id.property_account_position.id or False |
443 | + |
444 | + return result |
445 | + |
446 | +sale_order() |
447 | |
448 | === added file 'account_fiscal_position_country_sale/sale_view.xml' |
449 | --- account_fiscal_position_country_sale/sale_view.xml 1970-01-01 00:00:00 +0000 |
450 | +++ account_fiscal_position_country_sale/sale_view.xml 2013-05-02 22:04:32 +0000 |
451 | @@ -0,0 +1,19 @@ |
452 | +<?xml version="1.0" encoding="utf-8"?> |
453 | +<openerp> |
454 | + |
455 | + <data> |
456 | + |
457 | + <record id="view_order_form_position_country" model="ir.ui.view"> |
458 | + <field name="name">view.order.form.position.country</field> |
459 | + <field name="model">sale.order</field> |
460 | + <field name="inherit_id" ref="sale.view_order_form"/> |
461 | + <field name="arch" type="xml"> |
462 | + <field name="partner_id" position="replace"> |
463 | + <field name="partner_id" on_change="onchange_partner_id_fiscal_position(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1}" required="1"/> |
464 | + </field> |
465 | + </field> |
466 | + </record> |
467 | + |
468 | + </data> |
469 | + |
470 | +</openerp> |
471 | |
472 | === added directory 'ecua_account' |
473 | === renamed directory 'ecua_account' => 'ecua_account.moved' |
474 | === added file 'ecua_account/__init__.py' |
475 | --- ecua_account/__init__.py 1970-01-01 00:00:00 +0000 |
476 | +++ ecua_account/__init__.py 2013-05-02 22:04:32 +0000 |
477 | @@ -0,0 +1,27 @@ |
478 | + |
479 | +# -*- encoding: utf-8 -*- |
480 | +######################################################################## |
481 | +# |
482 | +# @authors: Christopher |
483 | +# Copyright (C) 2012 Ecuadorenlinea.net |
484 | +# |
485 | +#This program is free software: you can redistribute it and/or modify |
486 | +#it under the terms of the GNU General Public License as published by |
487 | +#the Free Software Foundation, either version 3 of the License, or |
488 | +#(at your option) any later version. |
489 | +# |
490 | +# This module is GPLv3 or newer and incompatible |
491 | +# with OpenERP SA "AGPL + Private Use License"! |
492 | +# |
493 | +#This program is distributed in the hope that it will be useful, |
494 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
495 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
496 | +#GNU General Public License for more details. |
497 | +# |
498 | +#You should have received a copy of the GNU General Public License |
499 | +#along with this program. If not, see http://www.gnu.org/licenses. |
500 | +######################################################################## |
501 | + |
502 | +import object |
503 | +import wizard |
504 | +import report |
505 | \ No newline at end of file |
506 | |
507 | === added file 'ecua_account/__openerp__.py' |
508 | --- ecua_account/__openerp__.py 1970-01-01 00:00:00 +0000 |
509 | +++ ecua_account/__openerp__.py 2013-05-02 22:04:32 +0000 |
510 | @@ -0,0 +1,53 @@ |
511 | + |
512 | +# -*- encoding: utf-8 -*- |
513 | +######################################################################## |
514 | +# |
515 | +# @authors: Christopher Ormaza |
516 | +# Copyright (C) 2012 Ecuadorenlinea.net |
517 | +# |
518 | +#This program is free software: you can redistribute it and/or modify |
519 | +#it under the terms of the GNU General Public License as published by |
520 | +#the Free Software Foundation, either version 3 of the License, or |
521 | +#(at your option) any later version. |
522 | +# |
523 | +# This module is GPLv3 or newer and incompatible |
524 | +# with OpenERP SA "AGPL + Private Use License"! |
525 | +# |
526 | +#This program is distributed in the hope that it will be useful, |
527 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
528 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
529 | +#GNU General Public License for more details. |
530 | +# |
531 | +#You should have received a copy of the GNU General Public License |
532 | +#along with this program. If not, see http://www.gnu.org/licenses. |
533 | +######################################################################## |
534 | + |
535 | +{ |
536 | + "name": "Ecuadorian Accounting", |
537 | + "version": "1.0", |
538 | + "depends": ["base", |
539 | + "account", |
540 | + "product", |
541 | + "stock", |
542 | + "account_voucher", |
543 | + "ecua_facturas_manual", |
544 | + "ecua_liquidacion_compras", |
545 | + "ecua_notas_credito_manual", |
546 | + "ecua_retenciones_manual", |
547 | + "ecua_facturas_ice_manual", |
548 | + ], |
549 | + "author": "Christopher Ormaza", |
550 | + "website": "http://openerpecuador.org", |
551 | + "category": "Account", |
552 | + "description": """ |
553 | + This module provide : |
554 | + |
555 | + """, |
556 | + "init_xml": [], |
557 | + 'update_xml': [ |
558 | + "data/data.xml", |
559 | + ], |
560 | + 'demo_xml': [], |
561 | + 'installable': True, |
562 | + 'active': False, |
563 | +} |
564 | \ No newline at end of file |
565 | |
566 | === added directory 'ecua_account/data' |
567 | === added file 'ecua_account/data/data.xml' |
568 | --- ecua_account/data/data.xml 1970-01-01 00:00:00 +0000 |
569 | +++ ecua_account/data/data.xml 2013-05-02 22:04:32 +0000 |
570 | @@ -0,0 +1,16 @@ |
571 | +<openerp> |
572 | + <data noupdate="1"> |
573 | + <record id="product.decimal_sale" model="decimal.precision"> |
574 | + <field name="name">Sale Price</field> |
575 | + <field name="digits">4</field> |
576 | + </record> |
577 | + <record id="product.decimal_purchase" model="decimal.precision"> |
578 | + <field name="name">Purchase Price</field> |
579 | + <field name="digits">4</field> |
580 | + </record> |
581 | + <record id="decimal_invoice_line" model="decimal.precision"> |
582 | + <field name="name">Invoice Line Price</field> |
583 | + <field name="digits">4</field> |
584 | + </record> |
585 | + </data> |
586 | +</openerp> |
587 | \ No newline at end of file |
588 | |
589 | === added directory 'ecua_account/i18n' |
590 | === added directory 'ecua_account/object' |
591 | === added file 'ecua_account/object/__init__.py' |
592 | --- ecua_account/object/__init__.py 1970-01-01 00:00:00 +0000 |
593 | +++ ecua_account/object/__init__.py 2013-05-02 22:04:32 +0000 |
594 | @@ -0,0 +1,28 @@ |
595 | + |
596 | +# -*- encoding: utf-8 -*- |
597 | +######################################################################## |
598 | +# |
599 | +# @authors: Christopher Ormaza |
600 | +# Copyright (C) 2012 Ecuadorenlinea.net |
601 | +# |
602 | +#This program is free software: you can redistribute it and/or modify |
603 | +#it under the terms of the GNU General Public License as published by |
604 | +#the Free Software Foundation, either version 3 of the License, or |
605 | +#(at your option) any later version. |
606 | +# |
607 | +# This module is GPLv3 or newer and incompatible |
608 | +# with OpenERP SA "AGPL + Private Use License"! |
609 | +# |
610 | +#This program is distributed in the hope that it will be useful, |
611 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
612 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
613 | +#GNU General Public License for more details. |
614 | +# |
615 | +#You should have received a copy of the GNU General Public License |
616 | +#along with this program. If not, see http://www.gnu.org/licenses. |
617 | +######################################################################## |
618 | + |
619 | +import move |
620 | +import move_line |
621 | +import invoice |
622 | +import voucher |
623 | \ No newline at end of file |
624 | |
625 | === added file 'ecua_account/object/invoice.py' |
626 | --- ecua_account/object/invoice.py 1970-01-01 00:00:00 +0000 |
627 | +++ ecua_account/object/invoice.py 2013-05-02 22:04:32 +0000 |
628 | @@ -0,0 +1,76 @@ |
629 | + |
630 | +# -*- encoding: utf-8 -*- |
631 | +######################################################################## |
632 | +# |
633 | +# @authors: Christopher Ormaza |
634 | +# Copyright (C) 2012 Ecuadorenlinea.net |
635 | +# |
636 | +#This program is free software: you can redistribute it and/or modify |
637 | +#it under the terms of the GNU General Public License as published by |
638 | +#the Free Software Foundation, either version 3 of the License, or |
639 | +#(at your option) any later version. |
640 | +# |
641 | +# This module is GPLv3 or newer and incompatible |
642 | +# with OpenERP SA "AGPL + Private Use License"! |
643 | +# |
644 | +#This program is distributed in the hope that it will be useful, |
645 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
646 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
647 | +#GNU General Public License for more details. |
648 | +# |
649 | +#You should have received a copy of the GNU General Public License |
650 | +#along with this program. If not, see http://www.gnu.org/licenses. |
651 | +######################################################################## |
652 | + |
653 | +from osv import osv |
654 | +from osv import fields |
655 | +import decimal_precision as dp |
656 | +from tools.translate import _ |
657 | + |
658 | +class account_invoice(osv.osv): |
659 | + ''' |
660 | + Open ERP Model |
661 | + ''' |
662 | + _inherit = 'account.invoice' |
663 | + |
664 | + _columns = { |
665 | + } |
666 | + |
667 | + def name_get(self, cr, uid, ids, context=None): |
668 | + if not ids: |
669 | + return [] |
670 | + types = { |
671 | + 'out_invoice': 'FACT-CLI: ', |
672 | + 'in_invoice': 'FACT-PROV: ', |
673 | + 'out_refund': 'NC-CLI: ', |
674 | + 'in_refund': 'NC-PROV: ', |
675 | + 'liquidation': 'LIQ-COMP: ', |
676 | + } |
677 | + res = [] |
678 | + for r in self.read(cr, uid, ids, ['type', 'number', 'invoice_number_out', 'invoice_number_in', 'number_credit_note_in', 'number_credit_note_out','number_liquidation','name', 'liquidation'], context, load='_classic_write'): |
679 | + name = r['number'] or types[r['type']] or '' |
680 | + if r['type'] == 'out_invoice': |
681 | + name = r['invoice_number_out'] or types[r['type']] or '' |
682 | + if r['type'] == 'in_invoice': |
683 | + name = r['invoice_number_in'] or types[r['type']] or '' |
684 | + if r['type'] == 'out_refund': |
685 | + name = r['number_credit_note_out'] or types[r['type']] or '' |
686 | + if r['type'] == 'in_refund': |
687 | + name = r['number_credit_note_in'] or types[r['type']] or '' |
688 | + if r['liquidation']: |
689 | + name = r['number_liquidation'] or types['liquidation'] or '' |
690 | + res.append((r['id'], name )) |
691 | + return res |
692 | + |
693 | +account_invoice() |
694 | + |
695 | +class account_invoice_line(osv.osv): |
696 | + ''' |
697 | + Open ERP Model |
698 | + ''' |
699 | + _inherit = 'account.invoice.line' |
700 | + |
701 | + _columns = { |
702 | + 'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Invoice Line Price')), |
703 | + } |
704 | +account_invoice_line() |
705 | \ No newline at end of file |
706 | |
707 | === added file 'ecua_account/object/move.py' |
708 | --- ecua_account/object/move.py 1970-01-01 00:00:00 +0000 |
709 | +++ ecua_account/object/move.py 2013-05-02 22:04:32 +0000 |
710 | @@ -0,0 +1,39 @@ |
711 | + |
712 | +# -*- encoding: utf-8 -*- |
713 | +######################################################################## |
714 | +# |
715 | +# @authors: Christopher Ormaza |
716 | +# Copyright (C) 2012 Ecuadorenlinea.net |
717 | +# |
718 | +#This program is free software: you can redistribute it and/or modify |
719 | +#it under the terms of the GNU General Public License as published by |
720 | +#the Free Software Foundation, either version 3 of the License, or |
721 | +#(at your option) any later version. |
722 | +# |
723 | +# This module is GPLv3 or newer and incompatible |
724 | +# with OpenERP SA "AGPL + Private Use License"! |
725 | +# |
726 | +#This program is distributed in the hope that it will be useful, |
727 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
728 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
729 | +#GNU General Public License for more details. |
730 | +# |
731 | +#You should have received a copy of the GNU General Public License |
732 | +#along with this program. If not, see http://www.gnu.org/licenses. |
733 | +######################################################################## |
734 | + |
735 | +from osv import osv |
736 | +from osv import fields |
737 | +import decimal_precision as dp |
738 | +from tools.translate import _ |
739 | + |
740 | +class account_move(osv.osv): |
741 | + ''' |
742 | + Open ERP Model |
743 | + ''' |
744 | + _inherit = 'account.move' |
745 | + |
746 | + _columns = { |
747 | + 'voucher_ids':fields.one2many('account.voucher', 'move_id', 'Vouchers', required=False), |
748 | + } |
749 | +account_move() |
750 | \ No newline at end of file |
751 | |
752 | === added file 'ecua_account/object/move_line.py' |
753 | --- ecua_account/object/move_line.py 1970-01-01 00:00:00 +0000 |
754 | +++ ecua_account/object/move_line.py 2013-05-02 22:04:32 +0000 |
755 | @@ -0,0 +1,69 @@ |
756 | + |
757 | +# -*- encoding: utf-8 -*- |
758 | +######################################################################## |
759 | +# |
760 | +# @authors: Christopher |
761 | +# Copyright (C) 2012 Ecuadorenlinea.net |
762 | +# |
763 | +#This program is free software: you can redistribute it and/or modify |
764 | +#it under the terms of the GNU General Public License as published by |
765 | +#the Free Software Foundation, either version 3 of the License, or |
766 | +#(at your option) any later version. |
767 | +# |
768 | +# This module is GPLv3 or newer and incompatible |
769 | +# with OpenERP SA "AGPL + Private Use License"! |
770 | +# |
771 | +#This program is distributed in the hope that it will be useful, |
772 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
773 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
774 | +#GNU General Public License for more details. |
775 | +# |
776 | +#You should have received a copy of the GNU General Public License |
777 | +#along with this program. If not, see http://www.gnu.org/licenses. |
778 | +######################################################################## |
779 | + |
780 | +from osv import osv |
781 | +from osv import fields |
782 | +import decimal_precision as dp |
783 | +from tools.translate import _ |
784 | + |
785 | +class account_move_line(osv.osv): |
786 | + |
787 | + _inherit = 'account.move.line' |
788 | + |
789 | + _columns = { |
790 | + |
791 | + } |
792 | + |
793 | + def name_get(self, cr, uid, ids, context=None): |
794 | + if not ids: |
795 | + return [] |
796 | + result = [] |
797 | + types = { |
798 | + 'out_invoice': 'FACT-CLI: ', |
799 | + 'in_invoice': 'FACT-PROV: ', |
800 | + 'out_refund': 'NC-CLI: ', |
801 | + 'in_refund': 'NC-PROV: ', |
802 | + 'liquidation': 'LIQ-COMP: ', |
803 | + } |
804 | + for line in self.browse(cr, uid, ids, context=context): |
805 | + name = line.move_id.name |
806 | + if line.ref: |
807 | + name = (line.move_id.name or '') + ' ('+line.ref+')' |
808 | + if line.invoice: |
809 | + type = line.invoice.type |
810 | + number = '' |
811 | + if type == 'out_invoice': |
812 | + number = line.invoice.invoice_number_out or '' |
813 | + if type == 'in_invoice': |
814 | + number = line.invoice.invoice_number_in or '' |
815 | + if type == 'out_refund': |
816 | + number = line.invoice.number_credit_note_out or '' |
817 | + if type == 'in_refund': |
818 | + number = line.invoice.number_credit_note_in or '' |
819 | + if line.invoice.liquidation: |
820 | + number = line.invoice.number_liquidation or '' |
821 | + name = types[type] + number + (line.ref and ' ('+line.ref+')' or '') |
822 | + result.append((line.id, name)) |
823 | + return result |
824 | +account_move_line() |
825 | \ No newline at end of file |
826 | |
827 | === added file 'ecua_account/object/voucher.py' |
828 | --- ecua_account/object/voucher.py 1970-01-01 00:00:00 +0000 |
829 | +++ ecua_account/object/voucher.py 2013-05-02 22:04:32 +0000 |
830 | @@ -0,0 +1,38 @@ |
831 | + |
832 | +# -*- encoding: utf-8 -*- |
833 | +######################################################################## |
834 | +# |
835 | +# @authors: Christopher Ormaza |
836 | +# Copyright (C) 2012 Ecuadorenlinea.net |
837 | +# |
838 | +#This program is free software: you can redistribute it and/or modify |
839 | +#it under the terms of the GNU General Public License as published by |
840 | +#the Free Software Foundation, either version 3 of the License, or |
841 | +#(at your option) any later version. |
842 | +# |
843 | +# This module is GPLv3 or newer and incompatible |
844 | +# with OpenERP SA "AGPL + Private Use License"! |
845 | +# |
846 | +#This program is distributed in the hope that it will be useful, |
847 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
848 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
849 | +#GNU General Public License for more details. |
850 | +# |
851 | +#You should have received a copy of the GNU General Public License |
852 | +#along with this program. If not, see http://www.gnu.org/licenses. |
853 | +######################################################################## |
854 | + |
855 | +from osv import osv |
856 | +from osv import fields |
857 | +import decimal_precision as dp |
858 | +from tools.translate import _ |
859 | + |
860 | +class account_voucher(osv.osv): |
861 | + ''' |
862 | + Open ERP Model |
863 | + ''' |
864 | + _inherit = 'account.voucher' |
865 | + |
866 | + _columns = { |
867 | + } |
868 | +account_voucher() |
869 | \ No newline at end of file |
870 | |
871 | === added directory 'ecua_account/report' |
872 | === added file 'ecua_account/report/__init__.py' |
873 | === added directory 'ecua_account/security' |
874 | === added file 'ecua_account/security/ir.model.access.csv' |
875 | --- ecua_account/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 |
876 | +++ ecua_account/security/ir.model.access.csv 2013-05-02 22:04:32 +0000 |
877 | @@ -0,0 +1,2 @@ |
878 | +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
879 | + |
880 | |
881 | === added directory 'ecua_account/views' |
882 | === added directory 'ecua_account/wizard' |
883 | === added file 'ecua_account/wizard/__init__.py' |
884 | --- ecua_account/wizard/__init__.py 1970-01-01 00:00:00 +0000 |
885 | +++ ecua_account/wizard/__init__.py 2013-05-02 22:04:32 +0000 |
886 | @@ -0,0 +1,18 @@ |
887 | +######################################################################### |
888 | +# Copyright (C) 2012 Christopher Ormaza, Ecuadorenlinea.net # |
889 | +# # |
890 | +#This program is free software: you can redistribute it and/or modify # |
891 | +#it under the terms of the GNU General Public License as published by # |
892 | +#the Free Software Foundation, either version 3 of the License, or # |
893 | +#(at your option) any later version. # |
894 | +# # |
895 | +#This program is distributed in the hope that it will be useful, # |
896 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of # |
897 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
898 | +#GNU General Public License for more details. # |
899 | +# # |
900 | +#You should have received a copy of the GNU General Public License # |
901 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. # |
902 | +######################################################################### |
903 | + |
904 | +import stock_change_standard_price |
905 | \ No newline at end of file |
906 | |
907 | === added file 'ecua_account/wizard/stock_change_standard_price.py' |
908 | --- ecua_account/wizard/stock_change_standard_price.py 1970-01-01 00:00:00 +0000 |
909 | +++ ecua_account/wizard/stock_change_standard_price.py 2013-05-02 22:04:32 +0000 |
910 | @@ -0,0 +1,41 @@ |
911 | +# -*- encoding: utf-8 -*- |
912 | +######################################################################## |
913 | +# |
914 | +# @authors: Christopher Ormaza |
915 | +# Copyright (C) 2012 Ecuadorenlinea.net |
916 | +# |
917 | +#This program is free software: you can redistribute it and/or modify |
918 | +#it under the terms of the GNU General Public License as published by |
919 | +#the Free Software Foundation, either version 3 of the License, or |
920 | +#(at your option) any later version. |
921 | +# |
922 | +# This module is GPLv3 or newer and incompatible |
923 | +# with OpenERP SA "AGPL + Private Use License"! |
924 | +# |
925 | +#This program is distributed in the hope that it will be useful, |
926 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
927 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
928 | +#GNU General Public License for more details. |
929 | +# |
930 | +#You should have received a copy of the GNU General Public License |
931 | +#along with this program. If not, see http://www.gnu.org/licenses. |
932 | +######################################################################## |
933 | +from osv import osv |
934 | +from osv import fields |
935 | +import decimal_precision as dp |
936 | +from tools.translate import _ |
937 | + |
938 | +class change_standard_price(osv.osv_memory): |
939 | + ''' |
940 | + Open ERP Model |
941 | + ''' |
942 | + _inherit = 'stock.change.standard.price' |
943 | + |
944 | + _columns = { |
945 | + 'new_price': fields.float('Price', required=True, digits_compute=dp.get_precision('Purchase Price'), |
946 | + help="If cost price is increased, stock variation account will be debited " |
947 | + "and stock output account will be credited with the value = (difference of amount * quantity available).\n" |
948 | + "If cost price is decreased, stock variation account will be creadited and stock input account will be debited."), |
949 | + |
950 | + } |
951 | +change_standard_price() |
952 | \ No newline at end of file |
953 | |
954 | === added directory 'ecua_account/workflow' |
955 | === added directory 'ecua_account_anglo_saxon' |
956 | === renamed directory 'ecua_account_anglo_saxon' => 'ecua_account_anglo_saxon.moved' |
957 | === added file 'ecua_account_anglo_saxon/__init__.py' |
958 | --- ecua_account_anglo_saxon/__init__.py 1970-01-01 00:00:00 +0000 |
959 | +++ ecua_account_anglo_saxon/__init__.py 2013-05-02 22:04:32 +0000 |
960 | @@ -0,0 +1,25 @@ |
961 | + |
962 | +# -*- encoding: utf-8 -*- |
963 | +######################################################################## |
964 | +# |
965 | +# @authors: Christopher Ormaza |
966 | +# Copyright (C) 2012 Ecuadorenlinea.net |
967 | +# |
968 | +#This program is free software: you can redistribute it and/or modify |
969 | +#it under the terms of the GNU General Public License as published by |
970 | +#the Free Software Foundation, either version 3 of the License, or |
971 | +#(at your option) any later version. |
972 | +# |
973 | +# This module is GPLv3 or newer and incompatible |
974 | +# with OpenERP SA "AGPL + Private Use License"! |
975 | +# |
976 | +#This program is distributed in the hope that it will be useful, |
977 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
978 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
979 | +#GNU General Public License for more details. |
980 | +# |
981 | +#You should have received a copy of the GNU General Public License |
982 | +#along with this program. If not, see http://www.gnu.org/licenses. |
983 | +######################################################################## |
984 | + |
985 | +import object |
986 | \ No newline at end of file |
987 | |
988 | === added file 'ecua_account_anglo_saxon/__openerp__.py' |
989 | --- ecua_account_anglo_saxon/__openerp__.py 1970-01-01 00:00:00 +0000 |
990 | +++ ecua_account_anglo_saxon/__openerp__.py 2013-05-02 22:04:32 +0000 |
991 | @@ -0,0 +1,50 @@ |
992 | + |
993 | +# -*- encoding: utf-8 -*- |
994 | +######################################################################## |
995 | +# |
996 | +# @authors: Christopher Ormaza |
997 | +# Copyright (C) 2012 Ecuadorenlinea.net |
998 | +# |
999 | +#This program is free software: you can redistribute it and/or modify |
1000 | +#it under the terms of the GNU General Public License as published by |
1001 | +#the Free Software Foundation, either version 3 of the License, or |
1002 | +#(at your option) any later version. |
1003 | +# |
1004 | +# This module is GPLv3 or newer and incompatible |
1005 | +# with OpenERP SA "AGPL + Private Use License"! |
1006 | +# |
1007 | +#This program is distributed in the hope that it will be useful, |
1008 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
1009 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1010 | +#GNU General Public License for more details. |
1011 | +# |
1012 | +#You should have received a copy of the GNU General Public License |
1013 | +#along with this program. If not, see http://www.gnu.org/licenses. |
1014 | +######################################################################## |
1015 | + |
1016 | +{ |
1017 | + "name": "Anglo Saxon Tool", |
1018 | + "version": "1.0", |
1019 | + "depends": [ |
1020 | + "base", |
1021 | + "sale", |
1022 | + "purchase", |
1023 | + "stock", |
1024 | + "ecua_remision", |
1025 | + "account_anglo_saxon", |
1026 | + ], |
1027 | + "author": "Christopher Ormaza Acosta", |
1028 | + "website": "http://openerpecuador.org", |
1029 | + "category": "Account", |
1030 | + "description": """ |
1031 | + This module provide : Add Price Unit in Outgoing Pickings, to make a correct kardex report |
1032 | + """, |
1033 | + "init_xml": [], |
1034 | + 'update_xml': [ |
1035 | + "views/product_view.xml", |
1036 | + ], |
1037 | + 'demo_xml': [], |
1038 | + 'installable': True, |
1039 | + 'active': False, |
1040 | +# 'certificate': 'certificate', |
1041 | +} |
1042 | \ No newline at end of file |
1043 | |
1044 | === added directory 'ecua_account_anglo_saxon/data' |
1045 | === added directory 'ecua_account_anglo_saxon/i18n' |
1046 | === added directory 'ecua_account_anglo_saxon/object' |
1047 | === added file 'ecua_account_anglo_saxon/object/__init__.py' |
1048 | --- ecua_account_anglo_saxon/object/__init__.py 1970-01-01 00:00:00 +0000 |
1049 | +++ ecua_account_anglo_saxon/object/__init__.py 2013-05-02 22:04:32 +0000 |
1050 | @@ -0,0 +1,26 @@ |
1051 | + |
1052 | +# -*- encoding: utf-8 -*- |
1053 | +######################################################################## |
1054 | +# |
1055 | +# @authors: Christopher Ormaza |
1056 | +# Copyright (C) 2012 Ecuadorenlinea.net |
1057 | +# |
1058 | +#This program is free software: you can redistribute it and/or modify |
1059 | +#it under the terms of the GNU General Public License as published by |
1060 | +#the Free Software Foundation, either version 3 of the License, or |
1061 | +#(at your option) any later version. |
1062 | +# |
1063 | +# This module is GPLv3 or newer and incompatible |
1064 | +# with OpenERP SA "AGPL + Private Use License"! |
1065 | +# |
1066 | +#This program is distributed in the hope that it will be useful, |
1067 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
1068 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1069 | +#GNU General Public License for more details. |
1070 | +# |
1071 | +#You should have received a copy of the GNU General Public License |
1072 | +#along with this program. If not, see http://www.gnu.org/licenses. |
1073 | +######################################################################## |
1074 | + |
1075 | + |
1076 | +import stock |
1077 | \ No newline at end of file |
1078 | |
1079 | === added file 'ecua_account_anglo_saxon/object/stock.py' |
1080 | --- ecua_account_anglo_saxon/object/stock.py 1970-01-01 00:00:00 +0000 |
1081 | +++ ecua_account_anglo_saxon/object/stock.py 2013-05-02 22:04:32 +0000 |
1082 | @@ -0,0 +1,184 @@ |
1083 | + |
1084 | +# -*- encoding: utf-8 -*- |
1085 | +######################################################################## |
1086 | +# |
1087 | +# @authors: Christopher Ormaza |
1088 | +# Copyright (C) 2012 Ecuadorenlinea.net |
1089 | +# |
1090 | +#This program is free software: you can redistribute it and/or modify |
1091 | +#it under the terms of the GNU General Public License as published by |
1092 | +#the Free Software Foundation, either version 3 of the License, or |
1093 | +#(at your option) any later version. |
1094 | +# |
1095 | +# This module is GPLv3 or newer and incompatible |
1096 | +# with OpenERP SA "AGPL + Private Use License"! |
1097 | +# |
1098 | +#This program is distributed in the hope that it will be useful, |
1099 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
1100 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1101 | +#GNU General Public License for more details. |
1102 | +# |
1103 | +#You should have received a copy of the GNU General Public License |
1104 | +#along with this program. If not, see http://www.gnu.org/licenses. |
1105 | +######################################################################## |
1106 | + |
1107 | + |
1108 | +from osv import osv |
1109 | +from osv import fields |
1110 | +import decimal_precision as dp |
1111 | +from tools.translate import _ |
1112 | +import time |
1113 | +import netsvc |
1114 | + |
1115 | +class stock_picking(osv.osv): |
1116 | + ''' |
1117 | + Open ERP Model |
1118 | + ''' |
1119 | + _inherit = 'stock.picking' |
1120 | + |
1121 | + def do_partial(self, cr, uid, ids, partial_datas, context=None): |
1122 | + """ Makes partial picking and moves done. |
1123 | + @param partial_datas : Dictionary containing details of partial picking |
1124 | + like partner_id, address_id, delivery_date, |
1125 | + delivery moves with product_id, product_qty, uom |
1126 | + @return: Dictionary of values |
1127 | + """ |
1128 | + if context is None: |
1129 | + context = {} |
1130 | + else: |
1131 | + context = dict(context) |
1132 | + res = {} |
1133 | + move_obj = self.pool.get('stock.move') |
1134 | + product_obj = self.pool.get('product.product') |
1135 | + currency_obj = self.pool.get('res.currency') |
1136 | + uom_obj = self.pool.get('product.uom') |
1137 | + sequence_obj = self.pool.get('ir.sequence') |
1138 | + wf_service = netsvc.LocalService("workflow") |
1139 | + for pick in self.browse(cr, uid, ids, context=context): |
1140 | + new_picking = None |
1141 | + complete, too_many, too_few = [], [], [] |
1142 | + move_product_qty = {} |
1143 | + prodlot_ids = {} |
1144 | + product_avail = {} |
1145 | + for move in pick.move_lines: |
1146 | + if move.state in ('done', 'cancel'): |
1147 | + continue |
1148 | + partial_data = partial_datas.get('move%s'%(move.id), {}) |
1149 | + #Commented in order to process the less number of stock moves from partial picking wizard |
1150 | + #assert partial_data, _('Missing partial picking data for move #%s') % (move.id) |
1151 | + product_qty = partial_data.get('product_qty') or 0.0 |
1152 | + move_product_qty[move.id] = product_qty |
1153 | + product_uom = partial_data.get('product_uom') or False |
1154 | + product_price = partial_data.get('product_price') or 0.0 |
1155 | + product_currency = partial_data.get('product_currency') or False |
1156 | + prodlot_id = partial_data.get('prodlot_id') or False |
1157 | + prodlot_ids[move.id] = prodlot_id |
1158 | + if move.product_qty == product_qty: |
1159 | + complete.append(move) |
1160 | + elif move.product_qty > product_qty: |
1161 | + too_few.append(move) |
1162 | + else: |
1163 | + too_many.append(move) |
1164 | + |
1165 | + # Average price computation |
1166 | + if (move.product_id.cost_method == 'average'): |
1167 | + product = product_obj.browse(cr, uid, move.product_id.id) |
1168 | + move_currency_id = move.company_id.currency_id.id |
1169 | + context['currency_id'] = move_currency_id |
1170 | + qty = uom_obj._compute_qty(cr, uid, product_uom, product_qty, product.uom_id.id) |
1171 | + |
1172 | + if product.id in product_avail: |
1173 | + product_avail[product.id] += qty |
1174 | + else: |
1175 | + product_avail[product.id] = product.qty_available |
1176 | + |
1177 | + if qty > 0: |
1178 | + new_price = currency_obj.compute(cr, uid, product_currency, |
1179 | + move_currency_id, product_price) |
1180 | + new_price = uom_obj._compute_price(cr, uid, product_uom, new_price, |
1181 | + product.uom_id.id) |
1182 | + if product.qty_available <= 0: |
1183 | + new_std_price = new_price |
1184 | + else: |
1185 | + # Get the standard price |
1186 | + amount_unit = product.price_get('standard_price', context)[product.id] |
1187 | + new_std_price = ((amount_unit * product_avail[product.id])\ |
1188 | + + (new_price * qty))/(product_avail[product.id] + qty) |
1189 | + # Write the field according to price type field |
1190 | + product_obj.write(cr, uid, [product.id], {'standard_price': new_std_price}) |
1191 | + |
1192 | + # Record the values that were chosen in the wizard, so they can be |
1193 | + # used for inventory valuation if real-time valuation is enabled. |
1194 | + move_obj.write(cr, uid, [move.id], |
1195 | + {'price_unit': product_price, |
1196 | + 'price_currency_id': product_currency}) |
1197 | + |
1198 | + |
1199 | + for move in too_few: |
1200 | + product_qty = move_product_qty[move.id] |
1201 | + |
1202 | + if not new_picking: |
1203 | + new_picking = self.copy(cr, uid, pick.id, |
1204 | + { |
1205 | + 'name': sequence_obj.get(cr, uid, 'stock.picking.%s'%(pick.type)), |
1206 | + 'move_lines' : [], |
1207 | + 'state':'draft', |
1208 | + }) |
1209 | + if product_qty != 0: |
1210 | + defaults = { |
1211 | + 'product_qty' : product_qty, |
1212 | + 'product_uos_qty': product_qty, #TODO: put correct uos_qty |
1213 | + 'picking_id' : new_picking, |
1214 | + 'state': 'assigned', |
1215 | + 'move_dest_id': False, |
1216 | + } |
1217 | + prodlot_id = prodlot_ids[move.id] |
1218 | + if prodlot_id: |
1219 | + defaults.update(prodlot_id=prodlot_id) |
1220 | + move_obj.copy(cr, uid, move.id, defaults) |
1221 | + |
1222 | + move_obj.write(cr, uid, [move.id], |
1223 | + { |
1224 | + 'product_qty' : move.product_qty - product_qty, |
1225 | + 'product_uos_qty':move.product_qty - product_qty, #TODO: put correct uos_qty |
1226 | + }) |
1227 | + |
1228 | + if new_picking: |
1229 | + move_obj.write(cr, uid, [c.id for c in complete], {'picking_id': new_picking}) |
1230 | + for move in complete: |
1231 | + if prodlot_ids.get(move.id): |
1232 | + move_obj.write(cr, uid, [move.id], {'prodlot_id': prodlot_ids[move.id]}) |
1233 | + for move in too_many: |
1234 | + product_qty = move_product_qty[move.id] |
1235 | + defaults = { |
1236 | + 'product_qty' : product_qty, |
1237 | + 'product_uos_qty': product_qty, #TODO: put correct uos_qty |
1238 | + } |
1239 | + prodlot_id = prodlot_ids.get(move.id) |
1240 | + if prodlot_ids.get(move.id): |
1241 | + defaults.update(prodlot_id=prodlot_id) |
1242 | + if new_picking: |
1243 | + defaults.update(picking_id=new_picking) |
1244 | + move_obj.write(cr, uid, [move.id], defaults) |
1245 | + |
1246 | + |
1247 | + # At first we confirm the new picking (if necessary) |
1248 | + if new_picking: |
1249 | + wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_confirm', cr) |
1250 | + # Then we finish the good picking |
1251 | + self.write(cr, uid, [pick.id], {'backorder_id': new_picking}) |
1252 | + self.action_move(cr, uid, [new_picking]) |
1253 | + wf_service.trg_validate(uid, 'stock.picking', new_picking, 'button_done', cr) |
1254 | + wf_service.trg_write(uid, 'stock.picking', pick.id, cr) |
1255 | + delivered_pack_id = new_picking |
1256 | + else: |
1257 | + self.action_move(cr, uid, [pick.id]) |
1258 | + wf_service.trg_validate(uid, 'stock.picking', pick.id, 'button_done', cr) |
1259 | + delivered_pack_id = pick.id |
1260 | + |
1261 | + delivered_pack = self.browse(cr, uid, delivered_pack_id, context=context) |
1262 | + res[pick.id] = {'delivered_picking': delivered_pack.id or False} |
1263 | + |
1264 | + return res |
1265 | + |
1266 | +stock_picking() |
1267 | \ No newline at end of file |
1268 | |
1269 | === added directory 'ecua_account_anglo_saxon/security' |
1270 | === added directory 'ecua_account_anglo_saxon/views' |
1271 | === added file 'ecua_account_anglo_saxon/views/product_view.xml' |
1272 | --- ecua_account_anglo_saxon/views/product_view.xml 1970-01-01 00:00:00 +0000 |
1273 | +++ ecua_account_anglo_saxon/views/product_view.xml 2013-05-02 22:04:32 +0000 |
1274 | @@ -0,0 +1,8 @@ |
1275 | +<?xml version="1.0" encoding="UTF-8"?> |
1276 | +<openerp> |
1277 | + <data> |
1278 | + <delete id="account_anglo_saxon.product_normal_form_view" model="ir.ui.view"/> |
1279 | + <delete id="account_anglo_saxon.product_template_form_view" model="ir.ui.view"/> |
1280 | + <delete id="account_anglo_saxon.view_category_property_form" model="ir.ui.view"/> |
1281 | + </data> |
1282 | +</openerp> |
1283 | \ No newline at end of file |
1284 | |
1285 | === added directory 'ecua_account_anglo_saxon/wizard' |
1286 | === added directory 'ecua_account_anglo_saxon/workflow' |
1287 | === added directory 'ecua_anexos_ats' |
1288 | === renamed directory 'ecua_anexos_ats' => 'ecua_anexos_ats.moved' |
1289 | === added file 'ecua_anexos_ats/__init__.py' |
1290 | --- ecua_anexos_ats/__init__.py 1970-01-01 00:00:00 +0000 |
1291 | +++ ecua_anexos_ats/__init__.py 2013-05-02 22:04:32 +0000 |
1292 | @@ -0,0 +1,25 @@ |
1293 | +# -*- encoding: utf-8 -*- |
1294 | +######################################################################## |
1295 | +# |
1296 | +# @authors: Christopher Ormaza |
1297 | +# Copyright (C) 2012 Ecuadorenlinea.net |
1298 | +# |
1299 | +#This program is free software: you can redistribute it and/or modify |
1300 | +#it under the terms of the GNU General Public License as published by |
1301 | +#the Free Software Foundation, either version 3 of the License, or |
1302 | +#(at your option) any later version. |
1303 | +# |
1304 | +# This module is GPLv3 or newer and incompatible |
1305 | +# with OpenERP SA "AGPL + Private Use License"! |
1306 | +# |
1307 | +#This program is distributed in the hope that it will be useful, |
1308 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
1309 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1310 | +#GNU General Public License for more details. |
1311 | +# |
1312 | +#You should have received a copy of the GNU General Public License |
1313 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
1314 | +######################################################################## |
1315 | + |
1316 | +import objects |
1317 | +import wizard |
1318 | \ No newline at end of file |
1319 | |
1320 | === added file 'ecua_anexos_ats/__openerp__.py' |
1321 | --- ecua_anexos_ats/__openerp__.py 1970-01-01 00:00:00 +0000 |
1322 | +++ ecua_anexos_ats/__openerp__.py 2013-05-02 22:04:32 +0000 |
1323 | @@ -0,0 +1,62 @@ |
1324 | +# -*- encoding: utf-8 -*- |
1325 | +######################################################################## |
1326 | +# |
1327 | +# @authors: Christopher Ormaza |
1328 | +# Copyright (C) 2012 Ecuadorenlinea.net |
1329 | +# |
1330 | +#This program is free software: you can redistribute it and/or modify |
1331 | +#it under the terms of the GNU General Public License as published by |
1332 | +#the Free Software Foundation, either version 3 of the License, or |
1333 | +#(at your option) any later version. |
1334 | +# |
1335 | +# This module is GPLv3 or newer and incompatible |
1336 | +# with OpenERP SA "AGPL + Private Use License"! |
1337 | +# |
1338 | +#This program is distributed in the hope that it will be useful, |
1339 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
1340 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1341 | +#GNU General Public License for more details. |
1342 | +# |
1343 | +#You should have received a copy of the GNU General Public License |
1344 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
1345 | +######################################################################## |
1346 | + |
1347 | +{ |
1348 | + "name" : "Ecuadorian Anexos", |
1349 | + "version" : "1.17", |
1350 | + "author" : "Christopher Ormaza Acosta, Ecuadorenlinea.net", |
1351 | + "website" : "http://www.ecuadorenlinea.net/", |
1352 | + "category" : "Ecuadorian Legislation", |
1353 | + "description": """ATS for Commercial Companies""", |
1354 | + "depends" : ['base', |
1355 | + 'account', |
1356 | + 'ecua_autorizaciones_sri', |
1357 | + 'ecua_facturas_manual', |
1358 | + 'ecua_facturas_ice_manual', |
1359 | + 'ecua_retenciones_manual', |
1360 | + 'ecua_notas_credito_manual', |
1361 | + 'ecua_liquidacion_compras', |
1362 | + ], |
1363 | + "init_xml" : [ |
1364 | + 'data/tipo_comprobantes.xml', |
1365 | + 'data/sustento_tributario.xml', |
1366 | + 'data/tipo_transaccion.xml', |
1367 | + ], |
1368 | + "demo_xml" : [ ], |
1369 | + "update_xml" : [ |
1370 | + 'security/ir.model.access.csv', |
1371 | + 'data/codigo_regimen.xml', |
1372 | + 'data/distrito_aduanero.xml', |
1373 | + 'data/tarjeta_credito.xml', |
1374 | + 'views/menu_ats.xml', |
1375 | + 'views/codigo_regimen_view.xml', |
1376 | + 'views/distrito_aduanero_view.xml', |
1377 | + 'views/tipo_comprobante_view.xml', |
1378 | + 'views/tipo_transaccion_view.xml', |
1379 | + 'views/invoice_view.xml', |
1380 | + 'views/company_view.xml', |
1381 | + 'wizard/ats_view.xml', |
1382 | + #'test/test.yml', |
1383 | + ], |
1384 | + "installable": True |
1385 | +} |
1386 | |
1387 | === added directory 'ecua_anexos_ats/data' |
1388 | === added file 'ecua_anexos_ats/data/codigo_regimen.xml' |
1389 | --- ecua_anexos_ats/data/codigo_regimen.xml 1970-01-01 00:00:00 +0000 |
1390 | +++ ecua_anexos_ats/data/codigo_regimen.xml 2013-05-02 22:04:32 +0000 |
1391 | @@ -0,0 +1,151 @@ |
1392 | +<?xml version="1.0" encoding="UTF-8"?> |
1393 | +<openerp> |
1394 | + <data noupdate="1"> |
1395 | + <record id="12" model="sri.code.regimen"> |
1396 | + <field name="code">12</field> |
1397 | + <field name="name">Exportación bajo reposición en franquicia arancelaria</field> |
1398 | + </record> |
1399 | + |
1400 | + <record id="31" model="sri.code.regimen"> |
1401 | + <field name="code">31</field> |
1402 | + <field name="name">Reimp. De mercancias exportadas temporalmente para perfeccionamiento pasivo</field> |
1403 | + </record> |
1404 | + |
1405 | + <record id="40" model="sri.code.regimen"> |
1406 | + <field name="code">40</field> |
1407 | + <field name="name">Exportación a consumo</field> |
1408 | + </record> |
1409 | + |
1410 | + <record id="47" model="sri.code.regimen"> |
1411 | + <field name="code">47</field> |
1412 | + <field name="name">Liquidación Manual - Garantías</field> |
1413 | + </record> |
1414 | + |
1415 | + <record id="48" model="sri.code.regimen"> |
1416 | + <field name="code">48</field> |
1417 | + <field name="name">Liquidación Manual - Exportación</field> |
1418 | + </record> |
1419 | + |
1420 | + <record id="49" model="sri.code.regimen"> |
1421 | + <field name="code">49</field> |
1422 | + <field name="name">Liquidación Manual - Paquetes Postales</field> |
1423 | + </record> |
1424 | + |
1425 | + <record id="50" model="sri.code.regimen"> |
1426 | + <field name="code">50</field> |
1427 | + <field name="name">Expo. Temporal con reimportación en el mismo estado</field> |
1428 | + </record> |
1429 | + |
1430 | + <record id="51" model="sri.code.regimen"> |
1431 | + <field name="code">51</field> |
1432 | + <field name="name">Expo. Temporal para perfeccionamiento pasivo</field> |
1433 | + </record> |
1434 | + |
1435 | + <record id="53" model="sri.code.regimen"> |
1436 | + <field name="code">53</field> |
1437 | + <field name="name">Expo. Con devolución condicionada de tributos (drawb.)</field> |
1438 | + </record> |
1439 | + |
1440 | + <record id="54" model="sri.code.regimen"> |
1441 | + <field name="code">54</field> |
1442 | + <field name="name">Liquidación Manual - Multas</field> |
1443 | + </record> |
1444 | + |
1445 | + <record id="55" model="sri.code.regimen"> |
1446 | + <field name="code">55</field> |
1447 | + <field name="name">Liquidación Manual - Rectificacion De Tributos</field> |
1448 | + </record> |
1449 | + |
1450 | + <record id="56" model="sri.code.regimen"> |
1451 | + <field name="code">56</field> |
1452 | + <field name="name">Liquidación Manual - Remates</field> |
1453 | + </record> |
1454 | + |
1455 | + <record id="57" model="sri.code.regimen"> |
1456 | + <field name="code">57</field> |
1457 | + <field name="name">Liquidación Manual - Couriers</field> |
1458 | + </record> |
1459 | + |
1460 | + <record id="58" model="sri.code.regimen"> |
1461 | + <field name="code">58</field> |
1462 | + <field name="name">Liquidación Manual - Pasajeros</field> |
1463 | + </record> |
1464 | + |
1465 | + <record id="59" model="sri.code.regimen"> |
1466 | + <field name="code">59</field> |
1467 | + <field name="name">Liquidación Manual - Importaciones</field> |
1468 | + </record> |
1469 | + |
1470 | + <record id="57" model="sri.code.regimen"> |
1471 | + <field name="code">57</field> |
1472 | + <field name="name">Liquidaciones efectuadas en sala de arribo</field> |
1473 | + </record> |
1474 | + |
1475 | + <record id="60" model="sri.code.regimen"> |
1476 | + <field name="code">60</field> |
1477 | + <field name="name">Reexp. De mercancías en el mismo estado</field> |
1478 | + </record> |
1479 | + |
1480 | + <record id="61" model="sri.code.regimen"> |
1481 | + <field name="code">61</field> |
1482 | + <field name="name">Reexportacion de mercancías que fueron importadas para perfeccionamiento activo</field> |
1483 | + </record> |
1484 | + |
1485 | + <record id="75" model="sri.code.regimen"> |
1486 | + <field name="code">75</field> |
1487 | + <field name="name">Reexportación de productos maquilados</field> |
1488 | + </record> |
1489 | + |
1490 | + <record id="76" model="sri.code.regimen"> |
1491 | + <field name="code">76</field> |
1492 | + <field name="name">Reexportación de productos transformados en deposito industrial</field> |
1493 | + </record> |
1494 | + |
1495 | + <record id="77" model="sri.code.regimen"> |
1496 | + <field name="code">77</field> |
1497 | + <field name="name">Reexportación de mercancias que fueron importadas a deposito comercial</field> |
1498 | + </record> |
1499 | + |
1500 | + <record id="78" model="sri.code.regimen"> |
1501 | + <field name="code">78</field> |
1502 | + <field name="name">Reexportación de mercancías ingresadas a almacenes libres</field> |
1503 | + </record> |
1504 | + |
1505 | + <record id="79" model="sri.code.regimen"> |
1506 | + <field name="code">79</field> |
1507 | + <field name="name">Exportación a consumo desde zona franca</field> |
1508 | + </record> |
1509 | + |
1510 | + <record id="80" model="sri.code.regimen"> |
1511 | + <field name="code">80</field> |
1512 | + <field name="name">Tránsito aduanero</field> |
1513 | + </record> |
1514 | + |
1515 | + <record id="90" model="sri.code.regimen"> |
1516 | + <field name="code">90</field> |
1517 | + <field name="name">Zona franca</field> |
1518 | + </record> |
1519 | + |
1520 | + <record id="91" model="sri.code.regimen"> |
1521 | + <field name="code">91</field> |
1522 | + <field name="name">Tráfico postal internacional y courier</field> |
1523 | + </record> |
1524 | + |
1525 | + <record id="92" model="sri.code.regimen"> |
1526 | + <field name="code">92</field> |
1527 | + <field name="name">Tráfico fronterizo</field> |
1528 | + </record> |
1529 | + |
1530 | + <record id="93" model="sri.code.regimen"> |
1531 | + <field name="code">93</field> |
1532 | + <field name="name">Zona de libre comercio</field> |
1533 | + </record> |
1534 | + |
1535 | + <record id="94" model="sri.code.regimen"> |
1536 | + <field name="code">94</field> |
1537 | + <field name="name">Courier exportación</field> |
1538 | + </record> |
1539 | + |
1540 | + |
1541 | + </data> |
1542 | +</openerp> |
1543 | \ No newline at end of file |
1544 | |
1545 | === added file 'ecua_anexos_ats/data/distrito_aduanero.xml' |
1546 | --- ecua_anexos_ats/data/distrito_aduanero.xml 1970-01-01 00:00:00 +0000 |
1547 | +++ ecua_anexos_ats/data/distrito_aduanero.xml 2013-05-02 22:04:32 +0000 |
1548 | @@ -0,0 +1,70 @@ |
1549 | +<?xml version="1.0" encoding="UTF-8"?> |
1550 | +<openerp> |
1551 | + <data noupdate="1"> |
1552 | + <record id="019" model="sri.customs.district"> |
1553 | + <field name="code">019</field> |
1554 | + <field name="name">Gquil-Aéreo</field> |
1555 | + </record> |
1556 | + |
1557 | + <record id="028" model="sri.customs.district"> |
1558 | + <field name="code">028</field> |
1559 | + <field name="name">Gquil-Marítimo</field> |
1560 | + </record> |
1561 | + |
1562 | + <record id="037" model="sri.customs.district"> |
1563 | + <field name="code">037</field> |
1564 | + <field name="name">Manta</field> |
1565 | + </record> |
1566 | + |
1567 | + <record id="046" model="sri.customs.district"> |
1568 | + <field name="code">046</field> |
1569 | + <field name="name">Esmeraldas</field> |
1570 | + </record> |
1571 | + |
1572 | + <record id="055" model="sri.customs.district"> |
1573 | + <field name="code">055</field> |
1574 | + <field name="name">Quito</field> |
1575 | + </record> |
1576 | + |
1577 | + <record id="064" model="sri.customs.district"> |
1578 | + <field name="code">064</field> |
1579 | + <field name="name">Pto-Bolívar</field> |
1580 | + </record> |
1581 | + |
1582 | + <record id="073" model="sri.customs.district"> |
1583 | + <field name="code">073</field> |
1584 | + <field name="name">Tulcán</field> |
1585 | + </record> |
1586 | + |
1587 | + <record id="082" model="sri.customs.district"> |
1588 | + <field name="code">082</field> |
1589 | + <field name="name">Huaquillas</field> |
1590 | + </record> |
1591 | + |
1592 | + <record id="091" model="sri.customs.district"> |
1593 | + <field name="code">091</field> |
1594 | + <field name="name">Cuenca</field> |
1595 | + </record> |
1596 | + |
1597 | + <record id="109" model="sri.customs.district"> |
1598 | + <field name="code">109</field> |
1599 | + <field name="name">Loja-Macara</field> |
1600 | + </record> |
1601 | + |
1602 | + <record id="118" model="sri.customs.district"> |
1603 | + <field name="code">118</field> |
1604 | + <field name="name">Sta Elena</field> |
1605 | + </record> |
1606 | + |
1607 | + <record id="127" model="sri.customs.district"> |
1608 | + <field name="code">127</field> |
1609 | + <field name="name">Latacunga</field> |
1610 | + </record> |
1611 | + |
1612 | + <record id="136" model="sri.customs.district"> |
1613 | + <field name="code">136</field> |
1614 | + <field name="name">Gerencia General</field> |
1615 | + </record> |
1616 | + |
1617 | + </data> |
1618 | +</openerp> |
1619 | \ No newline at end of file |
1620 | |
1621 | === added file 'ecua_anexos_ats/data/sri.code.regimen.txt' |
1622 | --- ecua_anexos_ats/data/sri.code.regimen.txt 1970-01-01 00:00:00 +0000 |
1623 | +++ ecua_anexos_ats/data/sri.code.regimen.txt 2013-05-02 22:04:32 +0000 |
1624 | @@ -0,0 +1,146 @@ |
1625 | +<record id=”12” model=”sri.code.regimen”> |
1626 | +<field name=”code”>12</field> |
1627 | +<field name=”name”>Exportación bajo reposición en franquicia arancelaria</field> |
1628 | +</record> |
1629 | + |
1630 | +<record id=”31” model=”sri.code.regimen”> |
1631 | +<field name=”code”>31</field> |
1632 | +<field name=”name”>Reimp. De mercancias exportadas temporalmente para perfeccionamiento pasivo</field> |
1633 | +</record> |
1634 | + |
1635 | +<record id=”40” model=”sri.code.regimen”> |
1636 | +<field name=”code”>40</field> |
1637 | +<field name=”name”>Exportación a consumo</field> |
1638 | +</record> |
1639 | + |
1640 | +<record id=”47” model=”sri.code.regimen”> |
1641 | +<field name=”code”>47</field> |
1642 | +<field name=”name”>Liquidación Manual - Garantías</field> |
1643 | +</record> |
1644 | + |
1645 | +<record id=”48” model=”sri.code.regimen”> |
1646 | +<field name=”code”>48</field> |
1647 | +<field name=”name”>Liquidación Manual - Exportación</field> |
1648 | +</record> |
1649 | + |
1650 | +<record id=”49” model=”sri.code.regimen”> |
1651 | +<field name=”code”>49</field> |
1652 | +<field name=”name”>Liquidación Manual - Paquetes Postales</field> |
1653 | +</record> |
1654 | + |
1655 | +<record id=”50” model=”sri.code.regimen”> |
1656 | +<field name=”code”>50</field> |
1657 | +<field name=”name”>Expo. Temporal con reimportación en el mismo estado</field> |
1658 | +</record> |
1659 | + |
1660 | +<record id=”51” model=”sri.code.regimen”> |
1661 | +<field name=”code”>51</field> |
1662 | +<field name=”name”>Expo. Temporal para perfeccionamiento pasivo</field> |
1663 | +</record> |
1664 | + |
1665 | +<record id=”53” model=”sri.code.regimen”> |
1666 | +<field name=”code”>53</field> |
1667 | +<field name=”name”>Expo. Con devolución condicionada de tributos (drawb.)</field> |
1668 | +</record> |
1669 | + |
1670 | +<record id=”54” model=”sri.code.regimen”> |
1671 | +<field name=”code”>54</field> |
1672 | +<field name=”name”>Liquidación Manual - Multas</field> |
1673 | +</record> |
1674 | + |
1675 | +<record id=”55” model=”sri.code.regimen”> |
1676 | +<field name=”code”>55</field> |
1677 | +<field name=”name”>Liquidación Manual - Rectificacion De Tributos</field> |
1678 | +</record> |
1679 | + |
1680 | +<record id=”56” model=”sri.code.regimen”> |
1681 | +<field name=”code”>56</field> |
1682 | +<field name=”name”>Liquidación Manual - Remates</field> |
1683 | +</record> |
1684 | + |
1685 | +<record id=”57” model=”sri.code.regimen”> |
1686 | +<field name=”code”>57</field> |
1687 | +<field name=”name”>Liquidación Manual - Couriers</field> |
1688 | +</record> |
1689 | + |
1690 | +<record id=”58” model=”sri.code.regimen”> |
1691 | +<field name=”code”>58</field> |
1692 | +<field name=”name”>Liquidación Manual - Pasajeros</field> |
1693 | +</record> |
1694 | + |
1695 | +<record id=”59” model=”sri.code.regimen”> |
1696 | +<field name=”code”>59</field> |
1697 | +<field name=”name”>Liquidación Manual - Importaciones</field> |
1698 | +</record> |
1699 | + |
1700 | +<record id=”57” model=”sri.code.regimen”> |
1701 | +<field name=”code”>57</field> |
1702 | +<field name=”name”>Liquidaciones efectuadas en sala de arribo</field> |
1703 | +</record> |
1704 | + |
1705 | +<record id=”60” model=”sri.code.regimen”> |
1706 | +<field name=”code”>60</field> |
1707 | +<field name=”name”>Reexp. De mercancías en el mismo estado</field> |
1708 | +</record> |
1709 | + |
1710 | +<record id=”61” model=”sri.code.regimen”> |
1711 | +<field name=”code”>61</field> |
1712 | +<field name=”name”>Reexportacion de mercancías que fueron importadas para perfeccionamiento activo</field> |
1713 | +</record> |
1714 | + |
1715 | +<record id=”75” model=”sri.code.regimen”> |
1716 | +<field name=”code”>75</field> |
1717 | +<field name=”name”>Reexportación de productos maquilados</field> |
1718 | +</record> |
1719 | + |
1720 | +<record id=”76” model=”sri.code.regimen”> |
1721 | +<field name=”code”>76</field> |
1722 | +<field name=”name”>Reexportación de productos transformados en deposito industrial</field> |
1723 | +</record> |
1724 | + |
1725 | +<record id=”77” model=”sri.code.regimen”> |
1726 | +<field name=”code”>77</field> |
1727 | +<field name=”name”>Reexportación de mercancias que fueron importadas a deposito comercial</field> |
1728 | +</record> |
1729 | + |
1730 | +<record id=”78” model=”sri.code.regimen”> |
1731 | +<field name=”code”>78</field> |
1732 | +<field name=”name”>Reexportación de mercancías ingresadas a almacenes libres</field> |
1733 | +</record> |
1734 | + |
1735 | +<record id=”79” model=”sri.code.regimen”> |
1736 | +<field name=”code”>79</field> |
1737 | +<field name=”name”>Exportación a consumo desde zona franca</field> |
1738 | +</record> |
1739 | + |
1740 | +<record id=”80” model=”sri.code.regimen”> |
1741 | +<field name=”code”>80</field> |
1742 | +<field name=”name”>Tránsito aduanero</field> |
1743 | +</record> |
1744 | + |
1745 | +<record id=”90” model=”sri.code.regimen”> |
1746 | +<field name=”code”>90</field> |
1747 | +<field name=”name”>Zona franca</field> |
1748 | +</record> |
1749 | + |
1750 | +<record id=”91” model=”sri.code.regimen”> |
1751 | +<field name=”code”>91</field> |
1752 | +<field name=”name”>Tráfico postal internacional y courier</field> |
1753 | +</record> |
1754 | + |
1755 | +<record id=”92” model=”sri.code.regimen”> |
1756 | +<field name=”code”>92</field> |
1757 | +<field name=”name”>Tráfico fronterizo</field> |
1758 | +</record> |
1759 | + |
1760 | +<record id=”93” model=”sri.code.regimen”> |
1761 | +<field name=”code”>93</field> |
1762 | +<field name=”name”>Zona de libre comercio</field> |
1763 | +</record> |
1764 | + |
1765 | +<record id=”94” model=”sri.code.regimen”> |
1766 | +<field name=”code”>94</field> |
1767 | +<field name=”name”>Courier exportación</field> |
1768 | +</record> |
1769 | + |
1770 | + |
1771 | |
1772 | === added file 'ecua_anexos_ats/data/sri.credit.card.txt' |
1773 | --- ecua_anexos_ats/data/sri.credit.card.txt 1970-01-01 00:00:00 +0000 |
1774 | +++ ecua_anexos_ats/data/sri.credit.card.txt 2013-05-02 22:04:32 +0000 |
1775 | @@ -0,0 +1,26 @@ |
1776 | +<record id=”01” model=”sri.credit.card”> |
1777 | +<field name=”code”>01</field> |
1778 | +<field name=”name”>AMERICAN EXPRESS</field> |
1779 | +</record> |
1780 | + |
1781 | +<record id=”02” model=”sri.credit.card”> |
1782 | +<field name=”code”>02</field> |
1783 | +<field name=”name”>DINERS CLUB</field> |
1784 | +</record> |
1785 | + |
1786 | +<record id=”04” model=”sri.credit.card”> |
1787 | +<field name=”code”>04</field> |
1788 | +<field name=”name”>MASTERCARD</field> |
1789 | +</record> |
1790 | + |
1791 | +<record id=”05” model=”sri.credit.card”> |
1792 | +<field name=”code”>05</field> |
1793 | +<field name=”name”>VISA</field> |
1794 | +</record> |
1795 | + |
1796 | +<record id=”07” model=”sri.credit.card”> |
1797 | +<field name=”code”>07</field> |
1798 | +<field name=”name”>OTRA TARJETA</field> |
1799 | +</record> |
1800 | + |
1801 | + |
1802 | |
1803 | === added file 'ecua_anexos_ats/data/sri.customs.district.txt' |
1804 | --- ecua_anexos_ats/data/sri.customs.district.txt 1970-01-01 00:00:00 +0000 |
1805 | +++ ecua_anexos_ats/data/sri.customs.district.txt 2013-05-02 22:04:32 +0000 |
1806 | @@ -0,0 +1,66 @@ |
1807 | +<record id=”019” model=”sri.customs.district”> |
1808 | +<field name=”code”>019</field> |
1809 | +<field name=”name”>Gquil-Aéreo</field> |
1810 | +</record> |
1811 | + |
1812 | +<record id=”028” model=”sri.customs.district”> |
1813 | +<field name=”code”>028</field> |
1814 | +<field name=”name”>Gquil-Marítimo</field> |
1815 | +</record> |
1816 | + |
1817 | +<record id=”037” model=”sri.customs.district”> |
1818 | +<field name=”code”>037</field> |
1819 | +<field name=”name”>Manta</field> |
1820 | +</record> |
1821 | + |
1822 | +<record id=”046” model=”sri.customs.district”> |
1823 | +<field name=”code”>046</field> |
1824 | +<field name=”name”>Esmeraldas</field> |
1825 | +</record> |
1826 | + |
1827 | +<record id=”055” model=”sri.customs.district”> |
1828 | +<field name=”code”>055</field> |
1829 | +<field name=”name”>Quito</field> |
1830 | +</record> |
1831 | + |
1832 | +<record id=”064” model=”sri.customs.district”> |
1833 | +<field name=”code”>064</field> |
1834 | +<field name=”name”>Pto-Bolívar</field> |
1835 | +</record> |
1836 | + |
1837 | +<record id=”073” model=”sri.customs.district”> |
1838 | +<field name=”code”>073</field> |
1839 | +<field name=”name”>Tulcán</field> |
1840 | +</record> |
1841 | + |
1842 | +<record id=”082” model=”sri.customs.district”> |
1843 | +<field name=”code”>082</field> |
1844 | +<field name=”name”>Huaquillas</field> |
1845 | +</record> |
1846 | + |
1847 | +<record id=”091” model=”sri.customs.district”> |
1848 | +<field name=”code”>091</field> |
1849 | +<field name=”name”>Cuenca</field> |
1850 | +</record> |
1851 | + |
1852 | +<record id=”109” model=”sri.customs.district”> |
1853 | +<field name=”code”>109</field> |
1854 | +<field name=”name”>Loja-Macara</field> |
1855 | +</record> |
1856 | + |
1857 | +<record id=”118” model=”sri.customs.district”> |
1858 | +<field name=”code”>118</field> |
1859 | +<field name=”name”>Sta Elena</field> |
1860 | +</record> |
1861 | + |
1862 | +<record id=”127” model=”sri.customs.district”> |
1863 | +<field name=”code”>127</field> |
1864 | +<field name=”name”>Latacunga</field> |
1865 | +</record> |
1866 | + |
1867 | +<record id=”136” model=”sri.customs.district”> |
1868 | +<field name=”code”>136</field> |
1869 | +<field name=”name”>Gerencia General</field> |
1870 | +</record> |
1871 | + |
1872 | + |
1873 | |
1874 | === added file 'ecua_anexos_ats/data/sri.tax.support.txt' |
1875 | --- ecua_anexos_ats/data/sri.tax.support.txt 1970-01-01 00:00:00 +0000 |
1876 | +++ ecua_anexos_ats/data/sri.tax.support.txt 2013-05-02 22:04:32 +0000 |
1877 | @@ -0,0 +1,51 @@ |
1878 | +<record id=”00” model=”sri.tax.support”> |
1879 | +<field name=”code”>00</field> |
1880 | +<field name=”name”>No aplica</field> |
1881 | +</record> |
1882 | + |
1883 | +<record id=”01” model=”sri.tax.support”> |
1884 | +<field name=”code”>01</field> |
1885 | +<field name=”name”>Crédito Tributario para declaración de IVA (servicios y bienes distintos de inventarios y activos fijos)</field> |
1886 | +</record> |
1887 | + |
1888 | +<record id=”02” model=”sri.tax.support”> |
1889 | +<field name=”code”>02</field> |
1890 | +<field name=”name”>Costo o Gasto para declaración de IR (servicios y bienes distintos de inventarios y activos fijos)</field> |
1891 | +</record> |
1892 | + |
1893 | +<record id=”03” model=”sri.tax.support”> |
1894 | +<field name=”code”>03</field> |
1895 | +<field name=”name”>Activo Fijo - Crédito Tributario para declaración de IVA</field> |
1896 | +</record> |
1897 | + |
1898 | +<record id=”04” model=”sri.tax.support”> |
1899 | +<field name=”code”>04</field> |
1900 | +<field name=”name”>Activo Fijo - Costo o Gasto para declaración de IR</field> |
1901 | +</record> |
1902 | + |
1903 | +<record id=”05” model=”sri.tax.support”> |
1904 | +<field name=”code”>05</field> |
1905 | +<field name=”name”>Liquidación Gastos de Viaje, hospedaje y alimentación Gastos IR (a nombre de empleados y no de la empresa)</field> |
1906 | +</record> |
1907 | + |
1908 | +<record id=”06” model=”sri.tax.support”> |
1909 | +<field name=”code”>06</field> |
1910 | +<field name=”name”>Inventario - Crédito Tributario para declaración de IVA</field> |
1911 | +</record> |
1912 | + |
1913 | +<record id=”07” model=”sri.tax.support”> |
1914 | +<field name=”code”>07</field> |
1915 | +<field name=”name”>Inventario - Costo o Gasto para declaración de IR</field> |
1916 | +</record> |
1917 | + |
1918 | +<record id=”08” model=”sri.tax.support”> |
1919 | +<field name=”code”>08</field> |
1920 | +<field name=”name”>Valor pagado para solicitar Reembolso de Gasto (intermediario)</field> |
1921 | +</record> |
1922 | + |
1923 | +<record id=”09” model=”sri.tax.support”> |
1924 | +<field name=”code”>09</field> |
1925 | +<field name=”name”>Reembolso por Siniestros</field> |
1926 | +</record> |
1927 | + |
1928 | + |
1929 | |
1930 | === added file 'ecua_anexos_ats/data/sri.transaction.usage.txt' |
1931 | --- ecua_anexos_ats/data/sri.transaction.usage.txt 1970-01-01 00:00:00 +0000 |
1932 | +++ ecua_anexos_ats/data/sri.transaction.usage.txt 2013-05-02 22:04:32 +0000 |
1933 | @@ -0,0 +1,97 @@ |
1934 | +<record id=”01” model=”sri.transaction.usage”> |
1935 | + <field name=”code”>01</field> |
1936 | + <field name=”name”>COMPRA</field> |
1937 | + <field name=”type_identification”>RUC</field> |
1938 | +</record> |
1939 | + |
1940 | +<record id=”02” model=”sri.transaction.usage”> |
1941 | + <field name=”code”>02</field> |
1942 | + <field name=”name”>COMPRA</field> |
1943 | + <field name=”type_identification”>CEDULA</field> |
1944 | +</record> |
1945 | + |
1946 | +<record id=”03” model=”sri.transaction.usage”> |
1947 | + <field name=”code”>03</field> |
1948 | + <field name=”name”>COMPRA</field> |
1949 | + <field name=”type_identification”>PASAPORTE</field> |
1950 | +</record> |
1951 | + |
1952 | +<record id=”04” model=”sri.transaction.usage”> |
1953 | + <field name=”code”>04</field> |
1954 | + <field name=”name”>VENTA</field> |
1955 | + <field name=”type_identification”>RUC</field> |
1956 | +</record> |
1957 | + |
1958 | +<record id=”05” model=”sri.transaction.usage”> |
1959 | + <field name=”code”>05</field> |
1960 | + <field name=”name”>VENTA</field> |
1961 | + <field name=”type_identification”>CEDULA</field> |
1962 | +</record> |
1963 | + |
1964 | +<record id=”06” model=”sri.transaction.usage”> |
1965 | + <field name=”code”>06</field> |
1966 | + <field name=”name”>VENTA</field> |
1967 | + <field name=”type_identification”>PASAPORTE</field> |
1968 | +</record> |
1969 | + |
1970 | +<record id=”07” model=”sri.transaction.usage”> |
1971 | + <field name=”code”>07</field> |
1972 | + <field name=”name”>VENTA</field> |
1973 | + <field name=”type_identification”>CONSUMIDOR FINAL</field> |
1974 | +</record> |
1975 | + |
1976 | +<record id=”09” model=”sri.transaction.usage”> |
1977 | + <field name=”code”>09</field> |
1978 | + <field name=”name”>EXPORTACION</field> |
1979 | + <field name=”type_identification”>-</field> |
1980 | +</record> |
1981 | + |
1982 | +<record id=”10” model=”sri.transaction.usage”> |
1983 | + <field name=”code”>10</field> |
1984 | + <field name=”name”>TARJETA DE CREDITO</field> |
1985 | + <field name=”type_identification”>RUC</field> |
1986 | +</record> |
1987 | + |
1988 | +<record id=”11” model=”sri.transaction.usage”> |
1989 | + <field name=”code”>11</field> |
1990 | + <field name=”name”>TARJETA DE CREDITO</field> |
1991 | + <field name=”type_identification”>PASAPORTE</field> |
1992 | +</record> |
1993 | + |
1994 | +<record id=”12” model=”sri.transaction.usage”> |
1995 | + <field name=”code”>12</field> |
1996 | + <field name=”name”>RENDIMIENTOS FINANCIEROS</field> |
1997 | + <field name=”type_identification”>RUC</field> |
1998 | +</record> |
1999 | + |
2000 | +<record id=”13” model=”sri.transaction.usage”> |
2001 | + <field name=”code”>13</field> |
2002 | + <field name=”name”>RENDIMIENTOS FINANCIEROS</field> |
2003 | + <field name=”type_identification”>CEDULA</field> |
2004 | +</record> |
2005 | + |
2006 | +<record id=”14” model=”sri.transaction.usage”> |
2007 | + <field name=”code”>14</field> |
2008 | + <field name=”name”>RENDIMIENTOS FINANCIEROS</field> |
2009 | + <field name=”type_identification”>PASAPORTE</field> |
2010 | +</record> |
2011 | + |
2012 | +<record id=”15” model=”sri.transaction.usage”> |
2013 | + <field name=”code”>15</field> |
2014 | + <field name=”name”>FONDOS Y FIDEICOMISOS</field> |
2015 | + <field name=”type_identification”>RUC</field> |
2016 | +</record> |
2017 | + |
2018 | +<record id=”16” model=”sri.transaction.usage”> |
2019 | + <field name=”code”>16</field> |
2020 | + <field name=”name”>FONDOS Y FIDEICOMISOS</field> |
2021 | + <field name=”type_identification”>CEDULA</field> |
2022 | +</record> |
2023 | + |
2024 | +<record id=”17” model=”sri.transaction.usage”> |
2025 | + <field name=”code”>17</field> |
2026 | + <field name=”name”>FONDOS Y FIDEICOMISOS</field> |
2027 | + <field name=”type_identification”>PASAPORTE</field> |
2028 | +</record> |
2029 | + |
2030 | + |
2031 | |
2032 | === added file 'ecua_anexos_ats/data/sri.voucher.type.txt' |
2033 | --- ecua_anexos_ats/data/sri.voucher.type.txt 1970-01-01 00:00:00 +0000 |
2034 | +++ ecua_anexos_ats/data/sri.voucher.type.txt 2013-05-02 22:04:32 +0000 |
2035 | @@ -0,0 +1,181 @@ |
2036 | +<record id=”01” model=”sri.voucher.type”> |
2037 | +<field name=”code”>01</field> |
2038 | +<field name=”name”>Factura</field> |
2039 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 08, 09, 00’)])]”/> |
2040 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 09’)])]”/> |
2041 | +</record> |
2042 | +<record id=”02” model=”sri.voucher.type”> |
2043 | +<field name=”code”>02</field> |
2044 | +<field name=”name”>Nota o boleta de venta</field> |
2045 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘02, 04, 05, 07, 08, 09, 00’)])]”/> |
2046 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2047 | +</record> |
2048 | +<record id=”03” model=”sri.voucher.type”> |
2049 | +<field name=”code”>03</field> |
2050 | +<field name=”name”>Liquidación de compra de Bienes o Prestación de servicios</field> |
2051 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 08’)])]”/> |
2052 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘02, 03’)])]”/> |
2053 | +</record> |
2054 | +<record id=”04” model=”sri.voucher.type”> |
2055 | +<field name=”code”>04</field> |
2056 | +<field name=”name”>Nota de crédito</field> |
2057 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 08, 09, 00’)])]”/> |
2058 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 09’)])]”/> |
2059 | +</record> |
2060 | +<record id=”05” model=”sri.voucher.type”> |
2061 | +<field name=”code”>05</field> |
2062 | +<field name=”name”>Nota de débito</field> |
2063 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 08, 09, 00’)])]”/> |
2064 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07, 09’)])]”/> |
2065 | +</record> |
2066 | +<record id=”07” model=”sri.voucher.type”> |
2067 | +<field name=”code”>07</field> |
2068 | +<field name=”name”>Comprobante de Retención</field> |
2069 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2070 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2071 | +</record> |
2072 | +<record id=”08” model=”sri.voucher.type”> |
2073 | +<field name=”code”>08</field> |
2074 | +<field name=”name”>Boletos o entradas a espectáculos públicos</field> |
2075 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2076 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2077 | +</record> |
2078 | +<record id=”09” model=”sri.voucher.type”> |
2079 | +<field name=”code”>09</field> |
2080 | +<field name=”name”>Tiquetes o vales emitidos por máquinas registradoras</field> |
2081 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2082 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2083 | +</record> |
2084 | +<record id=”11” model=”sri.voucher.type”> |
2085 | +<field name=”code”>11</field> |
2086 | +<field name=”name”>Pasajes expedidos por empresas de aviación</field> |
2087 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 05’)])]”/> |
2088 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2089 | +</record> |
2090 | +<record id=”12” model=”sri.voucher.type”> |
2091 | +<field name=”code”>12</field> |
2092 | +<field name=”name”>Documentos emitidos por instituciones financieras</field> |
2093 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 05’)])]”/> |
2094 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2095 | +</record> |
2096 | +<record id=”15” model=”sri.voucher.type”> |
2097 | +<field name=”code”>15</field> |
2098 | +<field name=”name”>Comprobante de venta emitido en el Exterior</field> |
2099 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘02, 04, 05, 07’)])]”/> |
2100 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘03’)])]”/> |
2101 | +</record> |
2102 | +<record id=”16” model=”sri.voucher.type”> |
2103 | +<field name=”code”>16</field> |
2104 | +<field name=”name”>Formulario Único de Exportación (FUE) o Declaración Aduanera Única (DAU) o Declaración Andina de Valor (DAV)</field> |
2105 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2106 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘09’)])]”/> |
2107 | +</record> |
2108 | +<record id=”18” model=”sri.voucher.type”> |
2109 | +<field name=”code”>18</field> |
2110 | +<field name=”name”>Documentos autorizados utilizados en ventas excepto N/C N/D</field> |
2111 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2112 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04, 05, 06, 07’)])]”/> |
2113 | +</record> |
2114 | +<record id=”19” model=”sri.voucher.type”> |
2115 | +<field name=”code”>19</field> |
2116 | +<field name=”name”>Comprobantes de Pago de Cuotas o Aportes</field> |
2117 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘02’)])]”/> |
2118 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 02’)])]”/> |
2119 | +</record> |
2120 | +<record id=”20” model=”sri.voucher.type”> |
2121 | +<field name=”code”>20</field> |
2122 | +<field name=”name”>Documentos por Servicios Administrativos emitidos por Inst. del Estado</field> |
2123 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘02’)])]”/> |
2124 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2125 | +</record> |
2126 | +<record id=”21” model=”sri.voucher.type”> |
2127 | +<field name=”code”>21</field> |
2128 | +<field name=”name”>Carta de Porte Aéreo</field> |
2129 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 08’)])]”/> |
2130 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2131 | +</record> |
2132 | +<record id=”22” model=”sri.voucher.type”> |
2133 | +<field name=”code”>22</field> |
2134 | +<field name=”name”>RECAP</field> |
2135 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2136 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘10, 11’)])]”/> |
2137 | +</record> |
2138 | +<record id=”23” model=”sri.voucher.type”> |
2139 | +<field name=”code”>23</field> |
2140 | +<field name=”name”>Nota de Crédito TC</field> |
2141 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2142 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘10, 11’)])]”/> |
2143 | +</record> |
2144 | +<record id=”24” model=”sri.voucher.type”> |
2145 | +<field name=”code”>24</field> |
2146 | +<field name=”name”>Nota de Débito TC</field> |
2147 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2148 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘10, 11’)])]”/> |
2149 | +</record> |
2150 | +<record id=”41” model=”sri.voucher.type”> |
2151 | +<field name=”code”>41</field> |
2152 | +<field name=”name”>Comprobante de venta emitido por reembolso</field> |
2153 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 07’)])]”/> |
2154 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 05, 06, 09’)])]”/> |
2155 | +</record> |
2156 | +<record id=”42” model=”sri.voucher.type”> |
2157 | +<field name=”code”>42</field> |
2158 | +<field name=”name”>Documento agente de retención Presuntiva</field> |
2159 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘00’)])]”/> |
2160 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2161 | +</record> |
2162 | +<record id=”43” model=”sri.voucher.type”> |
2163 | +<field name=”code”>43</field> |
2164 | +<field name=”name”>Liquidacion para Explotacion y Exploracion de Hidrocarburos</field> |
2165 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 06, 07’)])]”/> |
2166 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01’)])]”/> |
2167 | +</record> |
2168 | +<record id=”44” model=”sri.voucher.type”> |
2169 | +<field name=”code”>44</field> |
2170 | +<field name=”name”>Comprobante de Contribuciones y Aportes</field> |
2171 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2172 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04, 05, 06’)])]”/> |
2173 | +</record> |
2174 | +<record id=”45” model=”sri.voucher.type”> |
2175 | +<field name=”code”>45</field> |
2176 | +<field name=”name”>Liquidación por reclamos de aseguradoras</field> |
2177 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘09’)])]”/> |
2178 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01,03’)])]”/> |
2179 | +</record> |
2180 | +<record id=”47” model=”sri.voucher.type”> |
2181 | +<field name=”code”>47</field> |
2182 | +<field name=”name”>Nota de Crédito por Reembolso Emitida por Intermediario</field> |
2183 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 06, 07’)])]”/> |
2184 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 04, 05, 06, 09’)])]”/> |
2185 | +</record> |
2186 | +<record id=”48” model=”sri.voucher.type”> |
2187 | +<field name=”code”>48</field> |
2188 | +<field name=”name”>Nota de Débito por Reembolso Emitida por Intermediario</field> |
2189 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘01, 02, 03, 04, 06, 07’)])]”/> |
2190 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘01, 04, 05, 06, 09’)])]”/> |
2191 | +</record> |
2192 | +<record id=”49” model=”sri.voucher.type”> |
2193 | +<field name=”code”>49</field> |
2194 | +<field name=”name”>Proveedor Directo de Exportador Bajo Régimen Especial</field> |
2195 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2196 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04’)])]”/> |
2197 | +</record> |
2198 | +<record id=”50” model=”sri.voucher.type”> |
2199 | +<field name=”code”>50</field> |
2200 | +<field name=”name”>A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2201 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2202 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04’)])]”/> |
2203 | +</record> |
2204 | +<record id=”51” model=”sri.voucher.type”> |
2205 | +<field name=”code”>51</field> |
2206 | +<field name=”name”>N/C A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2207 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2208 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04’)])]”/> |
2209 | +</record> |
2210 | +<record id=”52” model=”sri.voucher.type”> |
2211 | +<field name=”code”>52</field> |
2212 | +<field name=”name”>N/D A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2213 | +<field name=”sustention_ids” eval=”[(6,0,[ref(‘ninguno’)])]”/> |
2214 | +<field name=”usage_ids” eval=”[(6,0,[ref(‘04’)])]”/> |
2215 | +</record> |
2216 | + |
2217 | |
2218 | === added file 'ecua_anexos_ats/data/sustento_tributario.xml' |
2219 | --- ecua_anexos_ats/data/sustento_tributario.xml 1970-01-01 00:00:00 +0000 |
2220 | +++ ecua_anexos_ats/data/sustento_tributario.xml 2013-05-02 22:04:32 +0000 |
2221 | @@ -0,0 +1,65 @@ |
2222 | +<?xml version="1.0" encoding="UTF-8"?> |
2223 | +<openerp> |
2224 | + <data noupdate="1"> |
2225 | + <record id="00" model="sri.tax.support"> |
2226 | + <field name="code">00</field> |
2227 | + <field name="name">No aplica</field> |
2228 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('02'),ref('04'),ref('05'),ref('42')])]"/> |
2229 | + </record> |
2230 | + |
2231 | + <record id="01" model="sri.tax.support"> |
2232 | + <field name="code">01</field> |
2233 | + <field name="name">Crédito Tributario para declaración de IVA (servicios y bienes distintos de inventarios y activos fijos)</field> |
2234 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('03'),ref('04'),ref('05'),ref('11'),ref('12'),ref('21'),ref('41'),ref('43'),ref('47'),ref('48')])]"/> |
2235 | + </record> |
2236 | + |
2237 | + <record id="02" model="sri.tax.support"> |
2238 | + <field name="code">02</field> |
2239 | + <field name="name">Costo o Gasto para declaración de IR (servicios y bienes distintos de inventarios y activos fijos)</field> |
2240 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('02'),ref('03'),ref('04'),ref('05'),ref('11'),ref('12'),ref('15'),ref('19'),ref('20'),ref('21'),ref('41'),ref('43'),ref('47'),ref('48')])]"/> |
2241 | + </record> |
2242 | + |
2243 | + <record id="03" model="sri.tax.support"> |
2244 | + <field name="code">03</field> |
2245 | + <field name="name">Activo Fijo - Crédito Tributario para declaración de IVA</field> |
2246 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('03'), ref('04'), ref('05'), ref('41'), ref('47'), ref('48')])]"/> |
2247 | + </record> |
2248 | + |
2249 | + <record id="04" model="sri.tax.support"> |
2250 | + <field name="code">04</field> |
2251 | + <field name="name">Activo Fijo - Costo o Gasto para declaración de IR</field> |
2252 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('02'), ref('03'), ref('04'), ref('05'), ref('15'), ref('41'), ref('47'), ref('48')])]"/> |
2253 | + </record> |
2254 | + |
2255 | + <record id="05" model="sri.tax.support"> |
2256 | + <field name="code">05</field> |
2257 | + <field name="name">Liquidación Gastos de Viaje, hospedaje y alimentación Gastos IR (a nombre de empleados y no de la empresa)</field> |
2258 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('02'), ref('03'), ref('04'), ref('05'), ref('11'), ref('15'), ref('41')])]"/> |
2259 | + </record> |
2260 | + |
2261 | + <record id="06" model="sri.tax.support"> |
2262 | + <field name="code">06</field> |
2263 | + <field name="name">Inventario - Crédito Tributario para declaración de IVA</field> |
2264 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('03'), ref('04'), ref('05'), ref('41'), ref('43'), ref('47'), ref('48')])]"/> |
2265 | + </record> |
2266 | + |
2267 | + <record id="07" model="sri.tax.support"> |
2268 | + <field name="code">07</field> |
2269 | + <field name="name">Inventario - Costo o Gasto para declaración de IR</field> |
2270 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('02'), ref('03'), ref('04'), ref('05'), ref('15'), ref('41'), ref('43'), ref('47'), ref('48')])]"/> |
2271 | + </record> |
2272 | + |
2273 | + <record id="08" model="sri.tax.support"> |
2274 | + <field name="code">08</field> |
2275 | + <field name="name">Valor pagado para solicitar Reembolso de Gasto (intermediario)</field> |
2276 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'), ref('02'), ref('03'), ref('04'), ref('05'), ref('21')])]"/> |
2277 | + </record> |
2278 | + |
2279 | + <record id="09" model="sri.tax.support"> |
2280 | + <field name="code">09</field> |
2281 | + <field name="name">Reembolso por Siniestros</field> |
2282 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('02'),ref('45'), ref('04'), ref('05')])]"/> |
2283 | + </record> |
2284 | + |
2285 | + </data> |
2286 | +</openerp> |
2287 | \ No newline at end of file |
2288 | |
2289 | === added file 'ecua_anexos_ats/data/tarjeta_credito.xml' |
2290 | --- ecua_anexos_ats/data/tarjeta_credito.xml 1970-01-01 00:00:00 +0000 |
2291 | +++ ecua_anexos_ats/data/tarjeta_credito.xml 2013-05-02 22:04:32 +0000 |
2292 | @@ -0,0 +1,30 @@ |
2293 | +<?xml version="1.0" encoding="UTF-8"?> |
2294 | +<openerp> |
2295 | + <data noupdate="1"> |
2296 | + <record id="01" model="sri.credit.card"> |
2297 | + <field name="code">01</field> |
2298 | + <field name="name">AMERICAN EXPRESS</field> |
2299 | + </record> |
2300 | + |
2301 | + <record id="02" model="sri.credit.card"> |
2302 | + <field name="code">02</field> |
2303 | + <field name="name">DINERS CLUB</field> |
2304 | + </record> |
2305 | + |
2306 | + <record id="04" model="sri.credit.card"> |
2307 | + <field name="code">04</field> |
2308 | + <field name="name">MASTERCARD</field> |
2309 | + </record> |
2310 | + |
2311 | + <record id="05" model="sri.credit.card"> |
2312 | + <field name="code">05</field> |
2313 | + <field name="name">VISA</field> |
2314 | + </record> |
2315 | + |
2316 | + <record id="07" model="sri.credit.card"> |
2317 | + <field name="code">07</field> |
2318 | + <field name="name">OTRA TARJETA</field> |
2319 | + </record> |
2320 | + |
2321 | + </data> |
2322 | +</openerp> |
2323 | \ No newline at end of file |
2324 | |
2325 | === added file 'ecua_anexos_ats/data/tipo_comprobantes.xml' |
2326 | --- ecua_anexos_ats/data/tipo_comprobantes.xml 1970-01-01 00:00:00 +0000 |
2327 | +++ ecua_anexos_ats/data/tipo_comprobantes.xml 2013-05-02 22:04:32 +0000 |
2328 | @@ -0,0 +1,127 @@ |
2329 | +<?xml version="1.0" encoding="UTF-8"?> |
2330 | +<openerp> |
2331 | + <data noupdate="1"> |
2332 | + <record id="01" model="sri.voucher.type"> |
2333 | + <field name="code">01</field> |
2334 | + <field name="name">Factura</field> |
2335 | + </record> |
2336 | + <record id="02" model="sri.voucher.type"> |
2337 | + <field name="code">02</field> |
2338 | + <field name="name">Nota o boleta de venta</field> |
2339 | + </record> |
2340 | + <record id="03" model="sri.voucher.type"> |
2341 | + <field name="code">03</field> |
2342 | + <field name="name">Liquidación de compra de Bienes o Prestación de servicios</field> |
2343 | + </record> |
2344 | + <record id="04" model="sri.voucher.type"> |
2345 | + <field name="code">04</field> |
2346 | + <field name="name">Nota de crédito</field> |
2347 | + </record> |
2348 | + <record id="05" model="sri.voucher.type"> |
2349 | + <field name="code">05</field> |
2350 | + <field name="name">Nota de débito</field> |
2351 | + </record> |
2352 | + <record id="07" model="sri.voucher.type"> |
2353 | + <field name="code">07</field> |
2354 | + <field name="name">Comprobante de Retención</field> |
2355 | + <field name="sustention_ids" eval="[(6,0,[])]"/> |
2356 | + <field name="usage_ids" eval="[(6,0,[])]"/> |
2357 | + </record> |
2358 | + <record id="08" model="sri.voucher.type"> |
2359 | + <field name="code">08</field> |
2360 | + <field name="name">Boletos o entradas a espectáculos públicos</field> |
2361 | + </record> |
2362 | + <record id="09" model="sri.voucher.type"> |
2363 | + <field name="code">09</field> |
2364 | + <field name="name">Tiquetes o vales emitidos por máquinas registradoras</field> |
2365 | + </record> |
2366 | + <record id="11" model="sri.voucher.type"> |
2367 | + <field name="code">11</field> |
2368 | + <field name="name">Pasajes expedidos por empresas de aviación</field> |
2369 | + </record> |
2370 | + <record id="12" model="sri.voucher.type"> |
2371 | + <field name="code">12</field> |
2372 | + <field name="name">Documentos emitidos por instituciones financieras</field> |
2373 | + </record> |
2374 | + <record id="15" model="sri.voucher.type"> |
2375 | + <field name="code">15</field> |
2376 | + <field name="name">Comprobante de venta emitido en el Exterior</field> |
2377 | + </record> |
2378 | + <record id="16" model="sri.voucher.type"> |
2379 | + <field name="code">16</field> |
2380 | + <field name="name">Formulario Único de Exportación (FUE) o Declaración Aduanera Única (DAU) o Declaración Andina de Valor (DAV)</field> |
2381 | + </record> |
2382 | + <record id="18" model="sri.voucher.type"> |
2383 | + <field name="code">18</field> |
2384 | + <field name="name">Documentos autorizados utilizados en ventas excepto N/C N/D</field> |
2385 | + </record> |
2386 | + <record id="19" model="sri.voucher.type"> |
2387 | + <field name="code">19</field> |
2388 | + <field name="name">Comprobantes de Pago de Cuotas o Aportes</field> |
2389 | + </record> |
2390 | + <record id="20" model="sri.voucher.type"> |
2391 | + <field name="code">20</field> |
2392 | + <field name="name">Documentos por Servicios Administrativos emitidos por Inst. del Estado</field> |
2393 | + </record> |
2394 | + <record id="21" model="sri.voucher.type"> |
2395 | + <field name="code">21</field> |
2396 | + <field name="name">Carta de Porte Aéreo</field> |
2397 | + </record> |
2398 | + <record id="22" model="sri.voucher.type"> |
2399 | + <field name="code">22</field> |
2400 | + <field name="name">RECAP</field> |
2401 | + </record> |
2402 | + <record id="23" model="sri.voucher.type"> |
2403 | + <field name="code">23</field> |
2404 | + <field name="name">Nota de Crédito TC</field> |
2405 | + </record> |
2406 | + <record id="24" model="sri.voucher.type"> |
2407 | + <field name="code">24</field> |
2408 | + <field name="name">Nota de Débito TC</field> |
2409 | + </record> |
2410 | + <record id="41" model="sri.voucher.type"> |
2411 | + <field name="code">41</field> |
2412 | + <field name="name">Comprobante de venta emitido por reembolso</field> |
2413 | + </record> |
2414 | + <record id="42" model="sri.voucher.type"> |
2415 | + <field name="code">42</field> |
2416 | + <field name="name">Documento agente de retención Presuntiva</field> |
2417 | + </record> |
2418 | + <record id="43" model="sri.voucher.type"> |
2419 | + <field name="code">43</field> |
2420 | + <field name="name">Liquidacion para Explotacion y Exploracion de Hidrocarburos</field> |
2421 | + </record> |
2422 | + <record id="44" model="sri.voucher.type"> |
2423 | + <field name="code">44</field> |
2424 | + <field name="name">Comprobante de Contribuciones y Aportes</field> |
2425 | + </record> |
2426 | + <record id="45" model="sri.voucher.type"> |
2427 | + <field name="code">45</field> |
2428 | + <field name="name">Liquidación por reclamos de aseguradoras</field> |
2429 | + </record> |
2430 | + <record id="47" model="sri.voucher.type"> |
2431 | + <field name="code">47</field> |
2432 | + <field name="name">Nota de Crédito por Reembolso Emitida por Intermediario</field> |
2433 | + </record> |
2434 | + <record id="48" model="sri.voucher.type"> |
2435 | + <field name="code">48</field> |
2436 | + <field name="name">Nota de Débito por Reembolso Emitida por Intermediario</field> |
2437 | + </record> |
2438 | + <record id="49" model="sri.voucher.type"> |
2439 | + <field name="code">49</field> |
2440 | + <field name="name">Proveedor Directo de Exportador Bajo Régimen Especial</field> |
2441 | + </record> |
2442 | + <record id="50" model="sri.voucher.type"> |
2443 | + <field name="code">50</field> |
2444 | + <field name="name">A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2445 | + </record> |
2446 | + <record id="51" model="sri.voucher.type"> |
2447 | + <field name="code">51</field> |
2448 | + <field name="name">N/C A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2449 | + </record> |
2450 | + <record id="52" model="sri.voucher.type"> |
2451 | + <field name="code">52</field> |
2452 | + <field name="name">N/D A Inst. Estado y Empr. Públicas que percibe ingreso exento de Imp. Renta</field> |
2453 | + </record> |
2454 | + </data> |
2455 | +</openerp> |
2456 | \ No newline at end of file |
2457 | |
2458 | === added file 'ecua_anexos_ats/data/tipo_transaccion.xml' |
2459 | --- ecua_anexos_ats/data/tipo_transaccion.xml 1970-01-01 00:00:00 +0000 |
2460 | +++ ecua_anexos_ats/data/tipo_transaccion.xml 2013-05-02 22:04:32 +0000 |
2461 | @@ -0,0 +1,117 @@ |
2462 | +<?xml version="1.0" encoding="UTF-8"?> |
2463 | +<openerp> |
2464 | + <data noupdate="1"> |
2465 | + <record id="01" model="sri.transaction.usage"> |
2466 | + <field name="code">01</field> |
2467 | + <field name="name">COMPRA</field> |
2468 | + <field name="type_identification">ruc</field> |
2469 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('02'),ref('03'),ref('04'),ref('05'),ref('07'),ref('08'),ref('09'),ref('15'),ref('21'),ref('41'),ref('42'),ref('43'),ref('44'), ref('45'), ref('47'), ref('48')])]"/> |
2470 | + </record> |
2471 | + |
2472 | + <record id="02" model="sri.transaction.usage"> |
2473 | + <field name="code">02</field> |
2474 | + <field name="name">COMPRA</field> |
2475 | + <field name="type_identification">cedula</field> |
2476 | + <field name="voucher_type_ids" eval="[(6,0,[ref('03'),ref('04'),ref('05'),ref('19'),ref('41')])]"/> |
2477 | + </record> |
2478 | + |
2479 | + <record id="03" model="sri.transaction.usage"> |
2480 | + <field name="code">03</field> |
2481 | + <field name="name">COMPRA</field> |
2482 | + <field name="type_identification">pasaporte</field> |
2483 | + <field name="voucher_type_ids" eval="[(6,0,[ref('03'),ref('04'),ref('05'),ref('19'),ref('41'),ref('45')])]"/> |
2484 | + </record> |
2485 | + |
2486 | + <record id="04" model="sri.transaction.usage"> |
2487 | + <field name="code">04</field> |
2488 | + <field name="name">VENTA</field> |
2489 | + <field name="type_identification">ruc</field> |
2490 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04'),ref('05'),ref('07'),ref('08'),ref('09'),ref('15'),ref('21'),ref('41'),ref('42'),ref('43'),ref('44'),ref('45'),ref('47'),ref('48'),ref('49'),ref('50'),ref('51'),ref('52')])]"/> |
2491 | + </record> |
2492 | + |
2493 | + <record id="05" model="sri.transaction.usage"> |
2494 | + <field name="code">05</field> |
2495 | + <field name="name">VENTA</field> |
2496 | + <field name="type_identification">cedula</field> |
2497 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04'),ref('05'),ref('18'),ref('41'),ref('44'),ref('47'),ref('48')])]"/> |
2498 | + </record> |
2499 | + |
2500 | + <record id="06" model="sri.transaction.usage"> |
2501 | + <field name="code">06</field> |
2502 | + <field name="name">VENTA</field> |
2503 | + <field name="type_identification">pasaporte</field> |
2504 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04'),ref('05'),ref('18'),ref('41'),ref('44'),ref('47'),ref('48')])]"/> |
2505 | + </record> |
2506 | + |
2507 | + <record id="07" model="sri.transaction.usage"> |
2508 | + <field name="code">07</field> |
2509 | + <field name="name">VENTA</field> |
2510 | + <field name="type_identification">consu_final</field> |
2511 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04'),ref('05'),ref('18')])]"/> |
2512 | + </record> |
2513 | + |
2514 | + <record id="09" model="sri.transaction.usage"> |
2515 | + <field name="code">09</field> |
2516 | + <field name="name">EXPORTACION</field> |
2517 | + <field name="type_identification">export</field> |
2518 | + <field name="voucher_type_ids" eval="[(6,0,[ref('01'),ref('04'),ref('05'),ref('16'),ref('41'),ref('47'),ref('48')])]"/> |
2519 | + </record> |
2520 | + <!-- |
2521 | + <record id="10" model="sri.transaction.usage"> |
2522 | + <field name="code">10</field> |
2523 | + <field name="name">TARJETA DE CREDITO</field> |
2524 | + <field name="type_identification">ruc</field> |
2525 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2526 | + </record> |
2527 | + |
2528 | + <record id="11" model="sri.transaction.usage"> |
2529 | + <field name="code">11</field> |
2530 | + <field name="name">TARJETA DE CREDITO</field> |
2531 | + <field name="type_identification">pasaporte</field> |
2532 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2533 | + </record> |
2534 | + |
2535 | + <record id="12" model="sri.transaction.usage"> |
2536 | + <field name="code">12</field> |
2537 | + <field name="name">RENDIMIENTOS FINANCIEROS</field> |
2538 | + <field name="type_identification">ruc</field> |
2539 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2540 | + </record> |
2541 | + |
2542 | + <record id="13" model="sri.transaction.usage"> |
2543 | + <field name="code">13</field> |
2544 | + <field name="name">RENDIMIENTOS FINANCIEROS</field> |
2545 | + <field name="type_identification">cedula</field> |
2546 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2547 | + </record> |
2548 | + |
2549 | + <record id="14" model="sri.transaction.usage"> |
2550 | + <field name="code">14</field> |
2551 | + <field name="name">RENDIMIENTOS FINANCIEROS</field> |
2552 | + <field name="type_identification">pasaporte</field> |
2553 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2554 | + </record> |
2555 | + |
2556 | + <record id="15" model="sri.transaction.usage"> |
2557 | + <field name="code">15</field> |
2558 | + <field name="name">FONDOS Y FIDEICOMISOS</field> |
2559 | + <field name="type_identification">ruc</field> |
2560 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2561 | + </record> |
2562 | + |
2563 | + <record id="16" model="sri.transaction.usage"> |
2564 | + <field name="code">16</field> |
2565 | + <field name="name">FONDOS Y FIDEICOMISOS</field> |
2566 | + <field name="type_identification">cedula</field> |
2567 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2568 | + </record> |
2569 | + |
2570 | + <record id="17" model="sri.transaction.usage"> |
2571 | + <field name="code">17</field> |
2572 | + <field name="name">FONDOS Y FIDEICOMISOS</field> |
2573 | + <field name="type_identification">pasaporte</field> |
2574 | + <field name="voucher_type_ids" eval="[(6,0,[ref('04')])]"/> |
2575 | + </record> |
2576 | + --> |
2577 | + </data> |
2578 | +</openerp> |
2579 | \ No newline at end of file |
2580 | |
2581 | === added directory 'ecua_anexos_ats/documentacion' |
2582 | === added file 'ecua_anexos_ats/documentacion/CATALOGO_ATS_JUN.xls' |
2583 | Binary files ecua_anexos_ats/documentacion/CATALOGO_ATS_JUN.xls 1970-01-01 00:00:00 +0000 and ecua_anexos_ats/documentacion/CATALOGO_ATS_JUN.xls 2013-05-02 22:04:32 +0000 differ |
2584 | === added file 'ecua_anexos_ats/documentacion/Ejemplo_ATS_XML.xml' |
2585 | --- ecua_anexos_ats/documentacion/Ejemplo_ATS_XML.xml 1970-01-01 00:00:00 +0000 |
2586 | +++ ecua_anexos_ats/documentacion/Ejemplo_ATS_XML.xml 2013-05-02 22:04:32 +0000 |
2587 | @@ -0,0 +1,261 @@ |
2588 | +<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> |
2589 | +<iva> |
2590 | + <numeroRuc>1713657334001</numeroRuc> |
2591 | + <razonSocial>SRI</razonSocial> |
2592 | + <anio>2008</anio> |
2593 | + <mes>01</mes> |
2594 | + |
2595 | + <compras> |
2596 | + <detalleCompras> |
2597 | + <codSustento>01</codSustento> |
2598 | + <tpIdProv>01</tpIdProv> |
2599 | + <idProv>1713657334001</idProv> |
2600 | + <tipoComprobante>1</tipoComprobante> |
2601 | + <fechaRegistro>15/01/2008</fechaRegistro> |
2602 | + <establecimiento>001</establecimiento> |
2603 | + <puntoEmision>001</puntoEmision> |
2604 | + <secuencial>123456789</secuencial> |
2605 | + <fechaEmision>14/01/2008</fechaEmision> |
2606 | + <autorizacion>1104358792</autorizacion> |
2607 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2608 | + <baseImponible>1000.00</baseImponible> |
2609 | + <baseImpGrav>1000.00</baseImpGrav> |
2610 | + <montoIce>150.00</montoIce> |
2611 | + <montoIva>120.00</montoIva> |
2612 | + <valorRetBienes>36.00</valorRetBienes> |
2613 | + <valorRetServicios>84.00</valorRetServicios> |
2614 | + <valRetServ100>120.00</valRetServ100> |
2615 | + <air> |
2616 | + <detalleAir> |
2617 | + <codRetAir>309</codRetAir> |
2618 | + <baseImpAir>1000.00</baseImpAir> |
2619 | + <porcentajeAir>2.00</porcentajeAir> |
2620 | + <valRetAir>20.00</valRetAir> |
2621 | + </detalleAir> |
2622 | + </air> |
2623 | + |
2624 | + <estabRetencion1>001</estabRetencion1> |
2625 | + <ptoEmiRetencion1>001</ptoEmiRetencion1> |
2626 | + <secRetencion1>123456789</secRetencion1> |
2627 | + <autRetencion1>1104369877</autRetencion1> |
2628 | + <fechaEmiRet1>15/01/2008</fechaEmiRet1> |
2629 | + |
2630 | + |
2631 | + <docModificado>0</docModificado> |
2632 | + <estabModificado>000</estabModificado> |
2633 | + <ptoEmiModificado>000</ptoEmiModificado> |
2634 | + <secModificado>0</secModificado> |
2635 | + <autModificado>000</autModificado> |
2636 | + </detalleCompras> |
2637 | + |
2638 | + |
2639 | + |
2640 | + <detalleCompras> |
2641 | + <codSustento>02</codSustento> |
2642 | + <tpIdProv>02</tpIdProv> |
2643 | + <idProv>1713657334</idProv> |
2644 | + <tipoComprobante>3</tipoComprobante> |
2645 | + <fechaRegistro>31/01/2008</fechaRegistro> |
2646 | + <establecimiento>001</establecimiento> |
2647 | + <puntoEmision>001</puntoEmision> |
2648 | + <secuencial>123456789</secuencial> |
2649 | + <fechaEmision>30/01/2008</fechaEmision> |
2650 | + <autorizacion>1104587963</autorizacion> |
2651 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2652 | + <baseImponible>1000.00</baseImponible> |
2653 | + <baseImpGrav>1000.00</baseImpGrav> |
2654 | + <montoIce>150.00</montoIce> |
2655 | + <montoIva>120.00</montoIva> |
2656 | + <valorRetBienes>36.00</valorRetBienes> |
2657 | + <valorRetServicios>84.00</valorRetServicios> |
2658 | + <valRetServ100>120.00</valRetServ100> |
2659 | + <air> |
2660 | + <detalleAir> |
2661 | + <codRetAir>304</codRetAir> |
2662 | + <baseImpAir>1000.00</baseImpAir> |
2663 | + <porcentajeAir>2.00</porcentajeAir> |
2664 | + <valRetAir>20.00</valRetAir> |
2665 | + </detalleAir> |
2666 | + </air> |
2667 | + |
2668 | + <estabRetencion1>001</estabRetencion1> |
2669 | + <ptoEmiRetencion1>001</ptoEmiRetencion1> |
2670 | + <secRetencion1>123456789</secRetencion1> |
2671 | + <autRetencion1>1104523698</autRetencion1> |
2672 | + <fechaEmiRet1>31/01/2008</fechaEmiRet1> |
2673 | + |
2674 | + |
2675 | + <docModificado>0</docModificado> |
2676 | + <estabModificado>000</estabModificado> |
2677 | + <ptoEmiModificado>000</ptoEmiModificado> |
2678 | + <secModificado>0</secModificado> |
2679 | + <autModificado>000</autModificado> |
2680 | + </detalleCompras> |
2681 | + |
2682 | + |
2683 | + |
2684 | + <detalleCompras> |
2685 | + <codSustento>02</codSustento> |
2686 | + <tpIdProv>03</tpIdProv> |
2687 | + <idProv>1713328506ASD</idProv> |
2688 | + <tipoComprobante>3</tipoComprobante> |
2689 | + <fechaRegistro>20/01/2008</fechaRegistro> |
2690 | + <establecimiento>001</establecimiento> |
2691 | + <puntoEmision>001</puntoEmision> |
2692 | + <secuencial>123456789</secuencial> |
2693 | + <fechaEmision>19/01/2008</fechaEmision> |
2694 | + <autorizacion>1104523698</autorizacion> |
2695 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2696 | + <baseImponible>1000.00</baseImponible> |
2697 | + <baseImpGrav>1000.00</baseImpGrav> |
2698 | + <montoIce>150.00</montoIce> |
2699 | + <montoIva>120.00</montoIva> |
2700 | + <valorRetBienes>36.00</valorRetBienes> |
2701 | + <valorRetServicios>84.00</valorRetServicios> |
2702 | + <valRetServ100>120.00</valRetServ100> |
2703 | + <air> |
2704 | + <detalleAir> |
2705 | + <codRetAir>305</codRetAir> |
2706 | + <baseImpAir>1000.00</baseImpAir> |
2707 | + <porcentajeAir>25.00</porcentajeAir> |
2708 | + <valRetAir>250.00</valRetAir> |
2709 | + </detalleAir> |
2710 | + </air> |
2711 | + |
2712 | + <estabRetencion1>001</estabRetencion1> |
2713 | + <ptoEmiRetencion1>001</ptoEmiRetencion1> |
2714 | + <secRetencion1>123456789</secRetencion1> |
2715 | + <autRetencion1>1104578963</autRetencion1> |
2716 | + <fechaEmiRet1>20/01/2008</fechaEmiRet1> |
2717 | + |
2718 | + |
2719 | + |
2720 | + |
2721 | + |
2722 | + <docModificado>0</docModificado> |
2723 | + <estabModificado>000</estabModificado> |
2724 | + <ptoEmiModificado>000</ptoEmiModificado> |
2725 | + <secModificado>0</secModificado> |
2726 | + <autModificado>000</autModificado> |
2727 | + </detalleCompras> |
2728 | + |
2729 | + </compras> |
2730 | + |
2731 | + |
2732 | + <ventas> |
2733 | + <detalleVentas> |
2734 | + <tpIdCliente>04</tpIdCliente> |
2735 | + <idCliente>1713657334001</idCliente> |
2736 | + <tipoComprobante>18</tipoComprobante> |
2737 | + <numeroComprobantes>1</numeroComprobantes> |
2738 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2739 | + <baseImponible>1000.00</baseImponible> |
2740 | + <baseImpGrav>1000.00</baseImpGrav> |
2741 | + <montoIva>120.00</montoIva> |
2742 | + <valorRetIva>84.00</valorRetIva> |
2743 | + <valorRetRenta>24.00</valorRetRenta> |
2744 | + </detalleVentas> |
2745 | + |
2746 | + |
2747 | + <detalleVentas> |
2748 | + <tpIdCliente>05</tpIdCliente> |
2749 | + <idCliente>1713657334</idCliente> |
2750 | + <tipoComprobante>18</tipoComprobante> |
2751 | + <numeroComprobantes>1</numeroComprobantes> |
2752 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2753 | + <baseImponible>1000.00</baseImponible> |
2754 | + <baseImpGrav>1000.00</baseImpGrav> |
2755 | + <montoIva>120.00</montoIva> |
2756 | + <valorRetIva>36.00</valorRetIva> |
2757 | + <valorRetRenta>750.00</valorRetRenta> |
2758 | + </detalleVentas> |
2759 | + |
2760 | + |
2761 | + <detalleVentas> |
2762 | + <tpIdCliente>06</tpIdCliente> |
2763 | + <idCliente>1713657334ASD</idCliente> |
2764 | + <tipoComprobante>18</tipoComprobante> |
2765 | + <numeroComprobantes>1</numeroComprobantes> |
2766 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2767 | + <baseImponible>1000.00</baseImponible> |
2768 | + <baseImpGrav>1000.00</baseImpGrav> |
2769 | + <montoIva>120.00</montoIva> |
2770 | + <valorRetIva>120.00</valorRetIva> |
2771 | + <valorRetRenta>150.00</valorRetRenta> |
2772 | + </detalleVentas> |
2773 | + |
2774 | + |
2775 | + <detalleVentas> |
2776 | + <tpIdCliente>07</tpIdCliente> |
2777 | + <idCliente>9999999999999</idCliente> |
2778 | + <tipoComprobante>18</tipoComprobante> |
2779 | + <numeroComprobantes>1</numeroComprobantes> |
2780 | + <baseNoGraIva>1000.00</baseNoGraIva> |
2781 | + <baseImponible>1000.00</baseImponible> |
2782 | + <baseImpGrav>1000.00</baseImpGrav> |
2783 | + <montoIva>120.00</montoIva> |
2784 | + <valorRetIva>120.00</valorRetIva> |
2785 | + <valorRetRenta>150.00</valorRetRenta> |
2786 | + </detalleVentas> |
2787 | + </ventas> |
2788 | + |
2789 | + |
2790 | + <exportaciones> |
2791 | + <detalleExportaciones> |
2792 | + <exportacionDe>1</exportacionDe> |
2793 | + <tipoComprobante>1</tipoComprobante> |
2794 | + <distAduanero>019</distAduanero> |
2795 | + <anio>2008</anio> |
2796 | + <regimen>10</regimen> |
2797 | + <correlativo>000001</correlativo> |
2798 | + <verificador>2</verificador> |
2799 | + <docTransp>0000000000001</docTransp> |
2800 | + <fechaEmbarque>15/01/2008</fechaEmbarque> |
2801 | + <fue>0000000000001</fue> |
2802 | + <valorFOB>1000.00</valorFOB> |
2803 | + <valorFOBComprobante>1000.00</valorFOBComprobante> |
2804 | + <establecimiento>001</establecimiento> |
2805 | + <puntoEmision>001</puntoEmision> |
2806 | + <secuencial>123456789</secuencial> |
2807 | + <autorizacion>1104523547</autorizacion> |
2808 | + <fechaEmision>15/01/2008</fechaEmision> |
2809 | + </detalleExportaciones> |
2810 | + |
2811 | + |
2812 | + <detalleExportaciones> |
2813 | + <exportacionDe>2</exportacionDe> |
2814 | + <tipoComprobante>16</tipoComprobante> |
2815 | + <fechaEmbarque>25/01/2008</fechaEmbarque> |
2816 | + <fue>0000000000001</fue> |
2817 | + <valorFOB>1000.00</valorFOB> |
2818 | + <valorFOBComprobante>1000.00</valorFOBComprobante> |
2819 | + <establecimiento>001</establecimiento> |
2820 | + <puntoEmision>001</puntoEmision> |
2821 | + <secuencial>123456789</secuencial> |
2822 | + <autorizacion>1104523548</autorizacion> |
2823 | + <fechaEmision>25/01/2008</fechaEmision> |
2824 | + </detalleExportaciones> |
2825 | + </exportaciones> |
2826 | + |
2827 | + <anulados> |
2828 | + <detalleAnulados> |
2829 | + <tipoComprobante>1</tipoComprobante> |
2830 | + <establecimiento>001</establecimiento> |
2831 | + <puntoEmision>001</puntoEmision> |
2832 | + <secuencialInicio>50</secuencialInicio> |
2833 | + <secuencialFin>50</secuencialFin> |
2834 | + <autorizacion>1104523698</autorizacion> |
2835 | + </detalleAnulados> |
2836 | + |
2837 | + |
2838 | + <detalleAnulados> |
2839 | + <tipoComprobante>2</tipoComprobante> |
2840 | + <establecimiento>001</establecimiento> |
2841 | + <puntoEmision>001</puntoEmision> |
2842 | + <secuencialInicio>1000</secuencialInicio> |
2843 | + <secuencialFin>2000</secuencialFin> |
2844 | + <autorizacion>123456789</autorizacion> |
2845 | + </detalleAnulados> |
2846 | + </anulados> |
2847 | + |
2848 | +</iva> |
2849 | \ No newline at end of file |
2850 | |
2851 | === added file 'ecua_anexos_ats/documentacion/FICHA_TECNICA_ATS_JUNIO_2010.doc' |
2852 | Binary files ecua_anexos_ats/documentacion/FICHA_TECNICA_ATS_JUNIO_2010.doc 1970-01-01 00:00:00 +0000 and ecua_anexos_ats/documentacion/FICHA_TECNICA_ATS_JUNIO_2010.doc 2013-05-02 22:04:32 +0000 differ |
2853 | === added file 'ecua_anexos_ats/documentacion/at.xsd' |
2854 | --- ecua_anexos_ats/documentacion/at.xsd 1970-01-01 00:00:00 +0000 |
2855 | +++ ecua_anexos_ats/documentacion/at.xsd 2013-05-02 22:04:32 +0000 |
2856 | @@ -0,0 +1,945 @@ |
2857 | +<?xml version="1.0" encoding="ISO-8859-1"?> |
2858 | +<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com) by TEAM (RENEGADE) --> |
2859 | +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
2860 | + <xsd:simpleType name="numeroRucType"> |
2861 | + <xsd:annotation> |
2862 | + <xsd:documentation> |
2863 | + </xsd:documentation> |
2864 | + </xsd:annotation> |
2865 | + <xsd:restriction base="xsd:string"> |
2866 | + <xsd:pattern value="[0-9]{10}001"/> |
2867 | + </xsd:restriction> |
2868 | + </xsd:simpleType> |
2869 | + <xsd:simpleType name="fechaType"> |
2870 | + <xsd:annotation> |
2871 | + <xsd:documentation> |
2872 | + </xsd:documentation> |
2873 | + </xsd:annotation> |
2874 | + <xsd:restriction base="xsd:string"> |
2875 | + <xsd:pattern value="(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d"/> |
2876 | + </xsd:restriction> |
2877 | + </xsd:simpleType> |
2878 | + <xsd:simpleType name="fechaRetType"> |
2879 | + <xsd:annotation> |
2880 | + <xsd:documentation> |
2881 | + </xsd:documentation> |
2882 | + </xsd:annotation> |
2883 | + <xsd:restriction base="xsd:string"> |
2884 | + <xsd:pattern value="[0-9]{2}/[0-9]{2}/[0-9]{4}"/> |
2885 | + </xsd:restriction> |
2886 | + </xsd:simpleType> |
2887 | + <xsd:simpleType name="establecimientoType"> |
2888 | + <xsd:annotation> |
2889 | + <xsd:documentation> |
2890 | + </xsd:documentation> |
2891 | + </xsd:annotation> |
2892 | + <xsd:restriction base="xsd:string"> |
2893 | + <xsd:pattern value="[0-9]{3}"/> |
2894 | + </xsd:restriction> |
2895 | + </xsd:simpleType> |
2896 | + <xsd:simpleType name="tarjetaCreditoType"> |
2897 | + <xsd:annotation> |
2898 | + <xsd:documentation> |
2899 | + </xsd:documentation> |
2900 | + </xsd:annotation> |
2901 | + <xsd:restriction base="xsd:string"> |
2902 | + <xsd:maxLength value="2"/> |
2903 | + <xsd:minLength value="2"/> |
2904 | + <xsd:pattern value="[0-9]{2}"/> |
2905 | + </xsd:restriction> |
2906 | + </xsd:simpleType> |
2907 | + <xsd:simpleType name="ptoEmisionType"> |
2908 | + <xsd:annotation> |
2909 | + <xsd:documentation> |
2910 | + </xsd:documentation> |
2911 | + </xsd:annotation> |
2912 | + <xsd:restriction base="xsd:string"> |
2913 | + <xsd:pattern value="[0-9]{3}"/> |
2914 | + </xsd:restriction> |
2915 | + </xsd:simpleType> |
2916 | + <xsd:simpleType name="razonSocialType"> |
2917 | + <xsd:annotation> |
2918 | + <xsd:documentation>Razon Social del Informante</xsd:documentation> |
2919 | + </xsd:annotation> |
2920 | + <xsd:restriction base="xsd:string"> |
2921 | + <xsd:maxLength value="60"/> |
2922 | + <xsd:minLength value="1"/> |
2923 | + </xsd:restriction> |
2924 | + </xsd:simpleType> |
2925 | + <xsd:simpleType name="tipoClienteType"> |
2926 | + <xsd:restriction base="xsd:string"> |
2927 | + <xsd:length value="1"/> |
2928 | + <xsd:enumeration value="R"/> |
2929 | + <xsd:enumeration value="C"/> |
2930 | + <xsd:enumeration value="P"/> |
2931 | + </xsd:restriction> |
2932 | + </xsd:simpleType> |
2933 | + <xsd:simpleType name="anioType"> |
2934 | + <xsd:annotation> |
2935 | + <xsd:documentation>Se detalla el anio correspondiente a la informacion que esta presentando el contribuyente, consta de cuatro diÃ___Ã__Ã_Âgitos: Ej: 2003, 2004, 2005, etc.</xsd:documentation> |
2936 | + </xsd:annotation> |
2937 | + <xsd:restriction base="xsd:integer"> |
2938 | + <xsd:minInclusive value="2000"/> |
2939 | + <xsd:maxInclusive value="9999"/> |
2940 | + </xsd:restriction> |
2941 | + </xsd:simpleType> |
2942 | + <xsd:simpleType name="tipoComprobanteType"> |
2943 | + <xsd:annotation> |
2944 | + <xsd:documentation>Se detalla los tipos de comprobantes vigentes segun el tipo de transaccion seleccionada</xsd:documentation> |
2945 | + </xsd:annotation> |
2946 | + <xsd:restriction base="xsd:integer"> |
2947 | + <xsd:minInclusive value="1"/> |
2948 | + <xsd:maxInclusive value="100"/> |
2949 | + </xsd:restriction> |
2950 | + </xsd:simpleType> |
2951 | + <xsd:simpleType name="establecimientoRecapType"> |
2952 | + <xsd:annotation> |
2953 | + <xsd:documentation>Se detalla los tipos de comprobantes vigentes para tarjetas de credito |
2954 | + </xsd:documentation> |
2955 | + </xsd:annotation> |
2956 | + <xsd:restriction base="xsd:integer"> |
2957 | + <xsd:minInclusive value="1"/> |
2958 | + <xsd:maxInclusive value="100"/> |
2959 | + </xsd:restriction> |
2960 | + </xsd:simpleType> |
2961 | + <xsd:simpleType name="tipoFideicomisoType"> |
2962 | + <xsd:annotation> |
2963 | + <xsd:documentation>Se detalla los tipos de Fideicomisos |
2964 | + </xsd:documentation> |
2965 | + </xsd:annotation> |
2966 | + <xsd:restriction base="xsd:integer"> |
2967 | + <xsd:minInclusive value="1"/> |
2968 | + <xsd:maxInclusive value="100"/> |
2969 | + </xsd:restriction> |
2970 | + </xsd:simpleType> |
2971 | + <xsd:simpleType name="exportacionDeType"> |
2972 | + <xsd:restriction base="xsd:integer"> |
2973 | + <xsd:minInclusive value="1"/> |
2974 | + <xsd:maxInclusive value="2"/> |
2975 | + </xsd:restriction> |
2976 | + </xsd:simpleType> |
2977 | + <xsd:simpleType name="docModificadoType"> |
2978 | + <xsd:annotation> |
2979 | + <xsd:documentation>Se detalla los tipos de comprobantes de venta autorizados </xsd:documentation> |
2980 | + </xsd:annotation> |
2981 | + <xsd:restriction base="xsd:integer"> |
2982 | + <xsd:minInclusive value="0"/> |
2983 | + <xsd:maxInclusive value="100"/> |
2984 | + </xsd:restriction> |
2985 | + </xsd:simpleType> |
2986 | + <xsd:simpleType name="secuencialType"> |
2987 | + <xsd:annotation> |
2988 | + <xsd:documentation>Se detalla el secuencial del comprobante de venta</xsd:documentation> |
2989 | + </xsd:annotation> |
2990 | + <xsd:restriction base="xsd:integer"> |
2991 | + <xsd:minInclusive value="1"/> |
2992 | + <xsd:maxInclusive value="999999999"/> |
2993 | + </xsd:restriction> |
2994 | + </xsd:simpleType> |
2995 | + <xsd:simpleType name="secRetencionType"> |
2996 | + <xsd:annotation> |
2997 | + <xsd:documentation>Se detalla el secuencial del comprobante de retencion</xsd:documentation> |
2998 | + </xsd:annotation> |
2999 | + <xsd:restriction base="xsd:integer"> |
3000 | + <xsd:minInclusive value="0"/> |
3001 | + <xsd:maxInclusive value="999999999"/> |
3002 | + </xsd:restriction> |
3003 | + </xsd:simpleType> |
3004 | + <xsd:simpleType name="secModType"> |
3005 | + <xsd:annotation> |
3006 | + <xsd:documentation>Se detalla el secuencial del comprobante modificado</xsd:documentation> |
3007 | + </xsd:annotation> |
3008 | + <xsd:restriction base="xsd:integer"> |
3009 | + <xsd:minInclusive value="0"/> |
3010 | + <xsd:maxInclusive value="999999999"/> |
3011 | + </xsd:restriction> |
3012 | + </xsd:simpleType> |
3013 | + <xsd:simpleType name="numeroComprobantesType"> |
3014 | + <xsd:annotation> |
3015 | + <xsd:documentation>Se detalla el numero de comprobantes emitidos</xsd:documentation> |
3016 | + </xsd:annotation> |
3017 | + <xsd:restriction base="xsd:integer"> |
3018 | + <xsd:minInclusive value="0"/> |
3019 | + <xsd:maxInclusive value="999999999"/> |
3020 | + </xsd:restriction> |
3021 | + </xsd:simpleType> |
3022 | + <xsd:simpleType name="numeroVouchersType"> |
3023 | + <xsd:annotation> |
3024 | + <xsd:documentation>Se detalla el numero de vouchers emitidos</xsd:documentation> |
3025 | + </xsd:annotation> |
3026 | + <xsd:restriction base="xsd:integer"> |
3027 | + <xsd:minInclusive value="1"/> |
3028 | + <xsd:maxInclusive value="999999999"/> |
3029 | + </xsd:restriction> |
3030 | + </xsd:simpleType> |
3031 | + <xsd:simpleType name="porcentajeAirType"> |
3032 | + <xsd:annotation> |
3033 | + <xsd:documentation>Porcentaje AIR</xsd:documentation> |
3034 | + </xsd:annotation> |
3035 | + <xsd:restriction base="xsd:decimal"> |
3036 | + <xsd:totalDigits value="5"/> |
3037 | + <xsd:fractionDigits value="2"/> |
3038 | + <xsd:minInclusive value="0"/> |
3039 | + <xsd:maxInclusive value="100"/> |
3040 | + </xsd:restriction> |
3041 | + </xsd:simpleType> |
3042 | + <xsd:simpleType name="porRetFType"> |
3043 | + <xsd:annotation> |
3044 | + <xsd:documentation>Porcentaje Retencion de Fideicomisos</xsd:documentation> |
3045 | + </xsd:annotation> |
3046 | + <xsd:restriction base="xsd:decimal"> |
3047 | + <xsd:totalDigits value="5"/> |
3048 | + <xsd:fractionDigits value="2"/> |
3049 | + <xsd:minInclusive value="0"/> |
3050 | + <xsd:maxInclusive value="100"/> |
3051 | + </xsd:restriction> |
3052 | + </xsd:simpleType> |
3053 | + <xsd:simpleType name="codRetAirType"> |
3054 | + <xsd:annotation> |
3055 | + <xsd:documentation>Se detalla el concepto de retencion de Renta </xsd:documentation> |
3056 | + </xsd:annotation> |
3057 | + <xsd:restriction base="xsd:string"> |
3058 | + <xsd:maxLength value="5"/> |
3059 | + <xsd:minLength value="3"/> |
3060 | + <xsd:pattern value="[A-Za-z0-9]*"/> |
3061 | + </xsd:restriction> |
3062 | + </xsd:simpleType> |
3063 | + <xsd:simpleType name="distAduaneroType"> |
3064 | + <xsd:annotation> |
3065 | + <xsd:documentation>Corresponde al numero de distrito aduanero |
3066 | + </xsd:documentation> |
3067 | + </xsd:annotation> |
3068 | + <xsd:restriction base="xsd:string"> |
3069 | + <xsd:maxLength value="3"/> |
3070 | + <xsd:minLength value="3"/> |
3071 | + <xsd:pattern value="[0-9]{3}"/> |
3072 | + </xsd:restriction> |
3073 | + </xsd:simpleType> |
3074 | + <xsd:simpleType name="regimenType"> |
3075 | + <xsd:annotation> |
3076 | + <xsd:documentation>Corresponde al numero de regimen |
3077 | + </xsd:documentation> |
3078 | + </xsd:annotation> |
3079 | + <xsd:restriction base="xsd:string"> |
3080 | + <xsd:maxLength value="2"/> |
3081 | + <xsd:minLength value="2"/> |
3082 | + </xsd:restriction> |
3083 | + </xsd:simpleType> |
3084 | + <xsd:simpleType name="correlativoType"> |
3085 | + <xsd:annotation> |
3086 | + <xsd:documentation>Corresponde al numero de correlativo |
3087 | + </xsd:documentation> |
3088 | + </xsd:annotation> |
3089 | + <xsd:restriction base="xsd:string"> |
3090 | + <xsd:maxLength value="6"/> |
3091 | + <xsd:minLength value="6"/> |
3092 | + </xsd:restriction> |
3093 | + </xsd:simpleType> |
3094 | + <xsd:simpleType name="fueType"> |
3095 | + <xsd:annotation> |
3096 | + <xsd:documentation>Corresponde al numero del Fue |
3097 | + </xsd:documentation> |
3098 | + </xsd:annotation> |
3099 | + <xsd:restriction base="xsd:string"> |
3100 | + <xsd:maxLength value="13"/> |
3101 | + <xsd:minLength value="13"/> |
3102 | + </xsd:restriction> |
3103 | + </xsd:simpleType> |
3104 | + <xsd:simpleType name="verificadorType"> |
3105 | + <xsd:annotation> |
3106 | + <xsd:documentation>Corresponde al numero de verificador |
3107 | + </xsd:documentation> |
3108 | + </xsd:annotation> |
3109 | + <xsd:restriction base="xsd:integer"> |
3110 | + <xsd:minInclusive value="0"/> |
3111 | + <xsd:maxInclusive value="999"/> |
3112 | + </xsd:restriction> |
3113 | + </xsd:simpleType> |
3114 | + <xsd:simpleType name="autorizacionType"> |
3115 | + <xsd:annotation> |
3116 | + <xsd:documentation>Corresponde al numero de autorizacion emitido por el situracion para emtir comprobantes de venta |
3117 | + </xsd:documentation> |
3118 | + </xsd:annotation> |
3119 | + <xsd:restriction base="xsd:string"> |
3120 | + <xsd:maxLength value="10"/> |
3121 | + <xsd:minLength value="3"/> |
3122 | + <xsd:pattern value="[0-9]{3,10}"/> |
3123 | + </xsd:restriction> |
3124 | + </xsd:simpleType> |
3125 | + <xsd:simpleType name="autRetencionType"> |
3126 | + <xsd:annotation> |
3127 | + <xsd:documentation>Corresponde al numero de autorizacion emitido por el sistema de Facturacion para emtir comprobantes de venta |
3128 | + </xsd:documentation> |
3129 | + </xsd:annotation> |
3130 | + <xsd:restriction base="xsd:string"> |
3131 | + <xsd:maxLength value="10"/> |
3132 | + <xsd:minLength value="1"/> |
3133 | + <xsd:pattern value="[0-9]{1,10}"/> |
3134 | + </xsd:restriction> |
3135 | + </xsd:simpleType> |
3136 | + <xsd:simpleType name="autModificadoType"> |
3137 | + <xsd:annotation> |
3138 | + <xsd:documentation>Corresponde al numero de autorizacion emitido por el sistema de Facturacion para emtir comprobantes de venta |
3139 | + </xsd:documentation> |
3140 | + </xsd:annotation> |
3141 | + <xsd:restriction base="xsd:string"> |
3142 | + <xsd:maxLength value="10"/> |
3143 | + <xsd:minLength value="1"/> |
3144 | + <xsd:pattern value="[0-9]{1,10}"/> |
3145 | + </xsd:restriction> |
3146 | + </xsd:simpleType> |
3147 | + <xsd:simpleType name="numeroRecapType"> |
3148 | + <xsd:annotation> |
3149 | + <xsd:documentation>Corresponde al numero de recaps emitidos |
3150 | + </xsd:documentation> |
3151 | + </xsd:annotation> |
3152 | + <xsd:restriction base="xsd:string"> |
3153 | + <xsd:maxLength value="15"/> |
3154 | + <xsd:minLength value="1"/> |
3155 | + <xsd:pattern value="[A-Za-z0-9]*"/> |
3156 | + </xsd:restriction> |
3157 | + </xsd:simpleType> |
3158 | + <xsd:simpleType name="codSustentoType"> |
3159 | + <xsd:annotation> |
3160 | + <xsd:documentation>Este campo es obligatorio y su informacion es uno de los codigos de los tipos de sustento tributario</xsd:documentation> |
3161 | + </xsd:annotation> |
3162 | + <xsd:restriction base="xsd:string"> |
3163 | + <xsd:pattern value="[0-9]{2}"/> |
3164 | + </xsd:restriction> |
3165 | + </xsd:simpleType> |
3166 | + <xsd:simpleType name="consumoCeroType"> |
3167 | + <xsd:annotation> |
3168 | + <xsd:documentation>Consumo 0 %</xsd:documentation> |
3169 | + </xsd:annotation> |
3170 | + <xsd:restriction base="xsd:decimal"> |
3171 | + <xsd:totalDigits value="12"/> |
3172 | + <xsd:fractionDigits value="2"/> |
3173 | + <xsd:minInclusive value="0"/> |
3174 | + <xsd:maxInclusive value="9999999999.99"/> |
3175 | + </xsd:restriction> |
3176 | + </xsd:simpleType> |
3177 | + <xsd:simpleType name="consumoGravadoType"> |
3178 | + <xsd:annotation> |
3179 | + <xsd:documentation>Consumo Gravado</xsd:documentation> |
3180 | + </xsd:annotation> |
3181 | + <xsd:restriction base="xsd:decimal"> |
3182 | + <xsd:totalDigits value="12"/> |
3183 | + <xsd:fractionDigits value="2"/> |
3184 | + <xsd:minInclusive value="0"/> |
3185 | + <xsd:maxInclusive value="9999999999.99"/> |
3186 | + </xsd:restriction> |
3187 | + </xsd:simpleType> |
3188 | + <xsd:simpleType name="totalConsumoType"> |
3189 | + <xsd:annotation> |
3190 | + <xsd:documentation>Total del Consumo</xsd:documentation> |
3191 | + </xsd:annotation> |
3192 | + <xsd:restriction base="xsd:decimal"> |
3193 | + <xsd:totalDigits value="12"/> |
3194 | + <xsd:fractionDigits value="2"/> |
3195 | + <xsd:minInclusive value="0"/> |
3196 | + <xsd:maxInclusive value="9999999999.99"/> |
3197 | + </xsd:restriction> |
3198 | + </xsd:simpleType> |
3199 | + <xsd:simpleType name="comisionType"> |
3200 | + <xsd:annotation> |
3201 | + <xsd:documentation>Comision</xsd:documentation> |
3202 | + </xsd:annotation> |
3203 | + <xsd:restriction base="xsd:decimal"> |
3204 | + <xsd:totalDigits value="12"/> |
3205 | + <xsd:fractionDigits value="2"/> |
3206 | + <xsd:minInclusive value="0"/> |
3207 | + <xsd:maxInclusive value="9999999999.99"/> |
3208 | + </xsd:restriction> |
3209 | + </xsd:simpleType> |
3210 | + <xsd:simpleType name="baseImponibleType"> |
3211 | + <xsd:annotation> |
3212 | + <xsd:documentation>Base Imponible 0 %</xsd:documentation> |
3213 | + </xsd:annotation> |
3214 | + <xsd:restriction base="xsd:decimal"> |
3215 | + <xsd:totalDigits value="12"/> |
3216 | + <xsd:fractionDigits value="2"/> |
3217 | + <xsd:minInclusive value="0"/> |
3218 | + <xsd:maxInclusive value="9999999999.99"/> |
3219 | + </xsd:restriction> |
3220 | + </xsd:simpleType> |
3221 | + <xsd:simpleType name="baseImpGravType"> |
3222 | + <xsd:annotation> |
3223 | + <xsd:documentation>Base Imponible Gravada</xsd:documentation> |
3224 | + </xsd:annotation> |
3225 | + <xsd:restriction base="xsd:decimal"> |
3226 | + <xsd:totalDigits value="12"/> |
3227 | + <xsd:fractionDigits value="2"/> |
3228 | + <xsd:minInclusive value="0"/> |
3229 | + <xsd:maxInclusive value="9999999999.99"/> |
3230 | + </xsd:restriction> |
3231 | + </xsd:simpleType> |
3232 | + <xsd:simpleType name="montoIvaType"> |
3233 | + <xsd:annotation> |
3234 | + <xsd:documentation>Monto de IVA</xsd:documentation> |
3235 | + </xsd:annotation> |
3236 | + <xsd:restriction base="xsd:decimal"> |
3237 | + <xsd:totalDigits value="12"/> |
3238 | + <xsd:fractionDigits value="2"/> |
3239 | + <xsd:minInclusive value="0"/> |
3240 | + <xsd:maxInclusive value="9999999999.99"/> |
3241 | + </xsd:restriction> |
3242 | + </xsd:simpleType> |
3243 | + <xsd:simpleType name="montoIvaBienesType"> |
3244 | + <xsd:annotation> |
3245 | + <xsd:documentation>Monto de IVA BIENES </xsd:documentation> |
3246 | + </xsd:annotation> |
3247 | + <xsd:restriction base="xsd:decimal"> |
3248 | + <xsd:totalDigits value="12"/> |
3249 | + <xsd:fractionDigits value="2"/> |
3250 | + <xsd:minInclusive value="0"/> |
3251 | + <xsd:maxInclusive value="9999999999.99"/> |
3252 | + </xsd:restriction> |
3253 | + </xsd:simpleType> |
3254 | + <xsd:simpleType name="totalFType"> |
3255 | + <xsd:annotation> |
3256 | + <xsd:documentation>Valor Total de Fideicomiso por tipo </xsd:documentation> |
3257 | + </xsd:annotation> |
3258 | + <xsd:restriction base="xsd:decimal"> |
3259 | + <xsd:totalDigits value="12"/> |
3260 | + <xsd:fractionDigits value="2"/> |
3261 | + <xsd:minInclusive value="0"/> |
3262 | + <xsd:maxInclusive value="9999999999.99"/> |
3263 | + </xsd:restriction> |
3264 | + </xsd:simpleType> |
3265 | + <xsd:simpleType name="individualFType"> |
3266 | + <xsd:annotation> |
3267 | + <xsd:documentation>Valor Individual de Fideicomiso por tipo </xsd:documentation> |
3268 | + </xsd:annotation> |
3269 | + <xsd:restriction base="xsd:decimal"> |
3270 | + <xsd:totalDigits value="12"/> |
3271 | + <xsd:fractionDigits value="2"/> |
3272 | + <xsd:minInclusive value="0"/> |
3273 | + <xsd:maxInclusive value="9999999999.99"/> |
3274 | + </xsd:restriction> |
3275 | + </xsd:simpleType> |
3276 | + <xsd:simpleType name="montoIvaServicosType"> |
3277 | + <xsd:annotation> |
3278 | + <xsd:documentation>Monto de IVA SERVICIOS </xsd:documentation> |
3279 | + </xsd:annotation> |
3280 | + <xsd:restriction base="xsd:decimal"> |
3281 | + <xsd:totalDigits value="12"/> |
3282 | + <xsd:fractionDigits value="2"/> |
3283 | + <xsd:minInclusive value="0"/> |
3284 | + <xsd:maxInclusive value="9999999999.99"/> |
3285 | + </xsd:restriction> |
3286 | + </xsd:simpleType> |
3287 | + <xsd:simpleType name="baseImpIceType"> |
3288 | + <xsd:annotation> |
3289 | + <xsd:documentation>Base Imponible ICE</xsd:documentation> |
3290 | + </xsd:annotation> |
3291 | + <xsd:restriction base="xsd:decimal"> |
3292 | + <xsd:totalDigits value="12"/> |
3293 | + <xsd:fractionDigits value="2"/> |
3294 | + <xsd:minInclusive value="0"/> |
3295 | + <xsd:maxInclusive value="9999999999.99"/> |
3296 | + </xsd:restriction> |
3297 | + </xsd:simpleType> |
3298 | + <xsd:simpleType name="montoIceType"> |
3299 | + <xsd:annotation> |
3300 | + <xsd:documentation>Monto de ICE</xsd:documentation> |
3301 | + </xsd:annotation> |
3302 | + <xsd:restriction base="xsd:decimal"> |
3303 | + <xsd:totalDigits value="12"/> |
3304 | + <xsd:fractionDigits value="2"/> |
3305 | + <xsd:minInclusive value="0"/> |
3306 | + <xsd:maxInclusive value="9999999999.99"/> |
3307 | + </xsd:restriction> |
3308 | + </xsd:simpleType> |
3309 | + <xsd:simpleType name="valorRetBienesType"> |
3310 | + <xsd:annotation> |
3311 | + <xsd:documentation>Valor Retenido de IVA - BIENES </xsd:documentation> |
3312 | + </xsd:annotation> |
3313 | + <xsd:restriction base="xsd:decimal"> |
3314 | + <xsd:totalDigits value="12"/> |
3315 | + <xsd:fractionDigits value="2"/> |
3316 | + <xsd:minInclusive value="0"/> |
3317 | + <xsd:maxInclusive value="9999999999.99"/> |
3318 | + </xsd:restriction> |
3319 | + </xsd:simpleType> |
3320 | + <xsd:simpleType name="valorRetType"> |
3321 | + <xsd:annotation> |
3322 | + <xsd:documentation>Valor Retenido </xsd:documentation> |
3323 | + </xsd:annotation> |
3324 | + <xsd:restriction base="xsd:decimal"> |
3325 | + <xsd:totalDigits value="12"/> |
3326 | + <xsd:fractionDigits value="2"/> |
3327 | + <xsd:minInclusive value="0"/> |
3328 | + <xsd:maxInclusive value="9999999999.99"/> |
3329 | + </xsd:restriction> |
3330 | + </xsd:simpleType> |
3331 | + <xsd:simpleType name="valorRetServiciosType"> |
3332 | + <xsd:annotation> |
3333 | + <xsd:documentation>Valor Retenido de IVA - SERVICIOS </xsd:documentation> |
3334 | + </xsd:annotation> |
3335 | + <xsd:restriction base="xsd:decimal"> |
3336 | + <xsd:totalDigits value="12"/> |
3337 | + <xsd:fractionDigits value="2"/> |
3338 | + <xsd:minInclusive value="0"/> |
3339 | + <xsd:maxInclusive value="9999999999.99"/> |
3340 | + </xsd:restriction> |
3341 | + </xsd:simpleType> |
3342 | + <xsd:simpleType name="valorFOBType"> |
3343 | + <xsd:annotation> |
3344 | + <xsd:documentation>Valor FOB </xsd:documentation> |
3345 | + </xsd:annotation> |
3346 | + <xsd:restriction base="xsd:decimal"> |
3347 | + <xsd:totalDigits value="12"/> |
3348 | + <xsd:fractionDigits value="2"/> |
3349 | + <xsd:minInclusive value="0"/> |
3350 | + <xsd:maxInclusive value="9999999999.99"/> |
3351 | + </xsd:restriction> |
3352 | + </xsd:simpleType> |
3353 | + <xsd:simpleType name="valorFOBComprobanteType"> |
3354 | + <xsd:annotation> |
3355 | + <xsd:documentation>Valor FOB del comprobante de Exportacion</xsd:documentation> |
3356 | + </xsd:annotation> |
3357 | + <xsd:restriction base="xsd:decimal"> |
3358 | + <xsd:totalDigits value="12"/> |
3359 | + <xsd:fractionDigits value="2"/> |
3360 | + <xsd:minInclusive value="0"/> |
3361 | + <xsd:maxInclusive value="9999999999.99"/> |
3362 | + </xsd:restriction> |
3363 | + </xsd:simpleType> |
3364 | + <xsd:simpleType name="mesType"> |
3365 | + <xsd:annotation> |
3366 | + <xsd:documentation>Corresponde al periodo informado compuesto de dos digitos que van desde el 01 hasta el 12, corresponde al mes informado. |
3367 | + </xsd:documentation> |
3368 | + </xsd:annotation> |
3369 | + <xsd:restriction base="xsd:string"> |
3370 | + <xsd:maxLength value="2"/> |
3371 | + <xsd:minLength value="2"/> |
3372 | + <xsd:pattern value="(0[1-9]|1[012])"/> |
3373 | + </xsd:restriction> |
3374 | + </xsd:simpleType> |
3375 | + <xsd:simpleType name="tpIdProvType"> |
3376 | + <xsd:annotation> |
3377 | + <xsd:documentation>Corresponde al detalle del tipo de identificacio de Compras. |
3378 | + </xsd:documentation> |
3379 | + </xsd:annotation> |
3380 | + <xsd:restriction base="xsd:string"> |
3381 | + <xsd:pattern value="[0-9]{2}"/> |
3382 | + </xsd:restriction> |
3383 | + </xsd:simpleType> |
3384 | + <xsd:simpleType name="tpIdClienteType"> |
3385 | + <xsd:annotation> |
3386 | + <xsd:documentation>Corresponde al detalle del tipo de identificacion de Ventas. |
3387 | + </xsd:documentation> |
3388 | + </xsd:annotation> |
3389 | + <xsd:restriction base="xsd:string"> |
3390 | + <xsd:pattern value="[0-9]{2}"/> |
3391 | + </xsd:restriction> |
3392 | + </xsd:simpleType> |
3393 | + <xsd:simpleType name="estRecapType"> |
3394 | + <xsd:annotation> |
3395 | + <xsd:documentation>Corresponde al detalle del tipo de identificacio de Recaps. |
3396 | + </xsd:documentation> |
3397 | + </xsd:annotation> |
3398 | + <xsd:restriction base="xsd:string"> |
3399 | + <xsd:pattern value="[0-9]{2}"/> |
3400 | + </xsd:restriction> |
3401 | + </xsd:simpleType> |
3402 | + <xsd:simpleType name="identificacionRecapType"> |
3403 | + <xsd:annotation> |
3404 | + <xsd:documentation> |
3405 | + </xsd:documentation> |
3406 | + </xsd:annotation> |
3407 | + <xsd:restriction base="xsd:string"> |
3408 | + <xsd:maxLength value="13"/> |
3409 | + <xsd:minLength value="1"/> |
3410 | + <xsd:pattern value="[0-9a-zA-Z]{0,13}"/> |
3411 | + </xsd:restriction> |
3412 | + </xsd:simpleType> |
3413 | + <xsd:simpleType name="docTranspType"> |
3414 | + <xsd:annotation> |
3415 | + <xsd:documentation> |
3416 | + </xsd:documentation> |
3417 | + </xsd:annotation> |
3418 | + <xsd:restriction base="xsd:string"> |
3419 | + <xsd:maxLength value="13"/> |
3420 | + <xsd:minLength value="1"/> |
3421 | + <xsd:pattern value="[0-9a-zA-Z]{0,13}"/> |
3422 | + </xsd:restriction> |
3423 | + </xsd:simpleType> |
3424 | + <xsd:simpleType name="idProvType"> |
3425 | + <xsd:annotation> |
3426 | + <xsd:documentation> |
3427 | + </xsd:documentation> |
3428 | + </xsd:annotation> |
3429 | + <xsd:restriction base="xsd:string"> |
3430 | + <xsd:maxLength value="13"/> |
3431 | + <xsd:minLength value="1"/> |
3432 | + <xsd:pattern value="[0-9a-zA-Z]{0,13}"/> |
3433 | + </xsd:restriction> |
3434 | + </xsd:simpleType> |
3435 | + <xsd:simpleType name="idClienteType"> |
3436 | + <xsd:annotation> |
3437 | + <xsd:documentation> |
3438 | + </xsd:documentation> |
3439 | + </xsd:annotation> |
3440 | + <xsd:restriction base="xsd:string"> |
3441 | + <xsd:maxLength value="13"/> |
3442 | + <xsd:minLength value="1"/> |
3443 | + <xsd:pattern value="[0-9a-zA-Z]{0,13}"/> |
3444 | + </xsd:restriction> |
3445 | + </xsd:simpleType> |
3446 | + <xsd:complexType name="ivaType"> |
3447 | + <xsd:sequence> |
3448 | + <xsd:element name="numeroRuc" type="numeroRucType"/> |
3449 | + <xsd:element name="razonSocial" type="razonSocialType"/> |
3450 | + <xsd:element name="anio" type="anioType"/> |
3451 | + <xsd:element name="mes" type="mesType"/> |
3452 | + <xsd:element name="compras" type="comprasType" minOccurs="0"> |
3453 | + <xsd:unique name="compraDuplicada"> |
3454 | + <xsd:selector xpath="./detalleCompras"/> |
3455 | + <xsd:field xpath="codSustento"/> |
3456 | + <xsd:field xpath="tpIdProv"/> |
3457 | + <xsd:field xpath="idProv"/> |
3458 | + <xsd:field xpath="tipoComprobante"/> |
3459 | + <xsd:field xpath="establecimiento"/> |
3460 | + <xsd:field xpath="puntoEmision"/> |
3461 | + <xsd:field xpath="secuencial"/> |
3462 | + <xsd:field xpath="autorizacion"/> |
3463 | + <xsd:field xpath="estabModificado"/> |
3464 | + <xsd:field xpath="ptoEmiModificado"/> |
3465 | + <xsd:field xpath="secModificado"/> |
3466 | + <xsd:field xpath="autModificado"/> |
3467 | + </xsd:unique> |
3468 | + </xsd:element> |
3469 | + <xsd:element name="ventas" type="ventasType" minOccurs="0"> |
3470 | + <xsd:unique name="ventaDuplicada"> |
3471 | + <xsd:selector xpath="./detalleVentas"/> |
3472 | + <xsd:field xpath="tpIdCliente"/> |
3473 | + <xsd:field xpath="idCliente"/> |
3474 | + <xsd:field xpath="tipoComprobante"/> |
3475 | + </xsd:unique> |
3476 | + </xsd:element> |
3477 | + <xsd:element name="exportaciones" type="exportacionesType" minOccurs="0"> |
3478 | + <xsd:unique name="exportacionDuplicada"> |
3479 | + <xsd:selector xpath="./detalleExportaciones"/> |
3480 | + <xsd:field xpath="exportacionDe"/> |
3481 | + <xsd:field xpath="tipoComprobante"/> |
3482 | + <xsd:field xpath="fechaEmbarque"/> |
3483 | + <xsd:field xpath="fue"/> |
3484 | + <xsd:field xpath="establecimiento"/> |
3485 | + <xsd:field xpath="puntoEmision"/> |
3486 | + <xsd:field xpath="secuencial"/> |
3487 | + <xsd:field xpath="autorizacion"/> |
3488 | + <xsd:field xpath="fechaEmision"/> |
3489 | + </xsd:unique> |
3490 | + </xsd:element> |
3491 | + <xsd:element name="recap" type="recapType" minOccurs="0"> |
3492 | + <xsd:unique name="RecapDuplicado"> |
3493 | + <xsd:selector xpath="./detalleRecap"/> |
3494 | + <xsd:field xpath="establecimientoRecap"/> |
3495 | + <xsd:field xpath="identificacionRecap"/> |
3496 | + <xsd:field xpath="tipoComprobante"/> |
3497 | + <xsd:field xpath="numeroRecap"/> |
3498 | + <xsd:field xpath="tarjetaCredito"/> |
3499 | + <xsd:field xpath="establecimiento"/> |
3500 | + <xsd:field xpath="puntoEmision"/> |
3501 | + <xsd:field xpath="secuencial"/> |
3502 | + <xsd:field xpath="autorizacion"/> |
3503 | + </xsd:unique> |
3504 | + </xsd:element> |
3505 | + <xsd:element name="fideicomisos" type="fideicomisosType" minOccurs="0"> |
3506 | + <xsd:unique name="fideicomisoDuplucado"> |
3507 | + <xsd:selector xpath="./detalleFideicomisos"/> |
3508 | + <xsd:field xpath="tipoBeneficiario"/> |
3509 | + <xsd:field xpath="idBeneficiario"/> |
3510 | + <xsd:field xpath="rucFideicomiso"/> |
3511 | + </xsd:unique> |
3512 | + </xsd:element> |
3513 | + <xsd:element name="anulados" type="anuladosType" minOccurs="0"> |
3514 | + <xsd:unique name="anuladoDuplicado"> |
3515 | + <xsd:selector xpath="./detalleAnulados"/> |
3516 | + <xsd:field xpath="tipoComprobante"/> |
3517 | + <xsd:field xpath="establecimiento"/> |
3518 | + <xsd:field xpath="puntoEmision"/> |
3519 | + <xsd:field xpath="secuencialInicio"/> |
3520 | + <xsd:field xpath="secuencialFin"/> |
3521 | + <xsd:field xpath="autorizacion"/> |
3522 | + </xsd:unique> |
3523 | + </xsd:element> |
3524 | + <xsd:element name="rendFinancieros" type="rendFinancierosType" minOccurs="0"> |
3525 | + <xsd:unique name="retenidoDuplicado"> |
3526 | + <xsd:selector xpath="./detalleRendFinancieros"/> |
3527 | + <xsd:field xpath="retenido"/> |
3528 | + <xsd:field xpath="idRetenido"/> |
3529 | + </xsd:unique> |
3530 | + </xsd:element> |
3531 | + </xsd:sequence> |
3532 | + </xsd:complexType> |
3533 | + <xsd:complexType name="comprasType"> |
3534 | + <xsd:sequence> |
3535 | + <xsd:element name="detalleCompras" type="detalleComprasType" minOccurs="0" maxOccurs="unbounded"/> |
3536 | + </xsd:sequence> |
3537 | + </xsd:complexType> |
3538 | + <xsd:complexType name="rendFinancierosType"> |
3539 | + <xsd:sequence> |
3540 | + <xsd:element name="detalleRendFinancieros" type="detalleRendFinancierosType" minOccurs="0" maxOccurs="unbounded"/> |
3541 | + </xsd:sequence> |
3542 | + </xsd:complexType> |
3543 | + <xsd:complexType name="airType"> |
3544 | + <xsd:sequence> |
3545 | + <xsd:element name="detalleAir" type="detalleAirType" minOccurs="0" maxOccurs="unbounded"/> |
3546 | + </xsd:sequence> |
3547 | + </xsd:complexType> |
3548 | + <xsd:complexType name="airRendType"> |
3549 | + <xsd:sequence> |
3550 | + <xsd:element name="detalleAirRen" type="detalleAirRenType" maxOccurs="unbounded"/> |
3551 | + </xsd:sequence> |
3552 | + </xsd:complexType> |
3553 | + <xsd:complexType name="fValorType"> |
3554 | + <xsd:sequence> |
3555 | + <xsd:element name="detallefValor" type="detallefValorType" maxOccurs="unbounded"/> |
3556 | + </xsd:sequence> |
3557 | + </xsd:complexType> |
3558 | + <xsd:complexType name="ventasType"> |
3559 | + <xsd:sequence> |
3560 | + <xsd:element name="detalleVentas" type="detalleVentasType" minOccurs="0" maxOccurs="unbounded"/> |
3561 | + </xsd:sequence> |
3562 | + </xsd:complexType> |
3563 | + <xsd:complexType name="exportacionesType"> |
3564 | + <xsd:sequence> |
3565 | + <xsd:element name="detalleExportaciones" type="detalleExportacionesType" minOccurs="0" maxOccurs="unbounded"/> |
3566 | + </xsd:sequence> |
3567 | + </xsd:complexType> |
3568 | + <xsd:complexType name="recapType"> |
3569 | + <xsd:sequence> |
3570 | + <xsd:element name="detalleRecap" type="detalleRecapType" minOccurs="0" maxOccurs="unbounded"/> |
3571 | + </xsd:sequence> |
3572 | + </xsd:complexType> |
3573 | + <xsd:complexType name="fideicomisosType"> |
3574 | + <xsd:sequence> |
3575 | + <xsd:element name="detalleFideicomisos" type="detalleFideicomisosType" minOccurs="0" maxOccurs="unbounded"/> |
3576 | + </xsd:sequence> |
3577 | + </xsd:complexType> |
3578 | + <xsd:complexType name="anuladosType"> |
3579 | + <xsd:sequence> |
3580 | + <xsd:element name="detalleAnulados" type="detalleAnuladosType" minOccurs="0" maxOccurs="unbounded"/> |
3581 | + </xsd:sequence> |
3582 | + </xsd:complexType> |
3583 | + <xsd:complexType name="sustentoType"> |
3584 | + <xsd:sequence/> |
3585 | + </xsd:complexType> |
3586 | + <xsd:complexType name="detalleComprasType"> |
3587 | + <xsd:sequence> |
3588 | + <xsd:element name="codSustento" type="codSustentoType"/> |
3589 | + <xsd:element name="tpIdProv" type="tpIdProvType"/> |
3590 | + <xsd:element name="idProv" type="idProvType"/> |
3591 | + <xsd:element name="tipoComprobante" type="tipoComprobanteType"/> |
3592 | + <xsd:element name="fechaRegistro" type="fechaType"/> |
3593 | + <xsd:element name="establecimiento" type="establecimientoType"/> |
3594 | + <xsd:element name="puntoEmision" type="ptoEmisionType"/> |
3595 | + <xsd:element name="secuencial" type="secuencialType"/> |
3596 | + <xsd:element name="fechaEmision" type="fechaType"/> |
3597 | + <xsd:element name="autorizacion" type="autorizacionType"/> |
3598 | + <xsd:element name="baseNoGraIva" type="baseImponibleType"/> |
3599 | + <xsd:element name="baseImponible" type="baseImponibleType"/> |
3600 | + <xsd:element name="baseImpGrav" type="baseImpGravType"/> |
3601 | + <xsd:element name="montoIce" type="montoIceType"/> |
3602 | + <xsd:element name="montoIva" type="montoIvaType"/> |
3603 | + <xsd:element name="valorRetBienes" type="valorRetBienesType"/> |
3604 | + <xsd:element name="valorRetServicios" type="valorRetServiciosType"/> |
3605 | + <xsd:element name="valRetServ100" type="valorRetServiciosType"/> |
3606 | + <xsd:element name="air" type="airType"> |
3607 | + <xsd:unique name="airDuplicado"> |
3608 | + <xsd:selector xpath="./detalleAir"/> |
3609 | + <xsd:field xpath="codRetAir"/> |
3610 | + <xsd:field xpath="porcentajeAir"/> |
3611 | + </xsd:unique> |
3612 | + </xsd:element> |
3613 | + <xsd:element name="estabRetencion1" type="establecimientoType" minOccurs="0"/> |
3614 | + <xsd:element name="ptoEmiRetencion1" type="ptoEmisionType" minOccurs="0"/> |
3615 | + <xsd:element name="secRetencion1" type="secRetencionType" minOccurs="0"/> |
3616 | + <xsd:element name="autRetencion1" type="autRetencionType" minOccurs="0"/> |
3617 | + <xsd:element name="fechaEmiRet1" type="fechaRetType" minOccurs="0"/> |
3618 | + <xsd:element name="estabRetencion2" type="establecimientoType" minOccurs="0"/> |
3619 | + <xsd:element name="ptoEmiRetencion2" type="ptoEmisionType" minOccurs="0"/> |
3620 | + <xsd:element name="secRetencion2" type="secRetencionType" minOccurs="0"/> |
3621 | + <xsd:element name="autRetencion2" type="autRetencionType" minOccurs="0"/> |
3622 | + <xsd:element name="fechaEmiRet2" type="fechaRetType" minOccurs="0"/> |
3623 | + <xsd:element name="docModificado" type="docModificadoType"/> |
3624 | + <xsd:element name="estabModificado" type="establecimientoType"/> |
3625 | + <xsd:element name="ptoEmiModificado" type="ptoEmisionType"/> |
3626 | + <xsd:element name="secModificado" type="secModType"/> |
3627 | + <xsd:element name="autModificado" type="autModificadoType"/> |
3628 | + </xsd:sequence> |
3629 | + </xsd:complexType> |
3630 | + <xsd:complexType name="detalleAirType"> |
3631 | + <xsd:sequence> |
3632 | + <xsd:element name="codRetAir" type="codRetAirType"/> |
3633 | + <xsd:element name="baseImpAir" type="baseImponibleType"/> |
3634 | + <xsd:element name="porcentajeAir" type="porcentajeAirType"/> |
3635 | + <xsd:element name="valRetAir" type="valorRetBienesType"/> |
3636 | + </xsd:sequence> |
3637 | + </xsd:complexType> |
3638 | + <xsd:complexType name="detalleRendFinancierosType"> |
3639 | + <xsd:sequence> |
3640 | + <xsd:element name="retenido" type="tpIdProvType"/> |
3641 | + <xsd:element name="idRetenido" type="idProvType"/> |
3642 | + <xsd:element name="ahorroPN" minOccurs="0"> |
3643 | + <xsd:complexType> |
3644 | + <xsd:sequence> |
3645 | + <xsd:element name="totalDep" type="comisionType"/> |
3646 | + <xsd:element name="rendGen" type="comisionType"/> |
3647 | + </xsd:sequence> |
3648 | + </xsd:complexType> |
3649 | + </xsd:element> |
3650 | + <xsd:element name="ctaExenta" minOccurs="0"> |
3651 | + <xsd:complexType> |
3652 | + <xsd:sequence> |
3653 | + <xsd:element name="totalDep" type="comisionType"/> |
3654 | + <xsd:element name="rendGen" type="comisionType"/> |
3655 | + </xsd:sequence> |
3656 | + </xsd:complexType> |
3657 | + </xsd:element> |
3658 | + <xsd:element name="retenciones" minOccurs="0"> |
3659 | + <xsd:complexType> |
3660 | + <xsd:sequence> |
3661 | + <xsd:element name="detRet" maxOccurs="unbounded"> |
3662 | + <xsd:complexType> |
3663 | + <xsd:sequence> |
3664 | + <xsd:element name="estabRetencion" type="establecimientoType"/> |
3665 | + <xsd:element name="ptoEmiRetencion" type="ptoEmisionType"/> |
3666 | + <xsd:element name="secRetencion" type="secRetencionType"/> |
3667 | + <xsd:element name="autRetencion" type="autRetencionType"/> |
3668 | + <xsd:element name="fechaEmiRet" type="fechaRetType"/> |
3669 | + <xsd:element name="airRend" type="airRendType"> |
3670 | + <xsd:unique name="retencionDuplicada"> |
3671 | + <xsd:selector xpath="./detalleAirRen"/> |
3672 | + <xsd:field xpath="codRetAir"/> |
3673 | + <xsd:field xpath="porcentajeAir"/> |
3674 | + </xsd:unique> |
3675 | + </xsd:element> |
3676 | + </xsd:sequence> |
3677 | + </xsd:complexType> |
3678 | + </xsd:element> |
3679 | + </xsd:sequence> |
3680 | + </xsd:complexType> |
3681 | + <xsd:unique name="retCompDuplicado"> |
3682 | + <xsd:selector xpath="./detRet"/> |
3683 | + <xsd:field xpath="ptoEmiRetencion"/> |
3684 | + <xsd:field xpath="estabRetencion"/> |
3685 | + <xsd:field xpath="secRetencion"/> |
3686 | + <xsd:field xpath="autRetencion"/> |
3687 | + </xsd:unique> |
3688 | + </xsd:element> |
3689 | + </xsd:sequence> |
3690 | + </xsd:complexType> |
3691 | + <xsd:complexType name="detalleAirRenType"> |
3692 | + <xsd:sequence> |
3693 | + <xsd:element name="codRetAir" type="codRetAirType"/> |
3694 | + <xsd:element name="deposito" type="baseImponibleType"/> |
3695 | + <xsd:element name="baseImpAir" type="baseImponibleType"/> |
3696 | + <xsd:element name="porcentajeAir" type="porcentajeAirType"/> |
3697 | + <xsd:element name="valRetAir" type="valorRetBienesType"/> |
3698 | + </xsd:sequence> |
3699 | + </xsd:complexType> |
3700 | + <xsd:complexType name="detallefValorType"> |
3701 | + <xsd:sequence> |
3702 | + <xsd:element name="tipoFideicomiso" type="tipoFideicomisoType"/> |
3703 | + <xsd:element name="totalF" type="totalFType"/> |
3704 | + <xsd:element name="individualF" type="individualFType"/> |
3705 | + <xsd:element name="porRetF" type="porRetFType"/> |
3706 | + <xsd:element name="valorRetF" type="valorRetBienesType"/> |
3707 | + </xsd:sequence> |
3708 | + </xsd:complexType> |
3709 | + <xsd:complexType name="detalleVentasType"> |
3710 | + <xsd:sequence> |
3711 | + <xsd:element name="tpIdCliente" type="tpIdClienteType"/> |
3712 | + <xsd:element name="idCliente" type="idClienteType"/> |
3713 | + <xsd:element name="tipoComprobante" type="tipoComprobanteType"/> |
3714 | + <xsd:element name="numeroComprobantes" type="numeroComprobantesType"/> |
3715 | + <xsd:element name="baseNoGraIva" type="baseImponibleType"/> |
3716 | + <xsd:element name="baseImponible" type="baseImponibleType"/> |
3717 | + <xsd:element name="baseImpGrav" type="baseImpGravType"/> |
3718 | + <xsd:element name="montoIva" type="montoIvaType"/> |
3719 | + <xsd:element name="valorRetIva" type="valorRetType"/> |
3720 | + <xsd:element name="valorRetRenta" type="valorRetType"/> |
3721 | + </xsd:sequence> |
3722 | + </xsd:complexType> |
3723 | + <xsd:complexType name="detalleExportacionesType"> |
3724 | + <xsd:sequence> |
3725 | + <xsd:element name="exportacionDe" type="exportacionDeType"/> |
3726 | + <xsd:element name="tipoComprobante" type="tipoComprobanteType"/> |
3727 | + <xsd:element name="distAduanero" type="distAduaneroType" minOccurs="0"/> |
3728 | + <xsd:element name="anio" type="anioType" minOccurs="0"/> |
3729 | + <xsd:element name="regimen" type="regimenType" minOccurs="0"/> |
3730 | + <xsd:element name="correlativo" type="correlativoType" minOccurs="0"/> |
3731 | + <xsd:element name="verificador" type="verificadorType" minOccurs="0"/> |
3732 | + <xsd:element name="docTransp" type="docTranspType" minOccurs="0"/> |
3733 | + <xsd:element name="fechaEmbarque" type="fechaType"/> |
3734 | + <xsd:element name="fue" type="fueType"/> |
3735 | + <xsd:element name="valorFOB" type="valorFOBType"/> |
3736 | + <xsd:element name="valorFOBComprobante" type="valorFOBComprobanteType"/> |
3737 | + <xsd:element name="establecimiento" type="establecimientoType"/> |
3738 | + <xsd:element name="puntoEmision" type="ptoEmisionType"/> |
3739 | + <xsd:element name="secuencial" type="secuencialType"/> |
3740 | + <xsd:element name="autorizacion" type="autorizacionType"/> |
3741 | + <xsd:element name="fechaEmision" type="fechaType"/> |
3742 | + </xsd:sequence> |
3743 | + </xsd:complexType> |
3744 | + <xsd:complexType name="detalleRecapType"> |
3745 | + <xsd:sequence> |
3746 | + <xsd:element name="establecimientoRecap" type="estRecapType"/> |
3747 | + <xsd:element name="identificacionRecap" type="identificacionRecapType"/> |
3748 | + <xsd:element name="tipoComprobante" type="tipoComprobanteType"/> |
3749 | + <xsd:element name="numeroRecap" type="numeroRecapType"/> |
3750 | + <xsd:element name="fechaPago" type="fechaType"/> |
3751 | + <xsd:element name="tarjetaCredito" type="tarjetaCreditoType"/> |
3752 | + <xsd:element name="fechaEmisionRecap" type="fechaType"/> |
3753 | + <xsd:element name="consumoCero" type="consumoCeroType"/> |
3754 | + <xsd:element name="consumoGravado" type="consumoGravadoType"/> |
3755 | + <xsd:element name="totalConsumo" type="totalConsumoType"/> |
3756 | + <xsd:element name="montoIva" type="montoIvaType"/> |
3757 | + <xsd:element name="comision" type="comisionType"/> |
3758 | + <xsd:element name="numeroVouchers" type="numeroVouchersType"/> |
3759 | + <xsd:element name="valorRetBienes" type="valorRetBienesType"/> |
3760 | + <xsd:element name="valorRetServicios" type="valorRetServiciosType"/> |
3761 | + <xsd:element name="valRetServ100" type="valorRetServiciosType"/> |
3762 | + <xsd:element name="air" type="airType" minOccurs="0"> |
3763 | + <xsd:unique name="codRetPorcentajeRC"> |
3764 | + <xsd:selector xpath="./detalleAir"/> |
3765 | + <xsd:field xpath="codRetAir"/> |
3766 | + <xsd:field xpath="porcentajeAir"/> |
3767 | + </xsd:unique> |
3768 | + </xsd:element> |
3769 | + <xsd:element name="establecimiento" type="establecimientoType"/> |
3770 | + <xsd:element name="puntoEmision" type="ptoEmisionType"/> |
3771 | + <xsd:element name="secuencial" type="secRetencionType"/> |
3772 | + <xsd:element name="autorizacion" type="autRetencionType"/> |
3773 | + <xsd:element name="fechaEmision" type="fechaRetType"/> |
3774 | + </xsd:sequence> |
3775 | + </xsd:complexType> |
3776 | + <xsd:complexType name="detalleFideicomisosType"> |
3777 | + <xsd:sequence> |
3778 | + <xsd:element name="tipoBeneficiario" type="tpIdProvType"/> |
3779 | + <xsd:element name="idBeneficiario" type="idProvType"/> |
3780 | + <xsd:element name="rucFideicomiso" type="numeroRucType"/> |
3781 | + <xsd:element name="fValor" type="fValorType"> |
3782 | + <xsd:unique name="tipoFideiDuplicado"> |
3783 | + <xsd:selector xpath="./detallefValor"/> |
3784 | + <xsd:field xpath="tipoFideicomiso"/> |
3785 | + <xsd:field xpath="porRetF"/> |
3786 | + </xsd:unique> |
3787 | + </xsd:element> |
3788 | + </xsd:sequence> |
3789 | + </xsd:complexType> |
3790 | + <xsd:complexType name="detalleAnuladosType"> |
3791 | + <xsd:sequence> |
3792 | + <xsd:element name="tipoComprobante" type="tipoComprobanteType"/> |
3793 | + <xsd:element name="establecimiento" type="establecimientoType"/> |
3794 | + <xsd:element name="puntoEmision" type="ptoEmisionType"/> |
3795 | + <xsd:element name="secuencialInicio" type="secuencialType"/> |
3796 | + <xsd:element name="secuencialFin" type="secuencialType"/> |
3797 | + <xsd:element name="autorizacion" type="autorizacionType"/> |
3798 | + </xsd:sequence> |
3799 | + </xsd:complexType> |
3800 | + <xsd:element name="iva" type="ivaType"/> |
3801 | +</xsd:schema> |
3802 | |
3803 | === added file 'ecua_anexos_ats/documentacion/catalogos.zip' |
3804 | Binary files ecua_anexos_ats/documentacion/catalogos.zip 1970-01-01 00:00:00 +0000 and ecua_anexos_ats/documentacion/catalogos.zip 2013-05-02 22:04:32 +0000 differ |
3805 | === added directory 'ecua_anexos_ats/objects' |
3806 | === added file 'ecua_anexos_ats/objects/__init__.py' |
3807 | --- ecua_anexos_ats/objects/__init__.py 1970-01-01 00:00:00 +0000 |
3808 | +++ ecua_anexos_ats/objects/__init__.py 2013-05-02 22:04:32 +0000 |
3809 | @@ -0,0 +1,33 @@ |
3810 | +# -*- encoding: utf-8 -*- |
3811 | +######################################################################## |
3812 | +# |
3813 | +# @authors: Christopher Ormaza |
3814 | +# Copyright (C) 2012 Ecuadorenlinea.net |
3815 | +# |
3816 | +#This program is free software: you can redistribute it and/or modify |
3817 | +#it under the terms of the GNU General Public License as published by |
3818 | +#the Free Software Foundation, either version 3 of the License, or |
3819 | +#(at your option) any later version. |
3820 | +# |
3821 | +# This module is GPLv3 or newer and incompatible |
3822 | +# with OpenERP SA "AGPL + Private Use License"! |
3823 | +# |
3824 | +#This program is distributed in the hope that it will be useful, |
3825 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
3826 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3827 | +#GNU General Public License for more details. |
3828 | +# |
3829 | +#You should have received a copy of the GNU General Public License |
3830 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
3831 | +######################################################################## |
3832 | + |
3833 | +import codigo_regimen |
3834 | +import distrito_aduanero |
3835 | +import tipo_comprobante |
3836 | +import tipo_transaccion |
3837 | +import tipo_fidecomiso |
3838 | +import sustento_tributario |
3839 | +import tarjeta_credito |
3840 | +import invoice |
3841 | +import tipo_comprobante_relacion |
3842 | +import company |
3843 | \ No newline at end of file |
3844 | |
3845 | === added file 'ecua_anexos_ats/objects/codigo_regimen.py' |
3846 | --- ecua_anexos_ats/objects/codigo_regimen.py 1970-01-01 00:00:00 +0000 |
3847 | +++ ecua_anexos_ats/objects/codigo_regimen.py 2013-05-02 22:04:32 +0000 |
3848 | @@ -0,0 +1,37 @@ |
3849 | +# -*- encoding: utf-8 -*- |
3850 | +######################################################################## |
3851 | +# |
3852 | +# @authors: Christopher Ormaza |
3853 | +# Copyright (C) 2012 Ecuadorenlinea.net |
3854 | +# |
3855 | +#This program is free software: you can redistribute it and/or modify |
3856 | +#it under the terms of the GNU General Public License as published by |
3857 | +#the Free Software Foundation, either version 3 of the License, or |
3858 | +#(at your option) any later version. |
3859 | +# |
3860 | +# This module is GPLv3 or newer and incompatible |
3861 | +# with OpenERP SA "AGPL + Private Use License"! |
3862 | +# |
3863 | +#This program is distributed in the hope that it will be useful, |
3864 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
3865 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3866 | +#GNU General Public License for more details. |
3867 | +# |
3868 | +#You should have received a copy of the GNU General Public License |
3869 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
3870 | +######################################################################## |
3871 | + |
3872 | +from osv import fields,osv |
3873 | +import decimal_precision as dp |
3874 | +from tools.translate import _ |
3875 | + |
3876 | +class codigo_regimen(osv.osv): |
3877 | + |
3878 | + _name = "sri.code.regimen" |
3879 | + |
3880 | + _columns = { |
3881 | + 'code':fields.char('Code', size=4, required=True,), |
3882 | + 'name':fields.char('Name', size=255, required=True,), |
3883 | + |
3884 | + } |
3885 | +codigo_regimen() |
3886 | \ No newline at end of file |
3887 | |
3888 | === added file 'ecua_anexos_ats/objects/company.py' |
3889 | --- ecua_anexos_ats/objects/company.py 1970-01-01 00:00:00 +0000 |
3890 | +++ ecua_anexos_ats/objects/company.py 2013-05-02 22:04:32 +0000 |
3891 | @@ -0,0 +1,39 @@ |
3892 | +# -*- encoding: utf-8 -*- |
3893 | +######################################################################## |
3894 | +# |
3895 | +# @authors: Christopher Ormaza |
3896 | +# Copyright (C) 2012 Ecuadorenlinea.net |
3897 | +# |
3898 | +#This program is free software: you can redistribute it and/or modify |
3899 | +#it under the terms of the GNU General Public License as published by |
3900 | +#the Free Software Foundation, either version 3 of the License, or |
3901 | +#(at your option) any later version. |
3902 | +# |
3903 | +# This module is GPLv3 or newer and incompatible |
3904 | +# with OpenERP SA "AGPL + Private Use License"! |
3905 | +# |
3906 | +#This program is distributed in the hope that it will be useful, |
3907 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
3908 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3909 | +#GNU General Public License for more details. |
3910 | +# |
3911 | +#You should have received a copy of the GNU General Public License |
3912 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
3913 | +######################################################################## |
3914 | + |
3915 | +from osv import fields,osv |
3916 | +import decimal_precision as dp |
3917 | +from tools.translate import _ |
3918 | + |
3919 | +class res_company(osv.osv): |
3920 | + |
3921 | + _inherit = "res.company" |
3922 | + |
3923 | + _columns = { |
3924 | + 'default_in_invoice_id':fields.many2one('sri.tax.support', 'Default Tax Support in Invoices', required=False), |
3925 | + 'default_out_invoice_id':fields.many2one('sri.tax.support', 'Default Tax Support out Invoices', required=False), |
3926 | + 'default_in_refund_id':fields.many2one('sri.tax.support', 'Default Tax Support Credit Notes Suppliers', required=False), |
3927 | + 'default_out_refund_id':fields.many2one('sri.tax.support', 'Default Tax Support Credit Notes Customers', required=False), |
3928 | + 'default_liquidation_id':fields.many2one('sri.tax.support', 'Default Tax Support Liquidation of Purchases', required=False), |
3929 | + } |
3930 | +res_company() |
3931 | \ No newline at end of file |
3932 | |
3933 | === added file 'ecua_anexos_ats/objects/distrito_aduanero.py' |
3934 | --- ecua_anexos_ats/objects/distrito_aduanero.py 1970-01-01 00:00:00 +0000 |
3935 | +++ ecua_anexos_ats/objects/distrito_aduanero.py 2013-05-02 22:04:32 +0000 |
3936 | @@ -0,0 +1,36 @@ |
3937 | +# -*- encoding: utf-8 -*- |
3938 | +######################################################################## |
3939 | +# |
3940 | +# @authors: Christopher Ormaza |
3941 | +# Copyright (C) 2012 Ecuadorenlinea.net |
3942 | +# |
3943 | +#This program is free software: you can redistribute it and/or modify |
3944 | +#it under the terms of the GNU General Public License as published by |
3945 | +#the Free Software Foundation, either version 3 of the License, or |
3946 | +#(at your option) any later version. |
3947 | +# |
3948 | +# This module is GPLv3 or newer and incompatible |
3949 | +# with OpenERP SA "AGPL + Private Use License"! |
3950 | +# |
3951 | +#This program is distributed in the hope that it will be useful, |
3952 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
3953 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3954 | +#GNU General Public License for more details. |
3955 | +# |
3956 | +#You should have received a copy of the GNU General Public License |
3957 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
3958 | +######################################################################## |
3959 | + |
3960 | +from osv import fields,osv |
3961 | +import decimal_precision as dp |
3962 | +from tools.translate import _ |
3963 | + |
3964 | +class distrito_aduanero(osv.osv): |
3965 | + |
3966 | + _name = 'sri.customs.district' |
3967 | + |
3968 | + _columns = { |
3969 | + 'code':fields.char('Code', size=4, required=True,), |
3970 | + 'name':fields.char('Name', size=255, required=True,), |
3971 | + } |
3972 | +distrito_aduanero() |
3973 | \ No newline at end of file |
3974 | |
3975 | === added file 'ecua_anexos_ats/objects/invoice.py' |
3976 | --- ecua_anexos_ats/objects/invoice.py 1970-01-01 00:00:00 +0000 |
3977 | +++ ecua_anexos_ats/objects/invoice.py 2013-05-02 22:04:32 +0000 |
3978 | @@ -0,0 +1,138 @@ |
3979 | +# -*- encoding: utf-8 -*- |
3980 | +######################################################################## |
3981 | +# |
3982 | +# @authors: Christopher Ormaza |
3983 | +# Copyright (C) 2012 Ecuadorenlinea.net |
3984 | +# |
3985 | +#This program is free software: you can redistribute it and/or modify |
3986 | +#it under the terms of the GNU General Public License as published by |
3987 | +#the Free Software Foundation, either version 3 of the License, or |
3988 | +#(at your option) any later version. |
3989 | +# |
3990 | +# This module is GPLv3 or newer and incompatible |
3991 | +# with OpenERP SA "AGPL + Private Use License"! |
3992 | +# |
3993 | +#This program is distributed in the hope that it will be useful, |
3994 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
3995 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3996 | +#GNU General Public License for more details. |
3997 | +# |
3998 | +#You should have received a copy of the GNU General Public License |
3999 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4000 | +######################################################################## |
4001 | + |
4002 | +from osv import fields,osv |
4003 | +import decimal_precision as dp |
4004 | +from tools.translate import _ |
4005 | + |
4006 | +class account_invoice(osv.osv): |
4007 | + |
4008 | + _inherit = 'account.invoice' |
4009 | + |
4010 | + _columns = { |
4011 | + 'voucher_type_id':fields.many2one('sri.voucher.type', 'Voucher Type', required=False), |
4012 | + 'tax_support_id':fields.many2one('sri.tax.support', 'Tax Support', required=False), |
4013 | + 'transaction_usage_id':fields.many2one('sri.transaction.usage', 'Transaction Usage', required=False), |
4014 | + } |
4015 | + |
4016 | + def _get_tax_support(self, cr, uid, context=None): |
4017 | + user = self.pool.get('res.users').browse(cr, uid, uid, context) |
4018 | + company = user.company_id |
4019 | + support_tax_id = None |
4020 | + if not context: |
4021 | + context = {} |
4022 | + type = context.get('type', False) |
4023 | + if type == 'out_invoice': |
4024 | + if company.default_out_invoice_id: |
4025 | + support_tax_id = company.default_out_invoice_id.id |
4026 | + elif type == 'in_invoice' and (not context.get('liquidation', False)): |
4027 | + if company.default_in_invoice_id: |
4028 | + support_tax_id = company.default_in_invoice_id.id |
4029 | + elif type == 'in_invoice' and context.get('liquidation', True): |
4030 | + if company.default_liquidation_id: |
4031 | + support_tax_id = company.default_liquidation_id.id |
4032 | + elif type == 'out_refund': |
4033 | + if company.default_out_refund_id: |
4034 | + support_tax_id = company.default_out_refund_id.id |
4035 | + elif type == 'in_refund': |
4036 | + if company.default_in_refund_id: |
4037 | + support_tax_id = company.default_in_refund_id.id |
4038 | + return support_tax_id |
4039 | + |
4040 | + def _get_voucher_type(self, cr, uid, context=None): |
4041 | + vou_typ_obj = self.pool.get('sri.voucher.type') |
4042 | + voucher_type_id = None |
4043 | + if not context: |
4044 | + context = {} |
4045 | + type = context.get('type', False) |
4046 | + if type == 'out_invoice': |
4047 | + voucher_type_id = vou_typ_obj.search(cr, uid, [('code','=','18')]) |
4048 | + elif type == 'in_invoice' and (not context.get('liquidation', False)): |
4049 | + voucher_type_id = vou_typ_obj.search(cr, uid, [('code','=','01')]) |
4050 | + elif type == 'in_invoice' and context.get('liquidation', True): |
4051 | + voucher_type_id = vou_typ_obj.search(cr, uid, [('code','=','03')]) |
4052 | + elif type == 'out_refund': |
4053 | + voucher_type_id = vou_typ_obj.search(cr, uid, [('code','=','04')]) |
4054 | + elif type == 'in_refund': |
4055 | + voucher_type_id = vou_typ_obj.search(cr, uid, [('code','=','04')]) |
4056 | + |
4057 | + if voucher_type_id: |
4058 | + voucher_type_id = voucher_type_id[0] |
4059 | + else: |
4060 | + voucher_type_id = None |
4061 | + return voucher_type_id |
4062 | + |
4063 | + _defaults = { |
4064 | + 'tax_support_id': _get_tax_support, |
4065 | + 'voucher_type_id': _get_voucher_type, |
4066 | + } |
4067 | + |
4068 | + def onchange_partner_id(self, cr, uid, ids, type, partner_id, voucher_type,\ |
4069 | + date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False, context=None): |
4070 | + if not context: |
4071 | + context = {} |
4072 | + partner_obj = self.pool.get('res.partner') |
4073 | + res = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id) |
4074 | + #Cambios de dominios para ats |
4075 | + tt_obj = self.pool.get('sri.transaction.usage') |
4076 | + partner_obj = self.pool.get('res.partner') |
4077 | + transaction_type_id = None |
4078 | + filter_type = None |
4079 | + if partner_id: |
4080 | + partner = partner_obj.browse(cr, uid, partner_id) |
4081 | + if partner.type_ref == 'ruc': |
4082 | + filter_type = 'ruc' |
4083 | + elif partner.type_ref == 'consumidor': |
4084 | + filter_type = 'consu_final' |
4085 | + elif partner.type_ref == 'cedula': |
4086 | + filter_type = 'cedula' |
4087 | + elif partner.type_ref == 'pasaporte': |
4088 | + filter_type = 'pasaporte' |
4089 | + if type == 'out_invoice': |
4090 | + transaction_type_id = tt_obj.search(cr, uid, [('type_identification','=',filter_type),('name','=','VENTA')]) |
4091 | + elif type == 'in_invoice' and (not context.get('liquidation', False)): |
4092 | + transaction_type_id = tt_obj.search(cr, uid, [('type_identification','=',filter_type),('name','=','COMPRA')]) |
4093 | + elif type == 'in_invoice' and context.get('liquidation', True): |
4094 | + transaction_type_id = tt_obj.search(cr, uid, [('type_identification','=',filter_type),('name','=','COMPRA')]) |
4095 | + elif type == 'out_refund': |
4096 | + transaction_type_id = tt_obj.search(cr, uid, [('type_identification','=',filter_type),('name','=','VENTA')]) |
4097 | + elif type == 'in_refund': |
4098 | + transaction_type_id = tt_obj.search(cr, uid, [('type_identification','=',filter_type),('name','=','COMPRA')]) |
4099 | + |
4100 | + if transaction_type_id: |
4101 | + transaction_type_id = transaction_type_id[0] |
4102 | + else: |
4103 | + transaction_type_id = None |
4104 | + |
4105 | + tc_obj = self.pool.get('sri.voucher.type') |
4106 | + domain_tax_support = [] |
4107 | + if voucher_type: |
4108 | + voucher_t = tc_obj.browse(cr, uid, voucher_type) |
4109 | + lista = [] |
4110 | + for sustention in voucher_t.sustention_ids: |
4111 | + lista.append(sustention.id) |
4112 | + domain_tax_support.append(('id', 'in', lista)) |
4113 | + res['value']['transaction_usage_id'] = transaction_type_id |
4114 | + res['domain'] = {'tax_support_id':domain_tax_support} |
4115 | + return res |
4116 | +account_invoice() |
4117 | \ No newline at end of file |
4118 | |
4119 | === added file 'ecua_anexos_ats/objects/sustento_tributario.py' |
4120 | --- ecua_anexos_ats/objects/sustento_tributario.py 1970-01-01 00:00:00 +0000 |
4121 | +++ ecua_anexos_ats/objects/sustento_tributario.py 2013-05-02 22:04:32 +0000 |
4122 | @@ -0,0 +1,38 @@ |
4123 | +# -*- encoding: utf-8 -*- |
4124 | +######################################################################## |
4125 | +# |
4126 | +# @authors: Christopher Ormaza |
4127 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4128 | +# |
4129 | +#This program is free software: you can redistribute it and/or modify |
4130 | +#it under the terms of the GNU General Public License as published by |
4131 | +#the Free Software Foundation, either version 3 of the License, or |
4132 | +#(at your option) any later version. |
4133 | +# |
4134 | +# This module is GPLv3 or newer and incompatible |
4135 | +# with OpenERP SA "AGPL + Private Use License"! |
4136 | +# |
4137 | +#This program is distributed in the hope that it will be useful, |
4138 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4139 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4140 | +#GNU General Public License for more details. |
4141 | +# |
4142 | +#You should have received a copy of the GNU General Public License |
4143 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4144 | +######################################################################## |
4145 | + |
4146 | +from osv import fields,osv |
4147 | +import decimal_precision as dp |
4148 | +from tools.translate import _ |
4149 | + |
4150 | +class sustento_tributario(osv.osv): |
4151 | + |
4152 | + _name = 'sri.tax.support' |
4153 | + |
4154 | + _columns = { |
4155 | + 'code':fields.char('Code', size=4, required=True,), |
4156 | + 'name':fields.char('Name', size=255, required=True,), |
4157 | + 'voucher_type_ids':fields.many2many('sri.voucher.type', 'voucher_support_rel', 'support_id', 'voucher_id', 'Voucher Types'), |
4158 | + } |
4159 | + |
4160 | +sustento_tributario() |
4161 | \ No newline at end of file |
4162 | |
4163 | === added file 'ecua_anexos_ats/objects/tarjeta_credito.py' |
4164 | --- ecua_anexos_ats/objects/tarjeta_credito.py 1970-01-01 00:00:00 +0000 |
4165 | +++ ecua_anexos_ats/objects/tarjeta_credito.py 2013-05-02 22:04:32 +0000 |
4166 | @@ -0,0 +1,36 @@ |
4167 | +# -*- encoding: utf-8 -*- |
4168 | +######################################################################## |
4169 | +# |
4170 | +# @authors: Christopher Ormaza |
4171 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4172 | +# |
4173 | +#This program is free software: you can redistribute it and/or modify |
4174 | +#it under the terms of the GNU General Public License as published by |
4175 | +#the Free Software Foundation, either version 3 of the License, or |
4176 | +#(at your option) any later version. |
4177 | +# |
4178 | +# This module is GPLv3 or newer and incompatible |
4179 | +# with OpenERP SA "AGPL + Private Use License"! |
4180 | +# |
4181 | +#This program is distributed in the hope that it will be useful, |
4182 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4183 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4184 | +#GNU General Public License for more details. |
4185 | +# |
4186 | +#You should have received a copy of the GNU General Public License |
4187 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4188 | +######################################################################## |
4189 | + |
4190 | +from osv import fields,osv |
4191 | +import decimal_precision as dp |
4192 | +from tools.translate import _ |
4193 | + |
4194 | +class tarjeta_credito(osv.osv): |
4195 | + |
4196 | + _name = "sri.credit.card" |
4197 | + |
4198 | + _columns = { |
4199 | + 'code':fields.char('Code', size=4, required=True,), |
4200 | + 'name':fields.char('Name', size=255, required=True,), |
4201 | + } |
4202 | +tarjeta_credito() |
4203 | \ No newline at end of file |
4204 | |
4205 | === added file 'ecua_anexos_ats/objects/tipo_comprobante.py' |
4206 | --- ecua_anexos_ats/objects/tipo_comprobante.py 1970-01-01 00:00:00 +0000 |
4207 | +++ ecua_anexos_ats/objects/tipo_comprobante.py 2013-05-02 22:04:32 +0000 |
4208 | @@ -0,0 +1,37 @@ |
4209 | +# -*- encoding: utf-8 -*- |
4210 | +######################################################################## |
4211 | +# |
4212 | +# @authors: Christopher Ormaza |
4213 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4214 | +# |
4215 | +#This program is free software: you can redistribute it and/or modify |
4216 | +#it under the terms of the GNU General Public License as published by |
4217 | +#the Free Software Foundation, either version 3 of the License, or |
4218 | +#(at your option) any later version. |
4219 | +# |
4220 | +# This module is GPLv3 or newer and incompatible |
4221 | +# with OpenERP SA "AGPL + Private Use License"! |
4222 | +# |
4223 | +#This program is distributed in the hope that it will be useful, |
4224 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4225 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4226 | +#GNU General Public License for more details. |
4227 | +# |
4228 | +#You should have received a copy of the GNU General Public License |
4229 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4230 | +######################################################################## |
4231 | + |
4232 | +from osv import fields,osv |
4233 | +import decimal_precision as dp |
4234 | +from tools.translate import _ |
4235 | + |
4236 | +class tipo_comprobante(osv.osv): |
4237 | + |
4238 | + _name = 'sri.voucher.type' |
4239 | + |
4240 | + _columns = { |
4241 | + 'code':fields.char('Code', size=4, required=True,), |
4242 | + 'name':fields.char('Name', size=255, required=True,), |
4243 | + } |
4244 | + |
4245 | +tipo_comprobante() |
4246 | \ No newline at end of file |
4247 | |
4248 | === added file 'ecua_anexos_ats/objects/tipo_comprobante_relacion.py' |
4249 | --- ecua_anexos_ats/objects/tipo_comprobante_relacion.py 1970-01-01 00:00:00 +0000 |
4250 | +++ ecua_anexos_ats/objects/tipo_comprobante_relacion.py 2013-05-02 22:04:32 +0000 |
4251 | @@ -0,0 +1,37 @@ |
4252 | +# -*- encoding: utf-8 -*- |
4253 | +######################################################################## |
4254 | +# |
4255 | +# @authors: Christopher Ormaza |
4256 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4257 | +# |
4258 | +#This program is free software: you can redistribute it and/or modify |
4259 | +#it under the terms of the GNU General Public License as published by |
4260 | +#the Free Software Foundation, either version 3 of the License, or |
4261 | +#(at your option) any later version. |
4262 | +# |
4263 | +# This module is GPLv3 or newer and incompatible |
4264 | +# with OpenERP SA "AGPL + Private Use License"! |
4265 | +# |
4266 | +#This program is distributed in the hope that it will be useful, |
4267 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4268 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4269 | +#GNU General Public License for more details. |
4270 | +# |
4271 | +#You should have received a copy of the GNU General Public License |
4272 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4273 | +######################################################################## |
4274 | + |
4275 | +from osv import fields,osv |
4276 | +import decimal_precision as dp |
4277 | +from tools.translate import _ |
4278 | + |
4279 | +class tipo_comprobante(osv.osv): |
4280 | + |
4281 | + _inherit = 'sri.voucher.type' |
4282 | + |
4283 | + _columns = { |
4284 | + 'sustention_ids':fields.many2many('sri.tax.support', 'voucher_support_rel', 'voucher_id', 'support_id', 'Tax Supports'), |
4285 | + 'usage_ids':fields.many2many('sri.transaction.usage', 'voucher_transaction_rel', 'voucher_id', 'type_transaction_id', 'Transaction Types'), |
4286 | + } |
4287 | + |
4288 | +tipo_comprobante() |
4289 | \ No newline at end of file |
4290 | |
4291 | === added file 'ecua_anexos_ats/objects/tipo_fidecomiso.py' |
4292 | --- ecua_anexos_ats/objects/tipo_fidecomiso.py 1970-01-01 00:00:00 +0000 |
4293 | +++ ecua_anexos_ats/objects/tipo_fidecomiso.py 2013-05-02 22:04:32 +0000 |
4294 | @@ -0,0 +1,36 @@ |
4295 | +# -*- encoding: utf-8 -*- |
4296 | +######################################################################## |
4297 | +# |
4298 | +# @authors: Christopher Ormaza |
4299 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4300 | +# |
4301 | +#This program is free software: you can redistribute it and/or modify |
4302 | +#it under the terms of the GNU General Public License as published by |
4303 | +#the Free Software Foundation, either version 3 of the License, or |
4304 | +#(at your option) any later version. |
4305 | +# |
4306 | +# This module is GPLv3 or newer and incompatible |
4307 | +# with OpenERP SA "AGPL + Private Use License"! |
4308 | +# |
4309 | +#This program is distributed in the hope that it will be useful, |
4310 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4311 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4312 | +#GNU General Public License for more details. |
4313 | +# |
4314 | +#You should have received a copy of the GNU General Public License |
4315 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4316 | +######################################################################## |
4317 | + |
4318 | +from osv import fields,osv |
4319 | +import decimal_precision as dp |
4320 | +from tools.translate import _ |
4321 | + |
4322 | +class tipo_fidecomiso(osv.osv): |
4323 | + |
4324 | + _name = "sri.credit.card" |
4325 | + |
4326 | + _columns = { |
4327 | + 'code':fields.char('Code', size=4, required=True,), |
4328 | + 'name':fields.char('Name', size=255, required=True,), |
4329 | + } |
4330 | +tipo_fidecomiso() |
4331 | \ No newline at end of file |
4332 | |
4333 | === added file 'ecua_anexos_ats/objects/tipo_transaccion.py' |
4334 | --- ecua_anexos_ats/objects/tipo_transaccion.py 1970-01-01 00:00:00 +0000 |
4335 | +++ ecua_anexos_ats/objects/tipo_transaccion.py 2013-05-02 22:04:32 +0000 |
4336 | @@ -0,0 +1,44 @@ |
4337 | +# -*- encoding: utf-8 -*- |
4338 | +######################################################################## |
4339 | +# |
4340 | +# @authors: Christopher Ormaza |
4341 | +# Copyright (C) 2012 Ecuadorenlinea.net |
4342 | +# |
4343 | +#This program is free software: you can redistribute it and/or modify |
4344 | +#it under the terms of the GNU General Public License as published by |
4345 | +#the Free Software Foundation, either version 3 of the License, or |
4346 | +#(at your option) any later version. |
4347 | +# |
4348 | +# This module is GPLv3 or newer and incompatible |
4349 | +# with OpenERP SA "AGPL + Private Use License"! |
4350 | +# |
4351 | +#This program is distributed in the hope that it will be useful, |
4352 | +#but WITHOUT ANY WARRANTY; without even the implied warranty of |
4353 | +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4354 | +#GNU General Public License for more details. |
4355 | +# |
4356 | +#You should have received a copy of the GNU General Public License |
4357 | +#along with this program. If not, see <http://www.gnu.org/licenses/>. |
4358 | +######################################################################## |
4359 | + |
4360 | +from osv import fields,osv |
4361 | +import decimal_precision as dp |
4362 | +from tools.translate import _ |
4363 | + |
4364 | +class tipo_transaccion(osv.osv): |
4365 | + |
4366 | + _name = 'sri.transaction.usage' |
4367 | + |
4368 | + _columns = { |
4369 | + 'code':fields.char('Code', size=4, required=True,), |
4370 | + 'name':fields.char('Name', size=255, required=True,), |
4371 | + 'voucher_type_ids':fields.many2many('sri.voucher.type', 'voucher_transaction_rel', 'type_transaction_id', 'voucher_id', 'Voucher Types'), |
4372 | + 'type_identification':fields.selection([ |
4373 | + ('ruc','RUC'), |
4374 | + ('cedula','Cedula'), |
4375 | + ('pasaporte','Passport'), |
4376 | + ('consu_final','Final Consumer'), |
4377 | + ('export','Export'), |
4378 | + ], 'Identification Type', select=True, required=True), |
4379 | + } |
4380 | +tipo_transaccion() |
4381 | \ No newline at end of file |
4382 | |
4383 | === added directory 'ecua_anexos_ats/security' |
4384 | === added file 'ecua_anexos_ats/security/ir.model.access.csv' |
4385 | --- ecua_anexos_ats/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 |
4386 | +++ ecua_anexos_ats/security/ir.model.access.csv 2013-05-02 22:04:32 +0000 |
4387 | @@ -0,0 +1,7 @@ |
4388 | +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
4389 | +"access_ats_user","sri.ats","model_sri_ats","base.group_user",1,1,1,1 |
4390 | +"access_ats_acc","sri.ats","model_sri_ats","account.group_account_user",1,1,1,1 |
4391 | +"access_ats_acc_man","sri.ats","model_sri_ats","account.group_account_manager",1,1,1,1 |
4392 | +"access_sri_voucher_type_user","sri.voucher.type","model_sri_voucher_type","base.group_user",1,0,0,0 |
4393 | +"access_sri_transaction_usage_user","sri.transaction.usage","model_sri_transaction_usage","base.group_user",1,0,0,0 |
4394 | +"access_sri_tax_support_user","sri.tax.support","model_sri_tax_support","base.group_user",1,0,0,0 |
4395 | |
4396 | === added directory 'ecua_anexos_ats/test' |
4397 | === added file 'ecua_anexos_ats/test/test.yml' |
4398 | --- ecua_anexos_ats/test/test.yml 1970-01-01 00:00:00 +0000 |
4399 | +++ ecua_anexos_ats/test/test.yml 2013-05-02 22:04:32 +0000 |
4400 | @@ -0,0 +1,337 @@ |
4401 | +- |
4402 | + Creating a sale.shop record |
4403 | +- |
4404 | + !record {model: sale.shop, id: sale.shop}: |
4405 | + address_id: base.main_address |
4406 | + purchases_journal_id: !ref {model: account.journal, search: "[('name','=','Purchase Journal')]"} |
4407 | + sales_journal_id: !ref {model: account.journal, search: "[('name','=','Sales Journal')]"} |
4408 | + credit_note_purchase_journal_id: !ref {model: account.journal, search: "[('name','=','Purchase Refund Journal')]"} |
4409 | + credit_note_sale_journal_id: !ref {model: account.journal, search: "[('name','=','Sales Refund Journal')]"} |
4410 | + liquidation_journal_id: ecua_liquidacion_compras.liquidacion_journal |
4411 | + name: Ecuadorenlinea.net |
4412 | + number: '001' |
4413 | + payment_default_id: account.account_payment_term |
4414 | + pricelist_id: product.list0 |
4415 | + printer_point_ids: |
4416 | + - name: '001' |
4417 | + number: '001' |
4418 | + user_ids: |
4419 | + - base.user_admin |
4420 | + warehouse_id: stock.warehouse0 |
4421 | + |
4422 | + |
4423 | +- |
4424 | + Creating a ir.sequence record |
4425 | +- |
4426 | + !record {model: ir.sequence, id: ir_sequence_diariodecreditnote0}: |
4427 | + code: account.invoice.out_refund |
4428 | + name: Diario de credit_note - 1234567899 |
4429 | + number_increment: 1 |
4430 | + number_next: 2 |
4431 | + padding: 9 |
4432 | + prefix: 001-001- |
4433 | + |
4434 | + |
4435 | +- |
4436 | + Creating a ir.sequence record |
4437 | +- |
4438 | + !record {model: ir.sequence, id: ir_sequence_diariodeinvoice0}: |
4439 | + code: account.invoice.out_invoice |
4440 | + name: Diario de invoice - 1234567899 |
4441 | + number_increment: 1 |
4442 | + number_next: 5 |
4443 | + padding: 9 |
4444 | + prefix: 001-001- |
4445 | + |
4446 | + |
4447 | +- |
4448 | + Creating a ir.sequence record |
4449 | +- |
4450 | + !record {model: ir.sequence, id: ir_sequence_diariodeliquidation0}: |
4451 | + code: liq_seq |
4452 | + name: Diario de liquidation - 1234567899 |
4453 | + number_increment: 1 |
4454 | + number_next: 3 |
4455 | + padding: 9 |
4456 | + prefix: 001-001- |
4457 | + |
4458 | + |
4459 | +- |
4460 | + Creating a ir.sequence record |
4461 | +- |
4462 | + !record {model: ir.sequence, id: ir_sequence_diariodewithholding0}: |
4463 | + code: ret_seq |
4464 | + name: Diario de withholding - 1234567899 |
4465 | + number_increment: 1 |
4466 | + number_next: 4 |
4467 | + padding: 9 |
4468 | + prefix: 001-001- |
4469 | + |
4470 | + |
4471 | + |
4472 | +- |
4473 | + Creating a sri.authorization record |
4474 | +- |
4475 | + !record {model: sri.authorization, id: sri_authorization_0}: |
4476 | + company_id: base.main_company |
4477 | + expiration_date: '2014-01-01' |
4478 | + number: '1234567899' |
4479 | + start_date: '2011-01-01' |
4480 | + state: true |
4481 | + type_document_ids: |
4482 | + - counter: 4 |
4483 | + first_secuence: 1 |
4484 | + last_secuence: 100 |
4485 | + name: invoice |
4486 | + printer_id: '001' |
4487 | + range: 99 |
4488 | + sequence_id: ir_sequence_diariodeinvoice0 |
4489 | + shop_id: sale.shop |
4490 | + state: true |
4491 | + - counter: 2 |
4492 | + first_secuence: 1 |
4493 | + last_secuence: 100 |
4494 | + name: liquidation |
4495 | + printer_id: '001' |
4496 | + range: 99 |
4497 | + sequence_id: ir_sequence_diariodeliquidation0 |
4498 | + shop_id: sale.shop |
4499 | + state: true |
4500 | + - counter: 1 |
4501 | + first_secuence: 1 |
4502 | + last_secuence: 100 |
4503 | + name: credit_note |
4504 | + printer_id: '001' |
4505 | + range: 99 |
4506 | + sequence_id: ir_sequence_diariodecreditnote0 |
4507 | + shop_id: sale.shop |
4508 | + state: true |
4509 | + - counter: 2 |
4510 | + first_secuence: 1 |
4511 | + last_secuence: 100 |
4512 | + name: withholding |
4513 | + printer_id: '001' |
4514 | + range: 99 |
4515 | + sequence_id: ir_sequence_diariodewithholding0 |
4516 | + shop_id: sale.shop |
4517 | + state: true |
4518 | + |
4519 | + |
4520 | +- |
4521 | + Creating a res.company record |
4522 | +- |
4523 | + !record {model: res.company, id: base.main_company}: |
4524 | + currency_id: base.USD |
4525 | + default_in_invoice_id: ecua_anexos_ats.00 |
4526 | + default_in_refund_id: ecua_anexos_ats.00 |
4527 | + default_liquidation_id: ecua_anexos_ats.00 |
4528 | + default_out_invoice_id: ecua_anexos_ats.00 |
4529 | + default_out_refund_id: ecua_anexos_ats.00 |
4530 | + generate_automatic: true |
4531 | + journal_ir_id: ecua_retenciones_manual.ir_retention_journal |
4532 | + journal_iva_id: ecua_retenciones_manual.iva_retention_journal |
4533 | + lines_invoice: 0.0 |
4534 | + name: Ecuadorenlinea.net |
4535 | + partner_id: base.main_partner |
4536 | + po_lead: 1.0 |
4537 | + rml_header: "\n <header>\n <pageTemplate>\n <frame id='first' x1='1.3cm'\ |
4538 | + \ y1='2.5cm' height='23.0cm' width='19cm'/>\n <pageGraphics>\n \ |
4539 | + \ <!-- You Logo - Change X,Y,Width and Height -->\n <image x='1.3cm'\ |
4540 | + \ y='27.6cm' height='40.0' >[[ company.logo or removeParentNode('image') ]]</image>\n\ |
4541 | + \ <setFont name='DejaVu Sans' size='8'/>\n <fill color='black'/>\n\ |
4542 | + \ <stroke color='black'/>\n <lines>1.3cm 27.7cm 20cm 27.7cm</lines>\n\ |
4543 | + \n <drawRightString x='20cm' y='27.8cm'>[[ company.rml_header1 ]]</drawRightString>\n\ |
4544 | + \n\n <drawString x='1.3cm' y='27.2cm'>[[ company.partner_id.name ]]</drawString>\n\ |
4545 | + \ <drawString x='1.3cm' y='26.8cm'>[[ company.partner_id.address and\ |
4546 | + \ company.partner_id.address[0].street or ' ]]</drawString>\n <drawString\ |
4547 | + \ x='1.3cm' y='26.4cm'>[[ company.partner_id.address and company.partner_id.address[0].zip\ |
4548 | + \ or ' ]] [[ company.partner_id.address and company.partner_id.address[0].city\ |
4549 | + \ or ' ]] - [[ company.partner_id.address and company.partner_id.address[0].country_id\ |
4550 | + \ and company.partner_id.address[0].country_id.name or ']]</drawString>\n \ |
4551 | + \ <drawString x='1.3cm' y='26.0cm'>Phone:</drawString>\n <drawRightString\ |
4552 | + \ x='7cm' y='26.0cm'>[[ company.partner_id.address and company.partner_id.address[0].phone\ |
4553 | + \ or ' ]]</drawRightString>\n <drawString x='1.3cm' y='25.6cm'>Mail:</drawString>\n\ |
4554 | + \ <drawRightString x='7cm' y='25.6cm'>[[ company.partner_id.address and\ |
4555 | + \ company.partner_id.address[0].email or ' ]]</drawRightString>\n <lines>1.3cm\ |
4556 | + \ 25.5cm 7cm 25.5cm</lines>\n\n <!--page bottom-->\n\n <lines>1.2cm\ |
4557 | + \ 2.15cm 19.9cm 2.15cm</lines>\n\n <drawCentredString x='10.5cm' y='1.7cm'>[[\ |
4558 | + \ company.rml_footer1 ]]</drawCentredString>\n <drawCentredString x='10.5cm'\ |
4559 | + \ y='1.25cm'>[[ company.rml_footer2 ]]</drawCentredString>\n <drawCentredString\ |
4560 | + \ x='10.5cm' y='0.8cm'>Contact : [[ user.name ]] - Page: <pageNumber/></drawCentredString>\n\ |
4561 | + \ </pageGraphics>\n </pageTemplate>\n</header>" |
4562 | + rml_header2: "\n <header>\n <pageTemplate>\n <frame id='first'\ |
4563 | + \ x1='28.0' y1='28.0' width='539' height='772'/>\n <pageGraphics>\n \ |
4564 | + \ <fill color='black'/>\n <stroke color='black'/>\n <setFont name='DejaVu\ |
4565 | + \ Sans' size='8'/>\n <drawString x='1.0cm' y='28.3cm'> [[ formatLang(time.strftime('%Y-%m-%d'),\ |
4566 | + \ date=True) ]] [[ time.strftime('%H:%M') ]]</drawString>\n <setFont name='DejaVu\ |
4567 | + \ Sans Bold' size='10'/>\n <drawString x='9.3cm' y='28.3cm'>[[ company.partner_id.name\ |
4568 | + \ ]]</drawString>\n <stroke color='#000000'/>\n <lines>1.0cm 28.1cm\ |
4569 | + \ 20.1cm 28.1cm</lines>\n </pageGraphics>\n </pageTemplate>\n</header>" |
4570 | + rml_header3: "\n<header>\n<pageTemplate>\n <frame id='first' x1='28.0' y1='28.0'\ |
4571 | + \ width='786' height='525'/>\n <pageGraphics>\n <fill color='black'/>\n\ |
4572 | + \ <stroke color='black'/>\n <setFont name='DejaVu Sans' size='8'/>\n\ |
4573 | + \ <drawString x='25' y='555'> [[ formatLang(time.strftime('%Y-%m-%d'), date=True)\ |
4574 | + \ ]] [[ time.strftime('%H:%M') ]]</drawString>\n <setFont name='DejaVu Sans\ |
4575 | + \ Bold' size='10'/>\n <drawString x='382' y='555'>[[ company.partner_id.name\ |
4576 | + \ ]]</drawString>\n <stroke color='#000000'/>\n <lines>25 550 818\ |
4577 | + \ 550</lines>\n </pageGraphics>\n </pageTemplate>\n</header>" |
4578 | + schedule_range: 80.0 |
4579 | + security_lead: 0.0 |
4580 | + user_ids: |
4581 | + - base.user_admin |
4582 | + |
4583 | + |
4584 | +- |
4585 | + Creating a account.journal record |
4586 | +- |
4587 | + !record {model: account.journal, id: ecua_retenciones_manual.ir_retention_journal}: |
4588 | + default_credit_account_id: '1010504' |
4589 | + default_debit_account_id: '1010504' |
4590 | + update_posted: true |
4591 | + |
4592 | + |
4593 | +- |
4594 | + Creating a account.journal record |
4595 | +- |
4596 | + !record {model: account.journal, id: ecua_retenciones_manual.iva_retention_journal}: |
4597 | + default_credit_account_id: '101050106' |
4598 | + default_debit_account_id: '101050106' |
4599 | + update_posted: true |
4600 | + |
4601 | +- |
4602 | + Creating a res.partner record |
4603 | +- |
4604 | + !record {model: res.partner, id: res_partner_christopherormaza0}: |
4605 | + address: |
4606 | + - country_id: base.ec |
4607 | + credit_limit: 0.0 |
4608 | + debit_limit: 0.0 |
4609 | + name: CHRISTOPHER ORMAZA |
4610 | + ref: 0915068258 |
4611 | + supplier: true |
4612 | + type_ref: cedula |
4613 | + |
4614 | + |
4615 | +- |
4616 | + Creating a res.partner record |
4617 | +- |
4618 | + !record {model: res.partner, id: res_partner_mercedesmogrovejobaque0}: |
4619 | + address: |
4620 | + - country_id: base.ec |
4621 | + authorization_ids: |
4622 | + - agency: '001' |
4623 | + expiration_date: '2014-01-01' |
4624 | + first_sequence: 1 |
4625 | + last_sequence: 100 |
4626 | + number: '3216549870' |
4627 | + printer_point: '001' |
4628 | + start_date: '2011-01-01' |
4629 | + type: withholding |
4630 | + - agency: '001' |
4631 | + expiration_date: '2014-01-01' |
4632 | + first_sequence: 1 |
4633 | + last_sequence: 100 |
4634 | + number: '3215448887' |
4635 | + printer_point: '001' |
4636 | + start_date: '2011-01-01' |
4637 | + type: invoice |
4638 | + credit_limit: 0.0 |
4639 | + debit_limit: 0.0 |
4640 | + name: MERCEDES MOGROVEJO BAQUE |
4641 | + ref: 0916899917001 |
4642 | + supplier: true |
4643 | + type_ref: ruc |
4644 | + |
4645 | + |
4646 | +- |
4647 | + Creating a product.product record |
4648 | +- |
4649 | + !record {model: product.product, id: product_product_productofsicobien0}: |
4650 | + categ_id: product.cat0 |
4651 | + cost_method: standard |
4652 | + list_price: 100.0 |
4653 | + mes_type: fixed |
4654 | + name: Producto F\xc3\xadsico - Bien |
4655 | + name_template: Producto F\xc3\xadsico - Bien |
4656 | + procure_method: make_to_stock |
4657 | + seller_delay: '1' |
4658 | + seller_qty: 0.0 |
4659 | + standard_price: 50.0 |
4660 | + supplier_taxes_id: |
4661 | + - 'RETENCIONES 30% IVA' |
4662 | + - 'IVA(12%) PAGADO EN COMPRAS LOCALES' |
4663 | + - 'TRANSFERENCIA DE BIENES MUEBLES DE NATURALEZA CORPORAL(1%)' |
4664 | + supply_method: buy |
4665 | + type: consu |
4666 | + uom_id: product.product_uom_unit |
4667 | + uom_po_id: product.product_uom_unit |
4668 | + valuation: manual_periodic |
4669 | + volume: 0.0 |
4670 | + warranty: 0.0 |
4671 | + weight: 0.0 |
4672 | + weight_net: 0.0 |
4673 | + |
4674 | + |
4675 | +- |
4676 | + Creating a product.product record |
4677 | +- |
4678 | + !record {model: product.product, id: product_product_productoice0}: |
4679 | + categ_id: product.cat0 |
4680 | + cost_method: standard |
4681 | + ice_product: true |
4682 | + ice_type_id: ecua_facturas_ice_manual.3031 |
4683 | + list_price: 75.0 |
4684 | + mes_type: fixed |
4685 | + name: Producto ICE |
4686 | + name_template: Producto ICE |
4687 | + procure_method: make_to_stock |
4688 | + seller_delay: '1' |
4689 | + seller_qty: 0.0 |
4690 | + standard_price: 50.0 |
4691 | + supplier_taxes_id: |
4692 | + - ecua_facturas_ice_manual.ICE_COMPRAS |
4693 | + - 'IVA(12%) PAGADO EN COMPRAS LOCALES' |
4694 | + supply_method: buy |
4695 | + taxes_id: |
4696 | + - ecua_facturas_ice_manual.ICE_VENTAS |
4697 | + - 'IVA COBRADO(12%)' |
4698 | + type: consu |
4699 | + uom_id: product.product_uom_unit |
4700 | + uom_po_id: product.product_uom_unit |
4701 | + valuation: manual_periodic |
4702 | + volume: 0.0 |
4703 | + warranty: 0.0 |
4704 | + weight: 0.0 |
4705 | + weight_net: 0.0 |
4706 | + |
4707 | + |
4708 | +- |
4709 | + Creating a product.product record |
4710 | +- |
4711 | + !record {model: product.product, id: product_product_servicio0}: |
4712 | + categ_id: product.cat0 |
4713 | + cost_method: standard |
4714 | + list_price: 130.0 |
4715 | + mes_type: fixed |
4716 | + name: Servicio |
4717 | + name_template: Servicio |
4718 | + procure_method: make_to_stock |
4719 | + seller_delay: '1' |
4720 | + seller_qty: 0.0 |
4721 | + standard_price: 70.0 |
4722 | + supplier_taxes_id: |
4723 | + - 'IVA(12%) PAGADO EN COMPRAS LOCALES' |
4724 | + - 'RETENCIONES 70% IVA' |
4725 | + - 'OTRAS RETENCIONES APLICABLES EL 2%' |
4726 | + supply_method: buy |
4727 | + type: service |
4728 | + uom_id: product.product_uom_unit |
4729 | + uom_po_id: product.product_uom_unit |
4730 | + valuation: manual_periodic |
4731 | + volume: 0.0 |
4732 | + warranty: 0.0 |
4733 | + weight: 0.0 |
4734 | + weight_net: 0.0 |
4735 | + |
4736 | + |
4737 | + |
4738 | \ No newline at end of file |
4739 | |
4740 | === added directory 'ecua_anexos_ats/views' |
4741 | === added file 'ecua_anexos_ats/views/codigo_regimen_view.xml' |
4742 | --- ecua_anexos_ats/views/codigo_regimen_view.xml 1970-01-01 00:00:00 +0000 |
4743 | +++ ecua_anexos_ats/views/codigo_regimen_view.xml 2013-05-02 22:04:32 +0000 |
4744 | @@ -0,0 +1,43 @@ |
4745 | +<?xml version="1.0" encoding="UTF-8"?> |
4746 | +<openerp> |
4747 | + <data> |
4748 | + |
4749 | + |
4750 | + <record model="ir.ui.view" id="sri_code_regimen_tree_view"> |
4751 | + <field name="name">sri.code.regimen.tree</field> |
4752 | + <field name="model">sri.code.regimen</field> |
4753 | + <field name="type">tree</field> |
4754 | + <field name="arch" type="xml"> |
4755 | + <tree string="Code Regimen" editable="top"> |
4756 | + <field name="code"/> |
4757 | + <field name="name"/> |
4758 | + </tree> |
4759 | + </field> |
4760 | + </record> |
4761 | + |
4762 | + <record model="ir.ui.view" id="sri_code_regimen_form_view"> |
4763 | + <field name="name">sri.code.regimen.form</field> |
4764 | + <field name="model">sri.code.regimen</field> |
4765 | + <field name="type">form</field> |
4766 | + <field name="arch" type="xml"> |
4767 | + <form string="Code Regimen"> |
4768 | + <field name="code" select="1"/> |
4769 | + <field name="name" select="1"/> |
4770 | + </form> |
4771 | + </field> |
4772 | + </record> |
4773 | + |
4774 | + <record model="ir.actions.act_window" id="action_sri_code_regimen_tree_view"> |
4775 | + <field name="name">Code Regimen</field> |
4776 | + <field name="type">ir.actions.act_window</field> |
4777 | + <field name="res_model">sri.code.regimen</field> |
4778 | + <!-- <field name="domain">[('field_name','condition',criteria)]</field>--> |
4779 | + <field name="view_type">form</field> |
4780 | + <field name="view_mode">tree,form</field> |
4781 | + <field name="view_id" ref="sri_code_regimen_tree_view"/> |
4782 | + </record> |
4783 | + |
4784 | + <menuitem id="sri_code_regimen_menu" name="Code Regimen" parent="ats_configuration_menu" action="action_sri_code_regimen_tree_view"/> |
4785 | + |
4786 | + </data> |
4787 | +</openerp> |
4788 | \ No newline at end of file |
4789 | |
4790 | === added file 'ecua_anexos_ats/views/company_view.xml' |
4791 | --- ecua_anexos_ats/views/company_view.xml 1970-01-01 00:00:00 +0000 |
4792 | +++ ecua_anexos_ats/views/company_view.xml 2013-05-02 22:04:32 +0000 |
4793 | @@ -0,0 +1,25 @@ |
4794 | +<?xml version="1.0" encoding="UTF-8"?> |
4795 | +<openerp> |
4796 | + <data> |
4797 | + <record model="ir.ui.view" id="res_comprany_form_view"> |
4798 | + <field name="name">res.company.form</field> |
4799 | + <field name="model">res.company</field> |
4800 | + <field name="type">form</field> |
4801 | + <field name="inherit_id" ref="ecua_autorizaciones_sri.res_company_sri_form_view" /> |
4802 | + <field name="arch" type="xml"> |
4803 | + <field name="generate_automatic" position="after"> |
4804 | + <newline /> |
4805 | + <separator string="ATS Configuration" colspan="4" /> |
4806 | + <newline /> |
4807 | + <field name="default_in_invoice_id" domain="[('voucher_type_ids', '=', eval('01'))]" colspan="4"/> |
4808 | + <field name="default_out_invoice_id" domain="[('voucher_type_ids', '=', eval('01'))]" colspan="4"/> |
4809 | + <field name="default_in_refund_id" domain="[('voucher_type_ids', '=', eval('04'))]" colspan="4"/> |
4810 | + <field name="default_out_refund_id" domain="[('voucher_type_ids', '=', eval('04'))]" colspan="4"/> |
4811 | + <field name="default_liquidation_id" domain="[('voucher_type_ids', '=', eval('03'))]" colspan="4"/> |
4812 | + </field> |
4813 | + </field> |
4814 | + </record> |
4815 | + |
4816 | + |
4817 | + </data> |
4818 | +</openerp> |
4819 | \ No newline at end of file |
4820 | |
4821 | === added file 'ecua_anexos_ats/views/distrito_aduanero_view.xml' |
4822 | --- ecua_anexos_ats/views/distrito_aduanero_view.xml 1970-01-01 00:00:00 +0000 |
4823 | +++ ecua_anexos_ats/views/distrito_aduanero_view.xml 2013-05-02 22:04:32 +0000 |
4824 | @@ -0,0 +1,41 @@ |
4825 | +<?xml version="1.0" encoding="UTF-8"?> |
4826 | +<openerp> |
4827 | + <data> |
4828 | + |
4829 | + |
4830 | + <record model="ir.ui.view" id="sri_customs_district_tree_view"> |
4831 | + <field name="name">sri.customs.district.tree</field> |
4832 | + <field name="model">sri.customs.district</field> |
4833 | + <field name="type">tree</field> |
4834 | + <field name="arch" type="xml"> |
4835 | + <tree string="Customs District"> |
4836 | + <field name="name"/> |
4837 | + </tree> |
4838 | + </field> |
4839 | + </record> |
4840 | + |
4841 | + <record model="ir.ui.view" id="sri_customs_district_form_view"> |
4842 | + <field name="name">sri.customs.district.form</field> |
4843 | + <field name="model">sri.customs.district</field> |
4844 | + <field name="type">form</field> |
4845 | + <field name="arch" type="xml"> |
4846 | + <form string="Custom District"> |
4847 | + <field name="name" select="1"/> |
4848 | + </form> |
4849 | + </field> |
4850 | + </record> |
4851 | + |
4852 | + <record model="ir.actions.act_window" id="action_sri_customs_district_tree_view"> |
4853 | + <field name="name">Customs Districts</field> |
4854 | + <field name="type">ir.actions.act_window</field> |
4855 | + <field name="res_model">sri.customs.district</field> |
4856 | + <!-- <field name="domain">[('field_name','condition',criteria)]</field>--> |
4857 | + <field name="view_type">form</field> |
4858 | + <field name="view_mode">tree,form</field> |
4859 | + <field name="view_id" ref="sri_customs_district_tree_view"/> |
4860 | + </record> |
4861 | + |
4862 | + <menuitem id="sri_customs_district_menu" name="Customs Districts" parent="ats_configuration_menu" action="action_sri_customs_district_tree_view"/> |
4863 | + |
4864 | + </data> |
4865 | +</openerp> |
4866 | \ No newline at end of file |
4867 | |
4868 | === added file 'ecua_anexos_ats/views/invoice_view.xml' |
4869 | --- ecua_anexos_ats/views/invoice_view.xml 1970-01-01 00:00:00 +0000 |
4870 | +++ ecua_anexos_ats/views/invoice_view.xml 2013-05-02 22:04:32 +0000 |
4871 | @@ -0,0 +1,161 @@ |
4872 | +<?xml version="1.0" encoding="UTF-8"?> |
4873 | +<openerp> |
4874 | + <data> |
4875 | + |
4876 | + <!-- Facturas de Ventas --> |
4877 | + |
4878 | + <record model="ir.ui.view" id="account_invoice_customer_form_view"> |
4879 | + <field name="name">account.invoice.form</field> |
4880 | + <field name="model">account.invoice</field> |
4881 | + <field name="type">form</field> |
4882 | + <field name="inherit_id" ref="account.invoice_form" /> |
4883 | + <field name="arch" type="xml"> |
4884 | + <field name="move_id" position="after"> |
4885 | + <field name="transaction_usage_id" domain="[('name','in',('EXPORTACION','VENTA'))]"/> |
4886 | + <field name="voucher_type_id" domain="[('usage_ids', 'in', [transaction_usage_id])]"/> |
4887 | + </field> |
4888 | + </field> |
4889 | + </record> |
4890 | + |
4891 | + <record model="ir.ui.view" id="account_invoice_customer_form_view2"> |
4892 | + <field name="name">account.invoice.form</field> |
4893 | + <field name="model">account.invoice</field> |
4894 | + <field name="type">form</field> |
4895 | + <field name="inherit_id" ref="account.invoice_form" /> |
4896 | + <field name="arch" type="xml"> |
4897 | + <field name="partner_id" position="replace"> |
4898 | + <field string="Customer" name="partner_id" |
4899 | + on_change="onchange_partner_id(type,partner_id,voucher_type_id,date_invoice,payment_term, partner_bank_id,company_id)" |
4900 | + groups="base.group_user" context="{'search_default_customer': 1}" /> |
4901 | + </field> |
4902 | + </field> |
4903 | + </record> |
4904 | + |
4905 | + <!-- Facturas de Compras --> |
4906 | + |
4907 | + <record model="ir.ui.view" id="account_invoice_supplier_form_view"> |
4908 | + <field name="name">account.invoice.form</field> |
4909 | + <field name="model">account.invoice</field> |
4910 | + <field name="type">form</field> |
4911 | + <field name="inherit_id" ref="account.invoice_supplier_form" /> |
4912 | + <field name="arch" type="xml"> |
4913 | + <field name="move_id" position="after"> |
4914 | + <field name="transaction_usage_id" domain="[('name','=','COMPRA')]"/> |
4915 | + <field name="voucher_type_id" domain="[('usage_ids', 'in', [transaction_usage_id])]"/> |
4916 | + <field name="tax_support_id" domain="[('voucher_type_ids', 'in', [voucher_type_id])]"/> |
4917 | + </field> |
4918 | + </field> |
4919 | + </record> |
4920 | + |
4921 | + <record model="ir.ui.view" id="account_invoice_supplier_form_view2"> |
4922 | + <field name="name">account.invoice.form</field> |
4923 | + <field name="model">account.invoice</field> |
4924 | + <field name="type">form</field> |
4925 | + <field name="inherit_id" ref="account.invoice_supplier_form" /> |
4926 | + <field name="arch" type="xml"> |
4927 | + <field name="partner_id" position="replace"> |
4928 | + <field string="Supplier" name="partner_id" |
4929 | + on_change="onchange_partner_id(type,partner_id,voucher_type_id,date_invoice,payment_term, partner_bank_id,company_id)" |
4930 | + context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" /> |
4931 | + </field> |
4932 | + </field> |
4933 | + </record> |
4934 | + |
4935 | + <!-- Notas de Crédito Ventas --> |
4936 | + |
4937 | + <record model="ir.ui.view" id="account_credit_note_customer_form_invoice_view"> |
4938 | + <field name="name">account.invoice.form</field> |
4939 | + <field name="model">account.invoice</field> |
4940 | + <field name="type">form</field> |
4941 | + <field name="inherit_id" |
4942 | + ref="ecua_notas_credito_manual.customer_credit_note_invoice_view_form" /> |
4943 | + <field name="arch" type="xml"> |
4944 | + <field name="move_id" position="after"> |
4945 | + <field name="transaction_usage_id" domain="[('name','in',('EXPORTACION','VENTA'))]"/> |
4946 | + <field name="voucher_type_id" domain="[('usage_ids', 'in', [transaction_usage_id])]"/> |
4947 | + </field> |
4948 | + </field> |
4949 | + </record> |
4950 | + |
4951 | + <record model="ir.ui.view" id="account_credit_note_customer_form_invoice_view2"> |
4952 | + <field name="name">account.invoice.form</field> |
4953 | + <field name="model">account.invoice</field> |
4954 | + <field name="type">form</field> |
4955 | + <field name="inherit_id" |
4956 | + ref="ecua_notas_credito_manual.customer_credit_note_invoice_view_form" /> |
4957 | + <field name="arch" type="xml"> |
4958 | + <field name="partner_id" position="replace"> |
4959 | + <field string="Customer" name="partner_id" |
4960 | + on_change="onchange_partner_id(type,partner_id,voucher_type_id,date_invoice,payment_term, partner_bank_id,company_id)" |
4961 | + context="{'search_default_customer': 1}" /> |
4962 | + </field> |
4963 | + </field> |
4964 | + </record> |
4965 | + |
4966 | + <!-- Notas de Crédito Compras --> |
4967 | + |
4968 | + <record model="ir.ui.view" id="account_credit_note_supplier_form_view"> |
4969 | + <field name="name">account.invoice.form</field> |
4970 | + <field name="model">account.invoice</field> |
4971 | + <field name="type">form</field> |
4972 | + <field name="inherit_id" |
4973 | + ref="ecua_notas_credito_manual.invoice_supplier_credit_note_form" /> |
4974 | + <field name="arch" type="xml"> |
4975 | + <field name="move_id" position="after"> |
4976 | + <field name="transaction_usage_id" domain="[('name','=','COMPRA')]"/> |
4977 | + <field name="voucher_type_id" domain="[('usage_ids', 'in', [transaction_usage_id])]"/> |
4978 | + <field name="tax_support_id" domain="[('voucher_type_ids', 'in', [voucher_type_id])]"/> |
4979 | + </field> |
4980 | + </field> |
4981 | + </record> |
4982 | + |
4983 | + <record model="ir.ui.view" id="account_credit_note_supplier_form_view2"> |
4984 | + <field name="name">account.invoice.form</field> |
4985 | + <field name="model">account.invoice</field> |
4986 | + <field name="type">form</field> |
4987 | + <field name="inherit_id" |
4988 | + ref="ecua_notas_credito_manual.invoice_supplier_credit_note_form" /> |
4989 | + <field name="arch" type="xml"> |
4990 | + <field name="partner_id" position="replace"> |
4991 | + <field string="Supplier" name="partner_id" |
4992 | + on_change="onchange_partner_id(type,partner_id,voucher_type_id,date_invoice,payment_term, partner_bank_id,company_id)" |
4993 | + context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" /> |
4994 | + </field> |
4995 | + </field> |
4996 | + </record> |
4997 | + |
4998 | + <!-- Liquidación de Compras --> |
4999 | + |
5000 | + <record model="ir.ui.view" id="account_invoice_liquidation_form_view"> |
The diff has been truncated for viewing.
Este merge debe realizarse a la rama de la versión 6, no la 6.1