Question

I tried to update an existing journalentry. I am providing id, latest synctoken and line item details. But it returns an error saying that 'Amount on debits not equal to creditsPlease balance your debits and credits '. I have checked there is no issue in credit and debit amount. Both are equal.

I do not understand why I am getting this issue?

Was it helpful?

Solution

I found my problem. In my existing journal, the lines are with id 0, 1, 2, 3. But while updating it, I was sending the lines with different ids like 0, 2, 7, 8.

So found the solution, I need to pass exact ids for the lines in a journal entry

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top