Replaces user wallet ID with user ID

Updates the receivable entry model and related API endpoints to use the user's ID instead of the user's wallet ID.

This change simplifies user identification and ensures consistency throughout the application.
This commit is contained in:
padreug 2025-10-22 16:27:16 +02:00
parent 2a14dd2e62
commit eb9a3c1600
3 changed files with 5 additions and 5 deletions

View file

@ -87,7 +87,7 @@ window.app = Vue.createApp({
this.users.forEach(user => {
options.push({
label: user.username,
value: user.user_wallet_id
value: user.user_id
})
})
return options
@ -364,7 +364,7 @@ window.app = Vue.createApp({
description: this.receivableDialog.description,
amount: this.receivableDialog.amount,
revenue_account: this.receivableDialog.revenueAccount,
user_wallet: this.receivableDialog.selectedUser,
user_id: this.receivableDialog.selectedUser,
reference: this.receivableDialog.reference || null,
currency: this.receivableDialog.currency || null
}