Table extension 6252 Sust. Assembly Line

Sustainability, Microsoft.Sustainability.Assembly

Source AL, 210 lines

src/Apps/W1/Sustainability/app/src/Assembly/SustAssemblyLine.TableExt.allines 9 to 24 of 210, Copyright (c) Microsoft Corporation. MIT

tableextension 6252 "Sust. Assembly Line" extends "Assembly 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 210 lines

Fields 7 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
6214CO2e per UnitDecimalnew in 26
6215Total CO2eDecimalnew in 26
6216Posted Total CO2eDecimalnew in 26

Public procedures 4 in 29

UpdateSustainabilityEmission(var AssemblyLine: Record "Assembly Line")new in 26
UpdateEmissionPerUnit(var AssemblyLine: Record "Assembly Line")new in 26
SuspendUpdateCO2eInAssemblyHeader(SuspendUpdateCO2eOnHeader: Boolean)new in 26
UpdateCO2ePerUnitOnAssemblyHeader(AssemblyLine: Record "Assembly Line"; CurrAssemblyLineNo: Integer; NewTotalCO2e: Decimal; ApplyLineNoFilter: Boolean; ExistSustAccLines: Boolean; CallModify: Boolean)new in 26

Extends 1

table 901 "Assembly Line"Base Application17-29