Allow sales account as option
This commit is contained in:
@@ -229,7 +229,7 @@ class BrightpearlService extends BaseService {
|
|||||||
const authData = await this.getAuthData()
|
const authData = await this.getAuthData()
|
||||||
const orderId = fromOrder.metadata.brightpearl_sales_order_id
|
const orderId = fromOrder.metadata.brightpearl_sales_order_id
|
||||||
if (orderId) {
|
if (orderId) {
|
||||||
let accountingCode = "4000"
|
let accountingCode = this.options.sales_account_code || "4000"
|
||||||
if (
|
if (
|
||||||
fromRefund.reason === "discount" &&
|
fromRefund.reason === "discount" &&
|
||||||
this.options.discount_account_code
|
this.options.discount_account_code
|
||||||
|
|||||||
Reference in New Issue
Block a user