mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 06:31:13 +01:00
* fix: `TypeError` in PR for non-stock item
(cherry picked from commit 028b3e2fbf)
# Conflicts:
# erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
* chore: `conflicts`
---------
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
@@ -562,11 +562,10 @@ class PurchaseReceipt(BuyingController):
|
|||||||
item=d,
|
item=d,
|
||||||
)
|
)
|
||||||
|
|
||||||
elif (
|
elif (d.warehouse and d.warehouse not in warehouse_with_no_account) or (
|
||||||
d.warehouse not in warehouse_with_no_account
|
d.rejected_warehouse and d.rejected_warehouse not in warehouse_with_no_account
|
||||||
or d.rejected_warehouse not in warehouse_with_no_account
|
|
||||||
):
|
):
|
||||||
warehouse_with_no_account.append(d.warehouse)
|
warehouse_with_no_account.append(d.warehouse or d.rejected_warehouse)
|
||||||
elif (
|
elif (
|
||||||
d.item_code not in stock_items
|
d.item_code not in stock_items
|
||||||
and not d.is_fixed_asset
|
and not d.is_fixed_asset
|
||||||
|
|||||||
Reference in New Issue
Block a user