Skip to content

Commit 9d6d121

Browse files
committed
fix: Enable Allow Purchase for auto-created Medication Items
1 parent f92dbba commit 9d6d121

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

healthcare/healthcare/doctype/medication/medication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def insert_item(doc, item):
100100
"description": item.item_code,
101101
"is_sales_item": 1,
102102
"is_stock_item": 1,
103+
"is_purchase_item": 1,
103104
"disabled": 0 if item.is_billable and not doc.disabled else 1,
104105
"stock_uom": item.stock_uom or frappe.db.get_single_value("Stock Settings", "stock_uom"),
105106
}

0 commit comments

Comments
 (0)