This commit is contained in:
2021-03-02 00:39:02 +00:00
parent b3e75e4aea
commit ec9e80befd
4 changed files with 34 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Models
[Required]
public string Name { get; set; }
[Required]
[Required]
public bool Active { get; set; }
public string Notes { get; set; }
public string Wiki { get; set; }
@@ -25,8 +25,11 @@ namespace AyaNova.Models
public List<string> Tags { get; set; }
public string Serial { get; set; }
//MIGRATE_OUTSTANDING this needs to be set in migrate v8 once workorderitemloan is coded and importable
public long? WorkOrderItemLoanId { get; set; }
[NotMapped]
public string WorkOrderItemLoanViz { get; set; }
[Required]
public decimal RateHour { get; set; }
@@ -43,7 +46,11 @@ namespace AyaNova.Models
[Required]
public LoanUnitRateUnit DefaultRate { get; set; }
public long? UnitId { get; set; }//Shadow unit
[NotMapped]
public string UnitViz { get; set; }
public LoanUnit()

View File

@@ -26,10 +26,16 @@ namespace AyaNova.Models
[Required]
public string PartNumber { get; set; }
public long? ManufacturerId { get; set; }
[NotMapped]
public string ManufacturerViz { get; set; }
public string ManufacturerNumber { get; set; }
public long? WholeSalerId { get; set; }
[NotMapped]
public string WholeSalerViz { get; set; }
public string WholeSalerNumber { get; set; }
public long? AlternativeWholeSalerId { get; set; }
[NotMapped]
public string AlternativeWholeSalerViz { get; set; }
public string AlternativeWholeSalerNumber { get; set; }
[Required]
public decimal Cost { get; set; }