Woocommerce link with Xero to send a credit note to Xero on product refund
It would be good for Woocommerce to send a credit note to Xero automatically when a product or order is partially or fully refunded in WooCommerce.
This should definitely be added. Can't believe that it is not currently part of this integration. It is a core feature of WooCommerce and should be supported within the Xero extension plugin. At the moment, an accountant must manually raise a credit note - not a good solution considering how easy this would be to automate / implement within this plugin.
Hi, if I process a partial refund in a Woo commerce order that is paid, in process and not completed will the refund/credit note get sent through to Xero once order is marked completed or will I have to generate a credit note in Xero manually and @Shashank will that bit of code help this if this is the case.
This definitely needs to be added as a feature, when I try to filter orders by "refunded" within woocommerce, it only shows me fully refunded orders, doesn't show partially refunded orders, so it's a time consuming process to find, open order, create credit note in Xero. If this could be automated, would save time and eliminate human error! Not sure how to achieve @Shashank's suggestion?
Shashank Kaushal commented
You can use "woocommerce_order_refunded" action hook to perform the credit note creation operation over xero.
get the order id and rufund id process the refund amount and create the xml for credit notes.