Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
3782 Vizualizări

I am trying to create an invoice using API. When I try to send the quantity with order items, the API issues an error saying

"Cannot create an unbalanced journal entry. Ids : [291] Difference Debit-Credit : [36]"

I tried sending manual values for "Debit" and "Credit" as well.

Not sure which setting I am missing or what I am doing wrong. I am using PHP API to create the invoices.

Imagine profil
Abandonează
Autor

@Paresh Wagh,

Thanks for your suggestion. I tried with values of debit and credit value. but it still shows the same error.

When without quantity. invoice line uses the quantity 1 by default.

Autor Cel mai bun răspuns

@Presh Wagh,
Thanks For your response.
Actually the main issue is that. when I am trying to add move.line in the move(Invoice) with the quantity. then it throws the error "Cannot create an unbalanced journal entry. Ids : [291] Difference Debit-Credit : [36]".
If I don't pass the quantity then it creates the move with the move.line for the order. 


Imagine profil
Abandonează

The error means that your debit and credit amounts are not equal. The reason it does not raise an error without the quantity is because both amounts will be 0 if the quantity is zero. As mentioned earlier, check the default Account Receivable account for the Customer used on that Order. You may also want to check whether the Accounts Payable account has been configured on the Product/Product Category.

Cel mai bun răspuns

Check whether the Account Receivable account has been defined in Accounting Entries for the customer by going to Accounting(or Invoicing) > Customers > Customers and going to the Accounting tab.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
apr. 18
5242
1
mai 15
8855
0
mar. 15
5469
1
sept. 15
4475
3
feb. 24
3453