Adds entry date to expense entries
Adds a date field to expense entries for better tracking and reporting. This allows users to specify the date of the expense transaction, providing more accurate financial records.
This commit is contained in:
parent
b529a72d9e
commit
c7bc0c7904
4 changed files with 14 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ window.app = Vue.createApp({
|
|||
isEquity: false,
|
||||
reference: '',
|
||||
currency: 'EUR',
|
||||
date: new Date().toISOString().split('T')[0], // YYYY-MM-DD format
|
||||
loading: false
|
||||
},
|
||||
payDialog: {
|
||||
|
|
@ -472,7 +473,8 @@ window.app = Vue.createApp({
|
|||
is_equity: this.expenseDialog.isEquity,
|
||||
user_wallet: this.g.user.wallets[0].id,
|
||||
reference: this.expenseDialog.reference || null,
|
||||
currency: this.expenseDialog.currency || null
|
||||
currency: this.expenseDialog.currency || null,
|
||||
entry_date: this.expenseDialog.date ? `${this.expenseDialog.date}T00:00:00` : null
|
||||
}
|
||||
)
|
||||
this.$q.notify({
|
||||
|
|
@ -974,6 +976,7 @@ window.app = Vue.createApp({
|
|||
this.expenseDialog.isEquity = false
|
||||
this.expenseDialog.reference = ''
|
||||
this.expenseDialog.currency = 'EUR'
|
||||
this.expenseDialog.date = new Date().toISOString().split('T')[0]
|
||||
},
|
||||
resetReceivableDialog() {
|
||||
this.receivableDialog.selectedUser = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue