diff --git a/public/app.js b/public/app.js index da4f64c..400cc24 100644 --- a/public/app.js +++ b/public/app.js @@ -316,8 +316,21 @@ function addQuoteItem(item = null) { itemDiv.innerHTML = ` -
-
+
+
+ + + +
+
Qty: ${summaryQty} ${summaryDesc} $${summaryAmount} @@ -468,6 +481,22 @@ function removeQuoteItem(itemId) { updateTotals(); } +function moveItemUp(itemId) { + const item = document.getElementById(`item-${itemId}`); + const prev = item.previousElementSibling; + if (prev) { + item.parentNode.insertBefore(item, prev); + } +} + +function moveItemDown(itemId) { + const item = document.getElementById(`item-${itemId}`); + const next = item.nextElementSibling; + if (next) { + item.parentNode.insertBefore(next, item); + } +} + function toggleItem(itemId) { const itemDiv = document.getElementById(`item-${itemId}`); const content = itemDiv.querySelector('.item-content');