diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 1675e2c963fd..96ff44e0e5b7 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -494,7 +494,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe }, () => { // for internal customer instead of pricing rule directly apply valuation rate on item - if (me.frm.doc.is_internal_customer || me.frm.doc.is_internal_supplier) { + if ((me.frm.doc.is_internal_customer || me.frm.doc.is_internal_supplier) && me.frm.doc.represents_company === me.frm.doc.company) { me.get_incoming_rate(item, me.frm.posting_date, me.frm.posting_time, me.frm.doc.doctype, me.frm.doc.company); } else {