Skip to content

Commit

Permalink
fix: not able to submit stock entry with 350 items (frappe#27523)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Sep 15, 2021
1 parent 70c203d commit e6a1ad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ def process_sle(self, sle):
return

# Get dynamic incoming/outgoing rate
self.get_dynamic_incoming_outgoing_rate(sle)
if not self.args.get("sle_id"):
self.get_dynamic_incoming_outgoing_rate(sle)

if sle.serial_no:
self.get_serialized_values(sle)
Expand Down Expand Up @@ -447,7 +448,8 @@ def process_sle(self, sle):
sle.doctype="Stock Ledger Entry"
frappe.get_doc(sle).db_update()

self.update_outgoing_rate_on_transaction(sle)
if not self.args.get("sle_id"):
self.update_outgoing_rate_on_transaction(sle)

def validate_negative_stock(self, sle):
"""
Expand Down

0 comments on commit e6a1ad8

Please sign in to comment.