---
id: change/bcapps/13403
type: change
title: "#13403 Bug 657097: [master] Suggest Lines fails with a duplicate ECSL VAT Report Line Relation record in GB environment"
summary: Fixed EC Sales List Suggest Lines in GB environment to process each VAT entry only once, preventing duplicate VAT Report Line Relation records and incorrect report totals.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit ec sales list suggest lines
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-31T01:04:09.038Z"
  flags: []
generated:
  at: "2026-11-09T00:15:52.409Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1046392a78e916ce202cd550c87b49368890ac50
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13403
    title: "microsoft/BCApps#13403: Bug 657097: [master] Suggest Lines fails with a duplicate ECSL VAT Report Line Relation record in GB environment"
    date: "2026-10-30"
    commit: 1046392a78e916ce202cd550c87b49368890ac50
    t: null
    quote: Process each VAT entry once so report totals and VAT-entry relations are not duplicated.
links:
  learn: []
  objects:
    - object/codeunit/140
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/vat-return-cz
      title: VAT returns in the Czech version
      label: possibly related
      why: Describes VAT return suggest lines functionality and duplicate record handling.
      by: model
number: 13403
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13403
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-30T10:06:35Z"
author: AleksanderGladkov
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 266
  deletions: 3
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/140
    page: codeunit/140
    type: codeunit
    id: 140
    name: EC Sales List Suggest Lines
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13404
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13404
fixes_issues: []
work_items:
  - 657097
systems:
  - finance
quote: Process each VAT entry once so report totals and VAT-entry relations are not duplicated.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13403 Bug 657097: [master] Suggest Lines fails with a duplicate ECSL VAT Report Line Relation record in GB environment

> Fixed EC Sales List Suggest Lines in GB environment to process each VAT entry only once, preventing duplicate VAT Report Line Relation records and incorrect report totals.

[Pull request](https://github.com/microsoft/BCApps/pull/13403) · merged into `main` (BC30) on 2026-10-30 by AleksanderGladkov · 2 files (+266 -3), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- VAT entries appearing in multiple query rows were being processed repeatedly
- Duplicate ECSL VAT Report Line Relation records are now prevented
- Report totals and VAT-entry relations are generated correctly
- Fix includes regression tests covering group rounding and rejected/accepted prior reports
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 140 "EC Sales List Suggest Lines"](../../objects/codeunit/140.md), Base Application (GB layer): modified

## Also merged into

- [#13404](https://github.com/microsoft/BCApps/pull/13404) into `releases/29.x` on 2026-10-30

## Context

- Work items: AB#657097
- Labels: Team: Finance
- Systems: finance
- From the description: "Process each VAT entry once so report totals and VAT-entry relations are not duplicated."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [VAT returns in the Czech version](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/vat-return-cz) — possibly related: Describes VAT return suggest lines functionality and duplicate record handling. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
