Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
3892 Widoki

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.

Awatar
Odrzuć
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 Najlepsza odpowiedź

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


Awatar
Odrzuć

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.

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 18
5320
1
maj 15
8934
0
mar 15
5549
1
wrz 15
4578
3
lut 24
3622