mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 05:45:19 +00:00
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -573,12 +573,12 @@ class SellingController(StockController):
|
|||||||
reset_incoming_rate()
|
reset_incoming_rate()
|
||||||
|
|
||||||
if (
|
if (
|
||||||
not d.incoming_rate
|
(not d.incoming_rate or self.is_new())
|
||||||
|
and not is_standalone
|
||||||
or self.is_internal_transfer()
|
or self.is_internal_transfer()
|
||||||
or (
|
or (
|
||||||
get_valuation_method(d.item_code, self.company) == "Moving Average"
|
get_valuation_method(d.item_code, self.company) == "Moving Average"
|
||||||
and self.get("is_return")
|
and self.get("is_return")
|
||||||
and not is_standalone
|
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
d.incoming_rate = get_incoming_rate(
|
d.incoming_rate = get_incoming_rate(
|
||||||
|
|||||||
Reference in New Issue
Block a user