Skip to content

Commit

Permalink
fix: always set sales incoming rate for internal transfers
Browse files Browse the repository at this point in the history
(cherry picked from commit d049c97)
  • Loading branch information
Ninad1306 authored and mergify[bot] committed Dec 3, 2024
1 parent 38aa376 commit 05795af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,14 @@ def set_incoming_rate(self):
if not self.is_internal_transfer():
return

self.set_sales_incoming_rate_for_internal_transfer()

allow_at_arms_length_price = frappe.get_cached_value(
"Stock Settings", None, "allow_internal_transfer_at_arms_length_price"
)
if allow_at_arms_length_price:
return

self.set_sales_incoming_rate_for_internal_transfer()

for d in self.get("items"):
d.discount_percentage = 0.0
d.discount_amount = 0.0
Expand Down

0 comments on commit 05795af

Please sign in to comment.