refactor: improve UI responsiveness, add currency formatting to invoice inputs, update address formatting, and refine Docker setup instructions.
This commit is contained in:
@@ -75,9 +75,16 @@
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<label class="text-xs text-gray-400 block mb-0.5">Unit Price</label>
|
||||
<input type="number" :name="`items[${index}][unit_price]`"
|
||||
x-model.number="item.unit_price" @input="recalc()"
|
||||
class="input-soft text-sm bg-white" min="0" step="1000">
|
||||
<input type="hidden" :name="`items[${index}][unit_price]`" :value="item.unit_price">
|
||||
<input type="text"
|
||||
:value="item.unit_price ? formatNum(item.unit_price) : ''"
|
||||
@input="
|
||||
let raw = $event.target.value.replace(/\D/g, '');
|
||||
item.unit_price = raw ? parseInt(raw, 10) : 0;
|
||||
$event.target.value = item.unit_price ? formatNum(item.unit_price) : '';
|
||||
recalc();
|
||||
"
|
||||
class="input-soft text-sm bg-white" placeholder="0">
|
||||
</div>
|
||||
<div class="w-24 shrink-0 text-right">
|
||||
<label class="text-xs text-gray-400 block mb-0.5">Total</label>
|
||||
|
||||
Reference in New Issue
Block a user