made chnages to expense category of type
This commit is contained in:
parent
b1f5fb8d78
commit
3543770654
@ -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":
|
||||||
|
|||||||
@ -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(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user