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 System.ComponentModel.DataAnnotations;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace AyaNova.Models namespace AyaNova.Models
@@ -28,13 +29,15 @@ namespace AyaNova.Models
public long? TaxPartSaleId { get; set; } public long? TaxPartSaleId { get; set; }
public long? TaxRateSaleId { get; set; } public long? TaxRateSaleId { get; set; }
[Required]
public TimeSpan WorkOrderCompleteByAge { get; set; } = TimeSpan.Zero;//was workorderclosebyage
public GlobalBizSettings() public GlobalBizSettings()
{ {
Id = 1;//always 1 Id = 1;//always 1
SearchCaseSensitiveOnly = false; SearchCaseSensitiveOnly = false;
UseInventory = true; UseInventory = true;
} }
} }
} }

View File

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