Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrección de errores #11

Open
wants to merge 6 commits into
base: 14.0
Choose a base branch
from

Conversation

msolis6686
Copy link

@msolis6686 msolis6686 commented Jan 25, 2023

  1. Se corrigió error al querer imprimir el reporte de Iva Venta-Compra en módulo l10n_ar_financial_reports, agregando los fiels necesarios para el reporte...
if self.type_report == 'ivasale':
    #CAMBIOS POR MARITO - se agregaron los fields necesarios para el reporte
    invoices_ids = self.env['account.move'].search_read([('move_type','in',['out_invoice','out_refund']),('invoice_date','>=',self.date_from),('invoice_date','<=',self.date_to)],['id', 'name','l10n_ar_afip_responsibility_type_id','invoice_date','invoice_partner_display_name','document_partner','amount_total','amount_untaxed_signed','iva10','iva21','iva27','no_gravado','iva_exento','move_type'])
    data = {
        'from_data' : self.read()[0],
        'invoices_ids' : invoices_ids
    }
    return self.env.ref('l10n_ar_financial_reports.action_report_iva_sale').sudo().with_context(landscape=True).report_action(self, data=data)
elif self.type_report == 'ivapurchase':
    #CAMBIOS POR MARITO - se agregaron los fields necesarios para el reporte
    invoices_ids = self.env['account.move'].search_read([('move_type','in',['in_invoice','in_refund']),('date','>=',self.date_from),('date','<=',self.date_to)],['id', 'name','l10n_ar_afip_responsibility_type_id','l10n_latam_amount_untaxed','invoice_date','invoice_partner_display_name','document_partner','amount_total','amount_untaxed_signed','iva10','iva21','iva27','no_gravado','iva_exento','iva_no_corresponde','move_type','amount_by_group'])
  1. En módulo de l10n_ar_withholding, se agregó una comprobación para determinar si el pago viene con alguna retención, para que cambie a la cuenta correspondiente, en vez de que apunte al diario, debe registrarse en la cuenta contable definida en el impuesto de retención.
#CAMBIOS POR MARITO
#Chequeo si viene con algun impuesto de retención, y cambio la cuenta a donde apunta.
if self.tax_withholding_id:
    account_imp_ret = self.tax_withholding_id.invoice_repartition_line_ids.filtered(lambda r: len(r.account_id) > 0)
    line.account_id = account_imp_ret.account_id
  1. En módulo de Account_payment_group se agregó al reporte de Recibo el método de pago correspondiente.
<td><span t-if="p.journal_id" t-field="p.journal_id"/> (<span t-if="p.payment_method_description" t-field="p.payment_method_description"/></td>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants