mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-26 14:44:06 +00:00
Add expense number at Expenses (#406)
* add expense number at expenses * Re-order expense fields * Rename expense_number migration * Add expense_number to tests --------- Co-authored-by: Darko Gjorgjijoski <dg@darkog.com>
This commit is contained in:
committed by
GitHub
parent
f3e49d3044
commit
3e96297699
@@ -116,6 +116,19 @@
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<BaseInputGroup
|
||||
:label="$t('expenses.expense_number')"
|
||||
:content-loading="isFetchingInitialData"
|
||||
>
|
||||
<BaseInput
|
||||
v-model="expenseStore.currentExpense.expense_number"
|
||||
:content-loading="isFetchingInitialData"
|
||||
type="text"
|
||||
name="expense_number"
|
||||
:placeholder="$t('expenses.expense_number_placeholder')"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<BaseInputGroup
|
||||
:label="$t('expenses.amount')"
|
||||
:error="
|
||||
@@ -134,6 +147,7 @@
|
||||
@input="v$.currentExpense.amount.$touch()"
|
||||
/>
|
||||
</BaseInputGroup>
|
||||
|
||||
<BaseInputGroup
|
||||
:label="$t('expenses.currency')"
|
||||
:content-loading="isFetchingInitialData"
|
||||
@@ -216,6 +230,9 @@
|
||||
</BaseMultiselect>
|
||||
</BaseInputGroup>
|
||||
|
||||
</BaseInputGrid>
|
||||
|
||||
<BaseInputGrid class="mt-4">
|
||||
<BaseInputGroup
|
||||
:content-loading="isFetchingInitialData"
|
||||
:label="$t('expenses.note')"
|
||||
@@ -276,6 +293,7 @@
|
||||
</BaseButton>
|
||||
</div>
|
||||
</BaseInputGrid>
|
||||
|
||||
</BaseCard>
|
||||
</form>
|
||||
</BasePage>
|
||||
@@ -482,7 +500,10 @@ async function submitForm() {
|
||||
|
||||
isSaving.value = true
|
||||
|
||||
let formData = expenseStore.currentExpense
|
||||
let formData = {
|
||||
...expenseStore.currentExpense,
|
||||
expense_number: expenseStore.currentExpense.expense_number || ''
|
||||
}
|
||||
|
||||
try {
|
||||
if (isEdit.value) {
|
||||
|
||||
Reference in New Issue
Block a user