mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Merge pull request #54514 from aerele/fix/incoming-rate-issue
fix(stock): set incoming rate as zero for outward sle
This commit is contained in:
@@ -955,6 +955,9 @@ class update_entries_after:
|
|||||||
if not self.wh_data.qty_after_transaction:
|
if not self.wh_data.qty_after_transaction:
|
||||||
self.wh_data.stock_value = 0.0
|
self.wh_data.stock_value = 0.0
|
||||||
|
|
||||||
|
if sle.actual_qty < 0:
|
||||||
|
sle.incoming_rate = 0
|
||||||
|
|
||||||
stock_value_difference = self.wh_data.stock_value - self.wh_data.prev_stock_value
|
stock_value_difference = self.wh_data.stock_value - self.wh_data.prev_stock_value
|
||||||
self.wh_data.prev_stock_value = self.wh_data.stock_value
|
self.wh_data.prev_stock_value = self.wh_data.stock_value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user