verbb / xero

Other
1 stars 6 forks source link

Bug: Craft Queue Manager reporting error for every order received #9

Closed acantes closed 3 years ago

acantes commented 3 years ago

Hi Josh,

I’ve noticed that the Craft Queue Manager is reporting an error every time a new order’s details is sent to Xero. See attached screenshots. The invoices are being generated in Xero, and the stock changes correctly, but the queue error still persists for some reason.

xero-errors-1

xero-error-detail

I have checked the chart of accounts in Xero and made sure that "200 - Sales Revenue” and "Postage… - 425” are both checked to enable payments to that account.

“Accounts Receivable - 610” and “Rounding - 860” were the default choices as per your screenshots, and don’t have an option to allow payments to them.

Like I say, the invoices make it across to Xero okay, but the Craft queue manager is becoming jammed with the errors and this may impact other queue items.

My Xero setting are as follows:

xero-settings

Any idea what could be going wrong? The error message doesn’t pinpoint which of the chart of accounts is causing the error.

Happy to send over more details on request. Thanks as always.

Craft v3.6.11.1 Xero plugin v1.0.4.1

acantes commented 3 years ago

I've realised the issue here was due to my settings in the Xero plugin. For the "Accounts Receiveable" setting I had chosen 'Accounts Receiveable - 610 - CURRENT' from the dropdown chart of accounts options in Xero. It looks right, but it's wrong!

'Accounts Receiveable - 610 - CURRENT' is a locked record in Xero and was causing the errors as data couldn't be sent to it. I changed it to a bank account record instead and all is now fine.