Table extension 6278 Sust. Serv. Shipment Item Line

Sustainability, Microsoft.Sustainability.Service

src/Apps/W1/Sustainability/app/src/Service/SustServShipmentItemLine.TableExt.al28 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Sustainability.Service;using Microsoft.Service.History;using Microsoft.Sustainability.Setup;tableextension 6278 "Sust. Serv. Shipment Item Line" extends "Service Shipment Item Line"{    fields    {        field(6210; "Total CO2e"; Decimal)        {            AutoFormatType = 11;            AutoFormatExpression = SustainabilitySetup.GetFormat(SustainabilitySetup.FieldNo("Emission Decimal Places"));            CalcFormula = sum("Service Shipment Line"."Total CO2e" where("Document No." = field("No."),                                                                         "Service Item Line No." = field("Line No.")));            Caption = 'Total CO2e';            Editable = false;            FieldClass = FlowField;        }    }    var        SustainabilitySetup: Record "Sustainability Setup";}