This commit is contained in:
@@ -236,8 +236,11 @@ namespace AyaNova.Util
|
||||
|
||||
//create global biz settings table
|
||||
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id INTEGER NOT NULL PRIMARY KEY, "
|
||||
+ "searchcasesensitiveonly BOOL default false, "
|
||||
+ "useinventory BOOL default true "
|
||||
+ "searchcasesensitiveonly BOOL DEFAULT FALSE, "
|
||||
+ "useinventory BOOL DEFAULT TRUE, "
|
||||
+ "taxpartpurchaseid BIGINT, "
|
||||
+ "taxpartsaleid BIGINT, "
|
||||
+ "taxratesaleid BIGINT "
|
||||
+ ")");
|
||||
|
||||
//create global ops BACKUP settings table
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user