diff --git a/server/AyaNova/DataList/LoanUnitDataList.cs b/server/AyaNova/DataList/LoanUnitDataList.cs index 9393451f..5cab5d66 100644 --- a/server/AyaNova/DataList/LoanUnitDataList.cs +++ b/server/AyaNova/DataList/LoanUnitDataList.cs @@ -16,7 +16,7 @@ namespace AyaNova.DataList //todo: look at loanitemlist in v7 it surfaces due date, out date etc in the list and should here too once those fields are coded for var RoleSet = BizRoles.GetRoleSet(DefaultListAType); AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; - DefaultColumns = new List() { "LoanUnitName", "LoanUnitSerial", "Tags" }; + DefaultColumns = new List() { "LoanUnitName", "LoanUnitSerial", "LoanUnitShadowUnit" }; DefaultSortBy = new Dictionary() { { "LoanUnitName", "+" } }; FieldDefinitions = new List(); diff --git a/server/AyaNova/resource/en.json b/server/AyaNova/resource/en.json index 637fce20..788e2250 100644 --- a/server/AyaNova/resource/en.json +++ b/server/AyaNova/resource/en.json @@ -383,7 +383,7 @@ "LoanUnitCustom14": "Custom14", "LoanUnitCustom15": "Custom15", "LoanUnitCustom16": "Custom16", - "LoanUnitList": "Loan Items", + "LoanUnitList": "Loaner Items", "LoanUnitName": "Name", "LoanUnitNotes": "Notes", "LoanUnitRateDay": "Daily charge", diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 549668e4..77934ae9 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -2240,7 +2240,7 @@ namespace AyaNova.Util u.Serial = NewObject.Serial; u.Description = NewObject.Name + " - Loaner shadow unit"; u.Active = true; - u.Notes = "Shadow unit to track internal service for Loaner Unit"; + u.Notes = "Shadow unit to track internal service for Loaner item"; u.CustomerId = KnownCustomerForShadownUnitsId; u.BoughtHere = true; UnitBiz unitBiz = UnitBiz.GetBiz(ct); @@ -3078,7 +3078,7 @@ namespace AyaNova.Util { var l = CustomerUnits.Where(x => x.Key == customerId).FirstOrDefault();//Fake.Random.Long(1, TotalSeededUnits); var numUnits = l.Value.Count(); - var i = Fake.Random.Int(0, numUnits - 1); + var i = Fake.Random.Int(1, numUnits); return l.Value[i]; } @@ -3087,7 +3087,7 @@ namespace AyaNova.Util //return any random customer except for the shadow unit one long ret = KnownCustomerForShadownUnitsId; while (ret == KnownCustomerForShadownUnitsId) - ret = Fake.Random.Long(0, TotalSeededCustomers); + ret = Fake.Random.Long(1, TotalSeededCustomers); return ret; }