[go: up one dir, main page]

refactor: clear unallocated payments from POS Invoice by ruthra-kumar [frappe] PR#44321

From: https://github.com/frappe/erpnext/pull/44321
Date: 2024-11-25 15:56:41+05:30

  • refactor: clear unallocated payments from POS Invoice



Diagnostics

pre-commit failed for source commit: eebd058891b60d71423bbe642bc13ba4873cfd7f
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.
[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/accounts/doctype/pos_closing_entry/test_pos_closing_entry.py:324:18: RUF015 Prefer `next(...)` over single element slice
erpnext/accounts/doctype/pos_invoice/pos_invoice.py:189:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/pos_invoice/pos_invoice.py:347:27: F841 Local variable `qty` is assigned to but never used
Found 3 errors.
No fixes available (3 hidden fixes can be enabled with the `--unsafe-fixes` option).



Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-44321

# Alternatively, re-take the changes
git switch develop
ft take ft-pr-44321

# 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

Merge request reports

Loading