Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -2
index.html
CHANGED
|
@@ -1201,7 +1201,8 @@
|
|
| 1201 |
|
| 1202 |
const filteredItems = inventoryItems.filter(item => {
|
| 1203 |
const matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
| 1204 |
-
item.
|
|
|
|
| 1205 |
return item.quantity > 0 && matchesSearch;
|
| 1206 |
});
|
| 1207 |
|
|
@@ -1215,7 +1216,7 @@
|
|
| 1215 |
card.className = 'bg-white border rounded-lg p-4 hover:shadow-md transition-shadow';
|
| 1216 |
card.innerHTML = `
|
| 1217 |
<h4 class="font-semibold">${item.name}</h4>
|
| 1218 |
-
<p class="text-sm text-gray-600 mb-2">${item.
|
| 1219 |
<div class="flex justify-between items-center">
|
| 1220 |
<span class="text-green-600 font-semibold">$${item.sellingPrice?.toFixed(2) || '0.00'}</span>
|
| 1221 |
<span class="text-sm ${item.quantity < 10 ? 'text-red-500' : 'text-gray-500'}">
|
|
|
|
| 1201 |
|
| 1202 |
const filteredItems = inventoryItems.filter(item => {
|
| 1203 |
const matchesSearch = item.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
|
| 1204 |
+
(item.genericName && item.genericName.toLowerCase().includes(searchTerm.toLowerCase())) ||
|
| 1205 |
+
(item.notes && item.notes.toLowerCase().includes(searchTerm.toLowerCase()));
|
| 1206 |
return item.quantity > 0 && matchesSearch;
|
| 1207 |
});
|
| 1208 |
|
|
|
|
| 1216 |
card.className = 'bg-white border rounded-lg p-4 hover:shadow-md transition-shadow';
|
| 1217 |
card.innerHTML = `
|
| 1218 |
<h4 class="font-semibold">${item.name}</h4>
|
| 1219 |
+
<p class="text-sm text-gray-600 mb-2">${item.notes || 'No description'}</p>
|
| 1220 |
<div class="flex justify-between items-center">
|
| 1221 |
<span class="text-green-600 font-semibold">$${item.sellingPrice?.toFixed(2) || '0.00'}</span>
|
| 1222 |
<span class="text-sm ${item.quantity < 10 ? 'text-red-500' : 'text-gray-500'}">
|