mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 02:34:41 +00:00
fix: Clinical Procedure - consume stock if items present
This commit is contained in:
@@ -43,7 +43,7 @@ class ClinicalProcedure(Document):
|
||||
self.reload()
|
||||
|
||||
def complete(self):
|
||||
if self.consume_stock:
|
||||
if self.consume_stock and self.items:
|
||||
create_stock_entry(self)
|
||||
frappe.db.set_value("Clinical Procedure", self.name, "status", 'Completed')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user