Skip to content

[Master] - Bug 641055: Sustainability - Fix Scope 3 installation multiplier#9562

Draft
v-rohangarg20 wants to merge 1 commit into
mainfrom
bugs/Bug-641055-Default-Installation-Multiplier-in-Purchase-Documents
Draft

[Master] - Bug 641055: Sustainability - Fix Scope 3 installation multiplier#9562
v-rohangarg20 wants to merge 1 commit into
mainfrom
bugs/Bug-641055-Default-Installation-Multiplier-in-Purchase-Documents

Conversation

@v-rohangarg20

@v-rohangarg20 v-rohangarg20 commented Jul 17, 2026

Copy link
Copy Markdown

Workitem Bug 641055: [Sustainability] Scope 3 Distance: Installation Multiplier defaults to 1 in Journal but 0 in Purchase Order/Invoice, giving 0 emissions

Fixes AB#641055

Issue: On Purchase Order/Invoice lines using a distance‑based Scope 3 sustainability account, "Installation Multiplier" defaulted to 0. Because distance emissions are calculated as Distance × Emission Factor × Installation Multiplier, the result was always 0 — even with a valid distance and emission factor. The Sustainability Journal behaved correctly because its "Installation Multiplier" field has InitValue = 1, so the two entry points produced inconsistent emissions.

Cause: The purchase line "Installation Multiplier" field had no default value (0), and nothing set it when a sustainability account was assigned. Unlike the journal line, there was no InitValue = 1 equivalent for purchase documents.

Solution: In the "Sust. Account No." OnValidate trigger on the Purchase Line, when the assigned account's category uses Calculation Foundation = Distance, default "Installation Multiplier" to 1 (matching the journal's behavior). The default is intentionally scoped to Distance‑based accounts only, so Fuel/Electricity, Custom, and per‑unit item emission lines keep "Installation Multiplier" = 0 and continue to pass the TestField("Installation Multiplier", 0) validation.

@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area labels Jul 17, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 17, 2026
@v-rohangarg20 v-rohangarg20 changed the title [releases/28.x] - Bug 641055: Sustainability - Fix Scope 3 installation multiplier [Master] - Bug 641055: Sustainability - Fix Scope 3 installation multiplier Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Finance GitHub request for Finance area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant