Skip to content

Commit

Permalink
Merge pull request #35465 from rohitwaghchaure/fixed-inter-transfer-c…
Browse files Browse the repository at this point in the history
…ompany

fix: rate not fetching properly for inter transfer purchase order
  • Loading branch information
rohitwaghchaure authored May 30, 2023
2 parents 7dce060 + 2931c65 commit df921b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit df921b7

Please sign in to comment.