Table extension 6233 Sust. Item Journal Line

Sustainability, Microsoft.Sustainability.Journal

Source AL, 282 lines

src/Apps/W1/Sustainability/app/src/Journal/SustItemJournalLine.TableExt.allines 9 to 24 of 282, Copyright (c) Microsoft Corporation. MIT

tableextension 6233 "Sust. Item Journal Line" extends "Item Journal Line"{    fields    {        field(6210; "Sust. Account No."; Code[20])        {            Caption = 'Sustainability Account No.';            TableRelation = "Sustainability Account" where("Account Type" = const(Posting), Blocked = const(false));            DataClassification = CustomerContent;            trigger OnValidate()            begin                if Rec."Sust. Account No." <> xRec."Sust. Account No." then                    ClearEmissionInformation(Rec);                if Rec."Sust. Account No." = '' then begin

All 282 lines

Fields 11 in 29

6210Sust. Account No.Code[20]new in 26
6211Sust. Account NameText[100]new in 26
6212Sust. Account CategoryCode[20]new in 26
6213Sust. Account SubcategoryCode[20]new in 26
6214Emission CO2Decimalnew in 26
6215Emission CH4Decimalnew in 26
6216Emission N2ODecimalnew in 26
6217CO2e per UnitDecimalnew in 26
6218Total CO2eDecimalnew in 26

All 11 fields

Public procedures 3 in 29

GetPostingSign(GHGCredit: Boolean): Integernew in 26
IsGHGCreditLine(): Booleannew in 26
UpdateSustainabilityEmission(var ItemJournalLine: Record "Item Journal Line")new in 26

All 6 procedures in 26-29

Extends 1

table 83 "Item Journal Line"Base Application17-29

Changes 3 in 28

List17181920212223242526272829
Fields2
Procedures3
internal ShouldUpdateJournalLineWithPostingSign(): Booleannew in 28
added
internal IsSourceItemJournal(): Booleannew in 28
added
internal IsSourceItemReclassJournal(): Booleannew in 28
added

All 5 changes in 26-29