fix: batch qty calculation performance issue by rohitwaghchaure [frappe] PR#49477
From: https://github.com/frappe/erpnext/pull/49477
Date: 2025-09-05 18:18:55+05:30
- fix: batch qty calculation performance issue
Diagnostics
pre-commit failed for source commit: 1a262483a49a5f24bfa0fa3e3c7b0af941e6e2c0
[WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo.
erpnext/stock/doctype/serial_and_batch_bundle/test_serial_and_batch_bundle.py:915:9: RUF015 Prefer `next(iter(batches.keys()))` over single element slice
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-49477
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-49477
# Make changes then rebase
git rebase -i develop
# Fix or ignore conflicts
git checkout --theirs .
git rebase --continue
# Force-push changes
git push --force-with-lease