fixed category issue while updating and adding expense

This commit is contained in:
Vaibhav Surve 2025-11-11 12:48:57 +05:30
parent b1f5fb8d78
commit 1dc68033df
2 changed files with 2 additions and 2 deletions

View File

@ -454,7 +454,7 @@ class AddExpenseController extends GetxController {
return { return {
if (isEditMode.value && editingExpenseId != null) "id": editingExpenseId, if (isEditMode.value && editingExpenseId != null) "id": editingExpenseId,
"projectId": projectsMap[selectedProject.value]!, "projectId": projectsMap[selectedProject.value]!,
"expensesTypeId": type.id, "expenseCategoryId": type.id,
"paymentModeId": selectedPaymentMode.value!.id, "paymentModeId": selectedPaymentMode.value!.id,
"paidById": selectedPaidBy.value!.id, "paidById": selectedPaidBy.value!.id,
"transactionDate": "transactionDate":

View File

@ -1921,7 +1921,7 @@ class ApiService {
}) async { }) async {
final payload = { final payload = {
"projectId": projectId, "projectId": projectId,
"expensesTypeId": expensesTypeId, "expenseCategoryId": expensesTypeId,
"paymentModeId": paymentModeId, "paymentModeId": paymentModeId,
"paidById": paidById, "paidById": paidById,
"transactionDate": transactionDate.toIso8601String(), "transactionDate": transactionDate.toIso8601String(),