Refund account in Business Central Shopify connector

I want to know the detailed logic behine refund account on Shopify shop card on Shopify Business central connector.

When I create a refund for a particular order on Shopify, I expect it to create a sales credit note in Business Central. It creates a sales credit note. But the issue is that it is adding the item in sales credit note and also it is adding the refund account as another line. Ultimately, the net effect is zero. See the screenshot. I need a detailed explanation for this behaviour.

It is so frustrating that proper documentation is not available for this Business Central Shopify connector. I have already read the documentation available for this. But those documents do not explain this in detail.

I do not think this is how the system handles sales credit memo in Business Central. Based on the credit memo created the net financial effect is zero. Ultimately only the inventory quantity is getting increased (restocking). The debtor (customer) does not get a refund financially in Business Central. The debtor account is not posted with any amount (see the screenshot).

Dr Sales account 500
Dr shipping account 42.18
Cr Shopify refund account 542

I found the reason for this. I am doing the testing on a Shopify Development site. Hence, I am using Shopify payment in test mode. I raised a refund on Shopify and it created a refund, but the status is shown as “pending refund“. That means the refund amount not issued to the customer. I think that is the reason why it adds an extra line for the refund account.

I created a refund for an order which was created using bogus test payment gateway. It created the refund and status was “Refunded“. It created a credit note, but there was not an extra line for refund account. Because the refund was issued.