Skip to content

Commit

Permalink
[IMP] l10n_ar_account_vat_ledger_citi: txt vat digital
Browse files Browse the repository at this point in the history
  • Loading branch information
jjscarafia committed Jun 29, 2020
1 parent de45a16 commit 46fd6c5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions l10n_ar_account_vat_ledger_citi/models/account_vat_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
##############################################################################
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from collections import OrderedDict
from ast import literal_eval
import base64
import logging
Expand Down Expand Up @@ -389,7 +390,7 @@ def get_REGINFO_CV_CBTE(self, alicuotas):
# TODO ver que no se informe un codigo si no correpsonde,
# tal vez da error
# TODO ADIVINAR E IMPLEMENTAR, VA A DAR ERROR
inv.fiscal_position_id.afip_code or '0',
inv.fiscal_position_id.afip_code or ' ',
]

if self.type == 'sale':
Expand Down Expand Up @@ -541,7 +542,7 @@ def get_REGINFO_CV_ALICUOTAS(self, impo=False):
hacemos los comprobantes
"""
self.ensure_one()
res = {}
res = OrderedDict()
# only vat taxes with codes 3, 4, 5, 6, 8, 9
# segun: http://contadoresenred.com/regimen-de-informacion-de-
# compras-y-ventas-rg-3685-como-cargar-la-informacion/
Expand All @@ -550,11 +551,9 @@ def get_REGINFO_CV_ALICUOTAS(self, impo=False):
# usamos mapped por si hay afip codes duplicados (ej. manual y
# auto)
if impo:
invoices = self.get_citi_invoices().filtered(
lambda r: r.document_type_id.code == '66')
invoices = self.get_citi_invoices().filtered(lambda r: r.document_type_id.code == '66')
else:
invoices = self.get_citi_invoices().filtered(
lambda r: r.document_type_id.code != '66')
invoices = self.get_citi_invoices().filtered(lambda r: r.document_type_id.code != '66')
for inv in invoices:
lines = []
is_zero = inv.currency_id.is_zero
Expand Down

0 comments on commit 46fd6c5

Please sign in to comment.