Skip to content

Commit

Permalink
fix: not able to submit stock entry with 350 items (#27523) (#27526)
Browse files Browse the repository at this point in the history
(cherry picked from commit e6a1ad8)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
frappe-pr-bot and rohitwaghchaure authored Sep 15, 2021
1 parent 978028c commit 0fb1121
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 @@ -399,7 +399,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 @@ -439,7 +440,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 0fb1121

Please sign in to comment.