Added inventory information to assets detail view

This commit is contained in:
2025-11-01 10:45:29 +01:00
parent 74ee0f0d2f
commit c026196921
2 changed files with 20 additions and 0 deletions

View File

@@ -151,6 +151,12 @@
<data name="Barcode" xml:space="preserve"> <data name="Barcode" xml:space="preserve">
<value>Barcode</value> <value>Barcode</value>
</data> </data>
<data name="Inventory" xml:space="preserve">
<value>Inventur</value>
</data>
<data name="Information" xml:space="preserve">
<value>Informationen</value>
</data>
<data name="Download Barcode" xml:space="preserve"> <data name="Download Barcode" xml:space="preserve">
<value>Barcode herunterladen</value> <value>Barcode herunterladen</value>
</data> </data>

View File

@@ -692,7 +692,21 @@ function registerRowDetailviewClick(row) {
<button id="printBtn" class="form-control my-2 btn btn-primary">@T["Add Barcode to print batch"]</button> <button id="printBtn" class="form-control my-2 btn btn-primary">@T["Add Barcode to print batch"]</button>
</div> </div>
</div> </div>
<hr class="my-3" />
<div class="row g-3"> <div class="row g-3">
<h6 class="fw-bold">@T["Inventory"]</h6>
<div class="col-md-6">
<label class="form-label">@T["Name"]</label>
<input type="text" class="form-control" name="Name" value="${asset.Description.Inventory.PersonUid || ''}" disabled />
</div>
<div class="col-md-6">
<label class="form-label">@T["Date"]</label>
<input type="text" class="form-control" name="Name" value="${new Intl.DateTimeFormat('de-DE', {year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit"}).format(new Date(asset.Description.Inventory.Date)) || ''}" disabled />
</div>
</div>
<hr class="my-3" />
<div class="row g-3">
<h6 class="fw-bold">@T["Information"]</h6>
<div class="col-md-6"> <div class="col-md-6">
<label class="form-label">@T["Name"]</label> <label class="form-label">@T["Name"]</label>
<input type="text" class="form-control" name="Name" value="${asset.Name || ''}" disabled /> <input type="text" class="form-control" name="Name" value="${asset.Name || ''}" disabled />