Skip to content

Commit

Permalink
vat_return: france logs after intracom/extracom logs
Browse files Browse the repository at this point in the history
Put France logs after Intracom/Extracom logs so that intracom/extracom
logs are not hidden after the long list of unpaid VAT on payment
invoices
  • Loading branch information
alexis-via committed Sep 9, 2023
1 parent cba9b58 commit a9a80b6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions l10n_fr_account_vat_return/models/l10n_fr_account_vat_return.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,18 +805,20 @@ def _generate_due_vat(self, speedy):
# TODO Check that an account can't be used in both autoliq and non-autoliq?
# COMPUTE LINES
type_rate2logs = {
"regular_france": defaultdict(list),
# 'regular_france': {2000: {'vat': [logs], 1000: [logs], 550: [], 'base': [logs]}
"extracom_product_autoliq": defaultdict(list),
"regular_extracom_service_autoliq": defaultdict(list),
"regular_intracom_product_autoliq": defaultdict(list),
"regular_intracom_service_autoliq": defaultdict(list),
"extracom_product_autoliq": defaultdict(list),
"regular_extracom_service_autoliq": defaultdict(list),
"regular_france": defaultdict(list),
# 'regular_france': {2000: {'vat': [logs], 1000: [logs], 550: [], 'base': [logs]}
# I put regular_france at the end, so that intracom/extracom autoliq
# logs are not hidden at the end of the long list of unpaid_vat_on_payment logs
}

# Compute Auto-liquidation extracom + intracom
self._generate_due_vat_autoliq(speedy, type_rate2logs)
# Compute France and Monaco
monaco_logs = self._generate_due_vat_france(speedy, type_rate2logs)
# Compute Auto-liquidation extracom + intracom
self._generate_due_vat_autoliq(speedy, type_rate2logs)

# CREATE LINES
# Boxes 08, 09, 9B
Expand Down

0 comments on commit a9a80b6

Please sign in to comment.