fix: get assets received but not billed account only if any asset item is received (backport #41734) by mergify[bot] [frappe] PR#41750
From: https://github.com/frappe/erpnext/pull/41750
Date: 2024-06-04 11:22:13+05:30
- fix: get assets received but not billed account only if any asset item is received (backport #41734) (#41750)
Diagnostics
pre-commit failed for source commit: c3ae5bc6a53af74c2278a2e098b9c3d8645e5095
Run ruff linter..........................................................Failed
- hook id: ruff
- exit code: 1
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:233:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:250:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:270:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:364:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:405:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:453:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:552:12: F821 Undefined name `asset_received_but_not_billed`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:585:28: F821 Undefined name `asset_category_account`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:734:8: UP008 Use `super()` instead of `super(__class__, self)`
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:968:6: F841 Local variable `asset_category` is assigned to but never used
erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py:1569:8: UP008 Use `super()` instead of `super(__class__, self)`
Found 11 errors.
No fixes available (9 hidden fixes can be enabled with the `--unsafe-fixes` option).
Checkout instructions
# Checkout locally
git fetch upstream
git switch ft-pr-41750
# Alternatively, re-take the changes
git switch develop
ft take ft-pr-41750
# 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