---
title: "Codeunit 104063 Upg. - Default. Calc. Based On, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/points/
object: https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 104063 Upg. - Default. Calc. Based On, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/points/

2 procedures and triggers with a step in src/Layers/W1/BaseApp/Manufacturing/Upgrade/UpgDefaultCalcBasedOn.Codeunit.al, in source order, read from the text, not from a run.

## OnUpgradePerCompany

[Line 14](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L14), trigger.

- [16](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L16) calls `UpdateDefaultCalcBasedOn`

## UpdateDefaultCalcBasedOn

[Line 19](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L19), local.

- [25](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L25) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `HasUpgradeTag`
- [25](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L25) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetDefaultConsCalcBasedOnUpgradeTag`
- [30](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L30) writes [Table 99000765 Manufacturing Setup](https://jonas-paprotka.de/ref/table/99000765-manufacturing-setup/) Modify
- [33](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L33) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `SetUpgradeTag`
- [33](https://jonas-paprotka.de/ref/codeunit/104063-upg-default-calc-based-on/source/#L33) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetDefaultConsCalcBasedOnUpgradeTag`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
