Table extension 6248 Sust. Prod. Order Line

Sustainability, Microsoft.Sustainability.Manufacturing

Source AL, 239 lines

src/Apps/W1/Sustainability/app/src/Manufacturing/SustProdOrderLine.TableExt.allines 8 to 23 of 239, Copyright (c) Microsoft Corporation. MIT

tableextension 6248 "Sust. Prod. Order Line" extends "Prod. Order 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 239 lines

Fields 9 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
6217Expected Operation Total CO2eDecimalnew in 26
6218Expected Component Total CO2eDecimalnew in 26

Public procedures 2 in 29

UpdateSustainabilityEmission(var ProdOrderLine: Record "Prod. Order Line")new in 26
UpdateEmissionPerUnit(var ProdOrderLine: Record "Prod. Order Line")new in 26

Extends 1

table 5406 "Prod. Order Line"Base Application17-29