This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user