Codeunit 30283 Shpfy Free Inventory

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Inventory/Codeunits/ShpfyFreeInventory.Codeunit.al17 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.Integration.Shopify;using Microsoft.Inventory.Item;codeunit 30283 "Shpfy Free Inventory" implements "Shpfy Stock Calculation"{    procedure GetStock(var Item: Record Item): decimal;    begin        Item.CalcFields(Inventory, "Reserved Qty. on Inventory");        exit(Item.Inventory - Item."Reserved Qty. on Inventory");    end;}