-
-
+
\ No newline at end of file
diff --git a/src/Views/Home/Inventory.cshtml b/src/Views/Home/Inventory.cshtml
index 0048497..6a25a86 100644
--- a/src/Views/Home/Inventory.cshtml
+++ b/src/Views/Home/Inventory.cshtml
@@ -6,6 +6,8 @@
ViewData["Title"] = T["Inventory"];
}
+
+
@T["Inventory"]
@@ -194,7 +196,7 @@
-
+
@@ -278,7 +280,11 @@
});
document.getElementById("downloadBtn").addEventListener("click", () => downloadBarcode("ean13", decodedText));
- document.getElementById("printBtn").addEventListener("click", () => printBarcode("ean13"));
+ document.getElementById("printBtn").addEventListener("click", () => {
+ addAssetIdToBatch(asset.Cn);
+ showToast("@T["Successfully added barcode to print batch"]", "success");
+ bootstrap.Modal.getInstance('#viewAssetModal').hide();
+ });
} catch (err) {
console.error(err);
@@ -603,4 +609,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
});
});
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/src/Views/Shared/_Batch.cshtml b/src/Views/Shared/_Batch.cshtml
new file mode 100644
index 0000000..8e1a7d5
--- /dev/null
+++ b/src/Views/Shared/_Batch.cshtml
@@ -0,0 +1,394 @@
+@using Microsoft.AspNetCore.Mvc.Localization
+@inject IViewLocalizer T
+
+
+
+
+
+
+
+
Print Page
+
+
+
+
+
+
+
+
+
diff --git a/src/Views/Shared/_BatchButton.cshtml b/src/Views/Shared/_BatchButton.cshtml
new file mode 100644
index 0000000..5fe2fdc
--- /dev/null
+++ b/src/Views/Shared/_BatchButton.cshtml
@@ -0,0 +1,8 @@
+
\ No newline at end of file