diff --git a/packages/medusa-plugin-brightpearl/src/services/brightpearl.js b/packages/medusa-plugin-brightpearl/src/services/brightpearl.js index 09e0844b22..5bff4dd5df 100644 --- a/packages/medusa-plugin-brightpearl/src/services/brightpearl.js +++ b/packages/medusa-plugin-brightpearl/src/services/brightpearl.js @@ -229,7 +229,7 @@ class BrightpearlService extends BaseService { const authData = await this.getAuthData() const orderId = fromOrder.metadata.brightpearl_sales_order_id if (orderId) { - let accountingCode = "4000" + let accountingCode = this.options.sales_account_code || "4000" if ( fromRefund.reason === "discount" && this.options.discount_account_code