Feature #2: Improve Warranty Logging
Warranty job UI changes to make consistent with plans for Repair Logging
This commit is contained in:
@@ -34,6 +34,16 @@ namespace Disco.Web.Models.Job
|
||||
[Required]
|
||||
public string WarrantyAction { get; set; }
|
||||
|
||||
public bool IsCustomProvider
|
||||
{
|
||||
get
|
||||
{
|
||||
return WarrantyProviderId == "CUSTOM";
|
||||
}
|
||||
}
|
||||
public string CustomProviderName { get; set; }
|
||||
public string CustomProviderReference { get; set; }
|
||||
|
||||
public Type WarrantyProviderSubmitJobViewType { get; set; }
|
||||
public object WarrantyProviderSubmitJobModel { get; set; }
|
||||
public string WarrantyProviderPropertiesJson { get; set; }
|
||||
@@ -93,7 +103,7 @@ namespace Disco.Web.Models.Job
|
||||
WarrantyProviderId = Job.Device.DeviceModel.DefaultWarrantyProvider;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(WarrantyProviderId))
|
||||
if (!string.IsNullOrEmpty(WarrantyProviderId) && WarrantyProviderId != "CUSTOM")
|
||||
WarrantyProvider = Plugins.GetPluginFeature(WarrantyProviderId, typeof(WarrantyProviderFeature));
|
||||
|
||||
this.OrganisationAddresses = Database.DiscoConfiguration.OrganisationAddresses.Addresses.OrderBy(a => a.Name).ToList();
|
||||
|
||||
Reference in New Issue
Block a user