This commit is contained in:
2021-05-15 14:26:55 +00:00
parent e7a8189f9f
commit d1e417276f
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
namespace AyaNova.Models
@@ -23,18 +24,20 @@ namespace AyaNova.Models
public bool SearchCaseSensitiveOnly { get; set; }
public bool UseInventory { get; set; }
//TAX CODE DEFAULTS
public long? TaxPartPurchaseId {get;set;}
public long? TaxPartSaleId {get;set;}
public long? TaxRateSaleId {get;set;}
//TAX CODE DEFAULTS
public long? TaxPartPurchaseId { get; set; }
public long? TaxPartSaleId { get; set; }
public long? TaxRateSaleId { get; set; }
[Required]
public TimeSpan WorkOrderCompleteByAge { get; set; } = TimeSpan.Zero;//was workorderclosebyage
public GlobalBizSettings()
{
Id = 1;//always 1
SearchCaseSensitiveOnly = false;
UseInventory = true;
}
}
}

View File

@@ -255,7 +255,8 @@ namespace AyaNova.Util
+ "useinventory BOOL DEFAULT TRUE, "
+ "taxpartpurchaseid BIGINT, "
+ "taxpartsaleid BIGINT, "
+ "taxratesaleid BIGINT "
+ "taxratesaleid BIGINT, "
+ "workordercompletebyage INTERVAL NOT NULL"
+ ")");
//create global ops BACKUP settings table