lolllllllll
This commit is contained in:
parent
69b952f64a
commit
7447b1ad40
@ -118,7 +118,7 @@ public class InventoryController : Controller {
|
|||||||
if (prod.Quantity == 0)
|
if (prod.Quantity == 0)
|
||||||
prod.Status = prod.Status == Product.States.Clearance?
|
prod.Status = prod.Status == Product.States.Clearance?
|
||||||
Product.States.Discontinued:
|
Product.States.Discontinued:
|
||||||
Product.States.Unavailable;
|
Product.States.BackOrder;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_logger.LogError(8, "Vente de produit pas en stock.");
|
_logger.LogError(8, "Vente de produit pas en stock.");
|
||||||
|
@ -41,8 +41,8 @@ public class SearchController : Controller {
|
|||||||
List<Product> title = new(), desc = new(), cat = new();
|
List<Product> title = new(), desc = new(), cat = new();
|
||||||
query = query.ToLower();
|
query = query.ToLower();
|
||||||
|
|
||||||
foreach (Product prod in _searchCache) {
|
foreach (Product prod in _searchCache) {
|
||||||
string sTitle = prod.Title.Replace(".", " ").Replace(",", " ").ToLower(),
|
string sTitle = prod.Title.Replace(".", " ").Replace(",", " ").ToLower(),
|
||||||
sCat = prod.Category.Replace(".", " ").Replace(",", " ").ToLower(),
|
sCat = prod.Category.Replace(".", " ").Replace(",", " ").ToLower(),
|
||||||
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();
|
sDesc = prod.Description.Replace(".", " ").Replace(",", " ").ToLower();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user