Integral2uCommon 1.0.3

dotnet add package Integral2uCommon --version 1.0.3
NuGet\Install-Package Integral2uCommon -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Integral2uCommon" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Integral2uCommon --version 1.0.3
#r "nuget: Integral2uCommon, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Integral2uCommon as a Cake Addin
#addin nuget:?package=Integral2uCommon&version=1.0.3

// Install Integral2uCommon as a Cake Tool
#tool nuget:?package=Integral2uCommon&version=1.0.3

Welcome and pleased to meet you.

What’s integral to your business? Simple questions and the answer is usually simple, customers. No doubt you want to provide your customers with the highest level of service and you need the right tool’s to do so and then you need time. There are many many options, however no matter what you choose or how much you spend there will not be one that does everything you want or need and more unlikely they work together in a way that doesn't consume your time. This is where Custom API’s can help to fill in the gaps and provide workable solutions for you. Integral2u will work toward implementing solutions that can integrate or produce results that can be imported into 3rd party systems. While we will provide custom API's we also create and distibute our own prebuilt API's on Rapid Hub https://rapidapi.com/user/integral2u

Current API's'

Money Easy to use Enterprise resource planning (ERP) tools for planing prices, costs, markups and dealing with money. https://www.nuget.org/packages/Integral2uMoneyContracts/

Inventory Inventory provides inventory management Enterprise Resource Managment(ERP) tools to aid in planning and achieving optimal inventory. Great for determining and forcasting inventory requirements. https://www.nuget.org/packages/Integral2uInventoryContracts/

Quick Example Money

using Integral2uMoneyContracts.V1;

//You rapid API Key should not be made publicly visible
//Search appsettings or environment variables
var rest = new Integral2uRestApi("[Your rapid API Key Here]") as IIntegral2uApi; 
var restResult = rest.DiscountFromRetailNet(1.0, 0.5);
Console.Out.WriteLine(restResult);

Console.Out.WriteLine(rest.RetailFromNetDiscount(0.5, restResult));

var quote = new[] {
                    new QuoteLine("1", 50, 60.00005, 10),
                    new QuoteLine("2", 10, 11, 250),
                    new QuoteLine("3", 10, 11, 250),
                    new QuoteLine("4", 10, 12, 75, 2.0/12.0)
                };
var q = http.ReduceQuoteByValue(new ReduceQuoteByValue(quote, -50));
var c = 0.0;
var s = 0.0;
foreach (var l in q)
{
    Console.Out.WriteLine($"{l.Sku}\t{Math.Round(l.Cost, 4)}\t{Math.Round(l.Sell, 4)}\t{Math.Round(l.Qty, 4)}\t{Math.Round((l.Qty * l.Sell), 4)}");
    c += l.Qty * l.Cost;
    s += l.Qty * l.Sell;
}
var m = s - c;
Console.Out.WriteLine($"{Math.Round(c, 4)}\t{Math.Round(s, 4)}\t{Math.Round(m, 4)}\t{Math.Round(m / s, 4)}");

Console.In.ReadLine();

Quick Example Inventory

using Integral2uInventoryContracts.V1;

//You rapid API Key should not be made publicly visible
//Search appsettings or environment variables
var rest = new Integral2uRestApi("[Your RapidApi Key Here]") as IIntegral2uApi;
var restResult = rest.WeightedUsage(new double[] { 8, 4, 5 });
Console.Out.WriteLine(restResult); //~6.16666

Console.In.ReadLine();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Integral2uCommon:

Package Downloads
Integral2uMoneyContracts

Easy to use Enterprise resource planning (ERP) tools for planing prices, costs, markups and dealing with money.

Integral2uSalesTaxContracts

Easy to use Sales Tax information and Calculators

Integral2uInventoryContracts

Inventory provides inventory management Enterprise Resource Managment(ERP) tools to aid in planning and achieving optimal inventory.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 260 10/14/2023
1.0.2 149 10/13/2023
1.0.1 139 10/7/2023
1.0.0 139 9/30/2023