Prevent non-positive number of periods in income statement

This commit is contained in:
RunasSudo 2025-02-22 23:43:58 +11:00
parent 2c7f347cef
commit 8c708dbf4c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -65,7 +65,7 @@
<input type="date" class="bordered-field" v-model.lazy="dt">
<span>Compare</span>
<div class="relative flex flex-grow items-stretch shadow-sm">
<input type="number" class="bordered-field w-[9.5em] pr-[6em]" v-model.lazy="comparePeriods">
<input type="number" min="1" class="bordered-field w-[9.5em] pr-[6em]" v-model.lazy="comparePeriods">
<div class="absolute inset-y-0 right-0 flex items-center z-10">
<select class="h-full border-0 bg-transparent py-0 pl-2 pr-8 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-emerald-600" v-model="compareUnit">
<option value="years">years</option>