Fix format of default item quantity when scanning barcode

This commit is contained in:
James Chapman 2024-10-14 14:52:06 +01:00
parent d64870bf4f
commit d089065208
Signed by: jamsch0
GPG Key ID: 765FE58130277547

View File

@ -58,7 +58,7 @@
</label>
<div class="form-field__control input">
@{ var step = unit == null ? "1" : "0.001"; }
<input class="input__control" id="transactionItemQuantity" name="quantity" value="@quantity" type="number" min="@step" step="@step" required />
<input class="input__control" id="transactionItemQuantity" name="quantity" value="@(unit == null ? (int?)quantity : quantity)" type="number" min="@step" step="@step" required />
</div>
</div>