Skip to content

Commit

Permalink
fix: perf issue while submitting stock entry
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jan 30, 2024
1 parent da0ad3b commit a521fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1656,9 +1656,10 @@ def test_validate_received_qty_for_internal_pr(self):
make_stock_entry(
purpose="Material Receipt",
item_code=item.name,
qty=15,
qty=20,
company=company,
to_warehouse=from_warehouse,
posting_date=add_days(today(), -3),
)

# Step 3: Create Delivery Note with Internal Customer
Expand Down Expand Up @@ -1699,6 +1700,7 @@ def test_validate_received_qty_for_internal_pr(self):
company=company,
from_warehouse=from_warehouse,
to_warehouse=target_warehouse,
posting_date=add_days(pr.posting_date, -1),
)

pr.submit()
Expand Down
1 change: 0 additions & 1 deletion erpnext/stock/doctype/stock_entry/stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def validate(self):
self.fg_completed_qty = 0.0

self.validate_serialized_batch()
self.set_actual_qty()
self.calculate_rate_and_amount()
self.validate_putaway_capacity()

Expand Down

0 comments on commit a521fad

Please sign in to comment.