fix: validation to prevent submission, if the SABB is not linked to a stock transaction by rohitwaghchaure [frappe] PR#45626
From: https://github.com/frappe/erpnext/pull/45626
Date: 2025-01-31 10:26:35+05:30
- fix: validation to prevent submission if the SABB is not linked to a stock transaction
Diagnostics
pre-commit failed for source commit: f976115a2b49b01de653240afcf1a80b95fe99ae
erpnext/stock/doctype/serial_and_batch_bundle/test_serial_and_batch_bundle.py:849: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-45626
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-45626
# 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