Skip to content

Commit

Permalink
[IMP] autoremove points in VAT numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Mar 1, 2024
1 parent 6ee6d81 commit db36b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_be_vat_reports/wizard/partner_vat_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _compute_declarant_reference(self):
_("No VAT number associated with your company.")
)

company_vat = company_vat.replace(" ", "").upper()
company_vat = company_vat.replace(" ", "").replace(".", "").upper()

Check warning on line 44 in l10n_be_vat_reports/wizard/partner_vat_list.py

View check run for this annotation

Codecov / codecov/patch

l10n_be_vat_reports/wizard/partner_vat_list.py#L44

Added line #L44 was not covered by tests
for listing in self:
seq_declarantnum = self.env["ir.sequence"].next_by_code(
"declarantnum"
Expand Down Expand Up @@ -140,7 +140,7 @@ def get_partners(self):
self.env.cr.execute(query, args)
seq = 0
for record in self.env.cr.dictfetchall():
record["vat"] = record["vat"].replace(" ", "").upper()
record["vat"] = record["vat"].replace(" ", "").replace(".", "").upper()
if record["turnover"] >= self.limit_amount:
seq += 1
record["seq"] = seq
Expand Down

0 comments on commit db36b1d

Please sign in to comment.