Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
3874 Visualizzazioni

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.

Avatar
Abbandona
Autore

@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.

Autore Risposta migliore

@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. 


Avatar
Abbandona

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.

Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
apr 18
5316
1
mag 15
8908
0
mar 15
5538
1
set 15
4568
3
feb 24
3608