This commit is contained in:
2021-02-19 18:29:06 +00:00
parent b8a35b1eb2
commit 7a76b2e361
9 changed files with 56 additions and 20 deletions

View File

@@ -1,7 +1,3 @@
using System.Collections.Generic;
using System.IO;
using Microsoft.Extensions.Configuration;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using AyaNova.Models;
@@ -18,9 +14,14 @@ namespace AyaNova.Util
{
internal static bool SearchCaseSensitiveOnly { get; set; }
internal static bool UseInventory {get;set;}
internal static bool UseInventory { get; set; }
//TAX CODE DEFAULTS
internal static long? TaxPartPurchaseId { get; set; }
internal static long? TaxPartSaleId { get; set; }
internal static long? TaxRateSaleId { get; set; }
/// <summary>
/// Populate and / or create the settings
@@ -43,6 +44,9 @@ namespace AyaNova.Util
//We have the object, now copy the static values here
SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly;
UseInventory = global.UseInventory;
TaxPartPurchaseId = global.TaxPartPurchaseId;
TaxPartSaleId = global.TaxPartSaleId;
TaxRateSaleId = global.TaxRateSaleId;
}