fix: Make expense account editable in Subcontracting Receipt Item (#31848)

This commit is contained in:
Sagar Sharma
2022-08-17 15:57:41 +05:30
committed by GitHub
parent 396667b702
commit 2d04e71412
3 changed files with 23 additions and 6 deletions

View File

@@ -322,7 +322,13 @@ class StockController(AccountsController):
)
if (
self.doctype
not in ("Purchase Receipt", "Purchase Invoice", "Stock Reconciliation", "Stock Entry")
not in (
"Purchase Receipt",
"Purchase Invoice",
"Stock Reconciliation",
"Stock Entry",
"Subcontracting Receipt",
)
and not is_expense_account
):
frappe.throw(