This commit is contained in:
@@ -117,6 +117,9 @@ namespace AyaNova.Api.Controllers
|
||||
DefaultTaxPartSaleId = AyaNova.Util.ServerGlobalBizSettings.TaxPartSaleId,
|
||||
DefaultTaxPartPurchaseId = AyaNova.Util.ServerGlobalBizSettings.TaxPartPurchaseId,
|
||||
DefaultTaxRateSaleId = AyaNova.Util.ServerGlobalBizSettings.TaxRateSaleId,
|
||||
WorkOrderTravelDefaultMinutes = AyaNova.Util.ServerGlobalBizSettings.WorkOrderTravelDefaultMinutes,
|
||||
WorkLaborScheduleDefaultMinutes = AyaNova.Util.ServerGlobalBizSettings.WorkLaborScheduleDefaultMinutes,
|
||||
|
||||
//used to drive UI in case of unlicensed or attention required
|
||||
LicenseStatus = AyaNova.Core.License.ActiveKey.Status,
|
||||
MaintenanceExpired = AyaNova.Core.License.ActiveKey.MaintenanceExpired,
|
||||
|
||||
@@ -29,6 +29,13 @@ namespace AyaNova.Models
|
||||
public long? TaxPartSaleId { get; set; }
|
||||
public long? TaxRateSaleId { get; set; }
|
||||
|
||||
|
||||
//DEFAULT WO MINUTES
|
||||
[Required]
|
||||
public int WorkLaborScheduleDefaultMinutes {get;set;}
|
||||
[Required]
|
||||
public int WorkOrderTravelDefaultMinutes {get;set;}
|
||||
|
||||
[Required]
|
||||
public TimeSpan WorkOrderCompleteByAge { get; set; } = TimeSpan.Zero;//was workorderclosebyage
|
||||
|
||||
|
||||
@@ -253,7 +253,9 @@ namespace AyaNova.Util
|
||||
await ExecQueryAsync("CREATE TABLE aglobalbizsettings (id INTEGER NOT NULL PRIMARY KEY, "
|
||||
+ "searchcasesensitiveonly BOOL DEFAULT FALSE, "
|
||||
+ "useinventory BOOL DEFAULT TRUE, "
|
||||
+ "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00'"
|
||||
+ "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00', "
|
||||
+ "workordertraveldefaultminutes INTEGER NOT NULL DEFAULT 0, "
|
||||
+ "worklaborscheduledefaultminutes INTEGER NOT NULL DEFAULT 0 "
|
||||
+ ")");
|
||||
|
||||
//create global ops BACKUP settings table
|
||||
|
||||
@@ -20,7 +20,8 @@ namespace AyaNova.Util
|
||||
internal static long? TaxPartSaleId { get; set; }
|
||||
internal static long? TaxRateSaleId { get; set; }
|
||||
internal static TimeSpan WorkOrderCompleteByAge { get; set; }
|
||||
|
||||
internal static int WorkLaborScheduleDefaultMinutes { get; set; }
|
||||
internal static int WorkOrderTravelDefaultMinutes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Populate and / or create the settings
|
||||
@@ -47,6 +48,9 @@ namespace AyaNova.Util
|
||||
TaxPartSaleId = global.TaxPartSaleId;
|
||||
TaxRateSaleId = global.TaxRateSaleId;
|
||||
WorkOrderCompleteByAge = global.WorkOrderCompleteByAge;
|
||||
WorkLaborScheduleDefaultMinutes = global.WorkLaborScheduleDefaultMinutes;
|
||||
WorkOrderTravelDefaultMinutes = global.WorkOrderTravelDefaultMinutes;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user