---
id: change/bcapps/12135
type: change
title: "#12135 Fix Reverse Charge VAT upgrade migration"
summary: Corrected field mappings and filtering logic in the Reverse Charge VAT upgrade migration to properly transfer legacy values into new GB fields using type-correct filters.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit upgrade reverse charge vat
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:14.709Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12135
    title: "microsoft/BCApps#12135: Fix Reverse Charge VAT upgrade migration"
    date: "2026-10-06"
    commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
    t: null
    quote: Correct the migration to copy legacy values into the new GB fields using type-correct filters.
links:
  learn: []
  objects:
    - object/codeunit/10554-gb
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12135
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12135
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-06T21:39:16Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 47
  deletions: 31
  al: 1
apps:
  - ReverseChargeVAT
objects_touched:
  - key: codeunit/10554
    page: codeunit/10554-gb
    type: codeunit
    id: 10554
    name: Upgrade Reverse Charge VAT
    app: ReverseChargeVAT
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650031
systems:
  - finance
quote: Correct the migration to copy legacy values into the new GB fields using type-correct filters.
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #12135 Fix Reverse Charge VAT upgrade migration

> Corrected field mappings and filtering logic in the Reverse Charge VAT upgrade migration to properly transfer legacy values into new GB fields using type-correct filters.

[Pull request](https://github.com/microsoft/BCApps/pull/12135) · merged into `main` (BC30) on 2026-10-06 by ventselartur · 1 file (+47 -31), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed reversed source and destination field ID mappings across setup, item, and sales/purchase tables
- Filters now use each source field's typed default instead of blank text for Boolean and Decimal fields
- Removed the VAT Amount Line transfer and its unused namespace import
- Skips writes when source and target values already match
- Closes the record reference explicitly
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 10554 "Upgrade Reverse Charge VAT"](../../objects/codeunit/10554-gb.md), ReverseChargeVAT (GB layer): modified

## Context

- Work items: AB#650031
- Labels: Team: Finance
- Systems: finance
- From the description: "Correct the migration to copy legacy values into the new GB fields using type-correct filters."

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).
