Allow sales account as option
This commit is contained in:
1 parent
00a2ff0015
commit
69dbe9df2f
1 file changed
+1
-1
@@ -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