This commit is contained in:
2021-01-05 16:09:44 +00:00
parent 37db5ef6dc
commit 80fa611ace
3 changed files with 63 additions and 1 deletions

View File

@@ -23,10 +23,31 @@ namespace AyaNova.Models
public string CustomFields { get; set; }
public List<string> Tags { get; set; }
public string Serial { get; set; }
public long? WorkOrderItemLoanId { get; set; }//deliberately named for efcore relationship magic
[Required]
public decimal RateHour { get; set; }
[Required]
public decimal RateHalfDay { get; set; }
[Required]
public decimal RateDay { get; set; }
[Required]
public decimal RateWeek { get; set; }
[Required]
public decimal RateMonth { get; set; }
[Required]
public decimal RateYear { get; set; }
[Required]
public LoanUnitRateUnit DefaultRate { get; set; }
public long? UnitId { get; set; }//deliberately named for efcore relationship magic Shadow unit
public LoanUnit()
{
Tags = new List<string>();
DefaultRate = LoanUnitRateUnit.Days;
}
[NotMapped, JsonIgnore]