Финал

This commit is contained in:
GokaPek 2024-06-22 10:50:29 +04:00
parent 57852c7011
commit a956ac08f5

View File

@ -94,10 +94,7 @@ namespace AbstractLawFirmFileImplement.Implements
var shopDocuments = source.Shops.SelectMany(shop => shop.ShopDocuments.Where(c => c.Value.Item1.Id == document.Id)); var shopDocuments = source.Shops.SelectMany(shop => shop.ShopDocuments.Where(c => c.Value.Item1.Id == document.Id));
int countStore = 0; int countStore = shopDocuments.Sum(it => it.Value.Item2);
foreach (var it in shopDocuments)
countStore += it.Value.Item2;
if (count > countStore) if (count > countStore)
return false; return false;