mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 20:42:50 +00:00
fix: check warehouse account before accessing
This commit is contained in:
@@ -599,7 +599,7 @@ class SubcontractingReceipt(SubcontractingController):
|
|||||||
|
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
if flt(item.rate) and flt(item.qty):
|
if flt(item.rate) and flt(item.qty):
|
||||||
if warehouse_account.get(item.warehouse):
|
if warehouse_account and warehouse_account.get(item.warehouse):
|
||||||
stock_value_diff = frappe.db.get_value(
|
stock_value_diff = frappe.db.get_value(
|
||||||
"Stock Ledger Entry",
|
"Stock Ledger Entry",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user