diff --git a/admin/collection/view.js b/admin/collection/view.js index 24d6d4c2..46dfdf03 100644 --- a/admin/collection/view.js +++ b/admin/collection/view.js @@ -77,7 +77,7 @@ document.cookie = "final=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; .then((response) => { if (response.status == 200) { response.json().then((data) => { - rId.textContent = data.request.id; + rId.textContent = "S/P/"+data.request.id; sName.textContent = data.request.name + " " + data.request.last_name; sPhone.textContent = data.request.phone; address.textContent = data.request.address; diff --git a/admin/employee/view-all.js b/admin/employee/view-all.js index b65e2f55..bf570306 100644 --- a/admin/employee/view-all.js +++ b/admin/employee/view-all.js @@ -46,7 +46,7 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; sin: { oTitle: "සේවකයින් බලන්න", oText: "සීමාසහිත ජයසිංහ ඔයිල් මිල්ස් (PVT) හි සියලුම සේවකයින් බලන්න", - btn: "සේවකයා එකතු කරන්න", + btn: "සේවකයින් එකතු කරන්න", }, en: { oTitle: "View Employees", diff --git a/admin/index.html b/admin/index.html index c4e7a221..46078d2f 100644 --- a/admin/index.html +++ b/admin/index.html @@ -85,7 +85,7 @@
Enter Unit Price for pending products
diff --git a/sales-manager/products/view-all.js b/sales-manager/products/view-all.js index c4248f27..0dc49706 100644 --- a/sales-manager/products/view-all.js +++ b/sales-manager/products/view-all.js @@ -5,6 +5,7 @@ pTitle = body.querySelector(".salesmg-title"), pText = body.querySelector(".salesmg-text"), productsTable = body.querySelector(".products-table"), + pendingProducts = body.querySelector(".pending-products"), tbody1 = body.querySelector(".tbody1"), tbody2 = body.querySelector(".tbody2"), searchBar = body.querySelector(".search"), @@ -203,6 +204,8 @@ tbody1.innerHTML = row1; tbody2.innerHTML = row2; + if (row1.length == 0) pendingProducts.style.display = "none"; + const cols = document.querySelectorAll(".col"), col1s = document.querySelectorAll(".col1"), edits = document.querySelectorAll(".fa-pen-to-square"), @@ -558,7 +561,8 @@ pPriceStatus = false; return false; } else if (!checkInt(pPrice.value)) { - if (lang == "sin") pPriceError.textContent = "ඒකක මිල 0 ට වඩා වැඩි විය යුතුය"; + if (lang == "sin") + pPriceError.textContent = "ඒකක මිල 0 ට වඩා වැඩි විය යුතුය"; else pPriceError.textContent = "Unit price must be greater than 0"; pPriceStatus = false; return false; diff --git a/stock-manager/collectors/view.html b/stock-manager/collectors/view.html index 42f5b424..75bcf33d 100644 --- a/stock-manager/collectors/view.html +++ b/stock-manager/collectors/view.html @@ -133,8 +133,8 @@Block ID | -period | +Block | +Period | Amount | Add | Total | diff --git a/stock-manager/collectors/view.js b/stock-manager/collectors/view.js index 57e98472..6c998a94 100644 --- a/stock-manager/collectors/view.js +++ b/stock-manager/collectors/view.js @@ -238,7 +238,7 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; `
---|---|---|---|---|---|---|
` + + ` | S/P/` + item.id + ` | ` + `` + @@ -598,14 +598,14 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; if (lang == "sin") daysError.innerHTML = ` දින ගණන හිස් විය නොහැක`; else - daysError.innerHTML = ` Days count cannot be empty`; + daysError.innerHTML = ` Number of days cannot be empty`; elm.nextSibling.style.display = ""; } else if (!checkInt(elm.value)) { daysError.style.display = ""; if (lang == "sin") daysError.innerHTML = ` දින ගණන 0 ට වඩා වැඩි විය යුතුය`; else - daysError.innerHTML = ` Days count must be greater than 0`; + daysError.innerHTML = ` Number of days must be greater than 0`; elm.nextSibling.style.display = ""; } else { daysError.style.display = "none"; @@ -763,7 +763,7 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; ` disable">` + ` | ` + `` + - ` | ` + @@ -800,7 +800,7 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; if (lang == "sin") daysError.innerHTML = ` දින ගණන හිස් විය නොහැක`; else - daysError.innerHTML = ` Days count cannot be empty`; + daysError.innerHTML = ` Number of days cannot be empty`; day.nextSibling.style.display = ""; return false; } else if (!checkInt(day.value)) { @@ -808,7 +808,7 @@ document.cookie = "id=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; if (lang == "sin") daysError.innerHTML = ` දින ගණන 0 ට වඩා වැඩි විය යුතුය`; else - daysError.innerHTML = ` Days count must be greater than 0`; + daysError.innerHTML = ` Number of days must be greater than 0`; day.nextSibling.style.display = ""; return false; } else { diff --git a/stock-manager/index.html b/stock-manager/index.html index d3bc5d08..8e7ab10f 100644 --- a/stock-manager/index.html +++ b/stock-manager/index.html @@ -106,7 +106,7 @@