fix: get incoming rate only if not return

This commit is contained in:
Ankush Menat 2021-12-22 12:38:51 +05:30
parent b9642a1036
commit fcc885bc16

View File

@ -385,7 +385,7 @@ class SellingController(StockController):
# Get incoming rate based on original item cost based on valuation method
qty = flt(d.get('stock_qty') or d.get('actual_qty'))
if not d.incoming_rate:
if not (self.get("is_return") and d.incoming_rate):
d.incoming_rate = get_incoming_rate({
"item_code": d.item_code,
"warehouse": d.warehouse,