# Do not allow Bill saving without Patient and Doctor Details for items in Marked Groups at Level

**YouTube:** [How to Enforce Doctor and Patient Selection for Schedule H Prescription Items in Sale Bill?](https://www.youtube.com/watch?v=QsPNUEWXLfU)

## How to Enforce Doctor and Patient Selection for Schedule H Prescription Items in Sale Bill?

This tutorial demonstrates how to configure Logic ERP to **restrict bill saving** if **Patient** and **Doctor details** are missing for items that belong to special or prescription-required categories.

***

### **Enable the Setting in Logic Admin**

* Open the **Logic** installation folder.
* Run **Logic Admin**.
* Navigate to **Global Settings**.
* Go to the **Sales Settings Three** tab.
* Find the option: **“Do not allow bill saving without Patient and Doctor Details for items in marked groups at level:”**

<figure><img src="/files/9Km4cPIb6Y1J193fPuUu" alt=""><figcaption></figcaption></figure>

* From the dropdown menu, **select the relevant item group level**.
* Enable the checkbox and click **Save**.
* Restart the Logic ERP software to apply the new configuration.

***

### **Implement the Functionality in Sales Voucher**

* Open Logic ERP and begin creating a **Sales Voucher**.
* Skip entering **Patient** and **Doctor details and** proceed to add item(s).
* When you try to **save the voucher**, the system will display:
  * **“Patient name cannot be left blank”**
  * **“Doctor name cannot be left blank”**

<figure><img src="/files/pt8vIKmzOBhk7f5iUBkZ" alt=""><figcaption></figcaption></figure>

* This validation is triggered **only for items** that belong to marked item groups requiring prescriptions.

***

### **Mark Item Groups for Validation**

* Navigate to **Setup/Setup Items** then click on **Setup Item Group**.
* Create a new group or **edit an existing one** that includes regulated or prescription items.
* In the item group window, locate the column for **Patient & Doctor validation**.
* Mark **“Yes”** to enforce this validation for all items under this group.

<figure><img src="/files/hoBaAJU7tFWhJq9T0P4B" alt=""><figcaption></figcaption></figure>

* Save the changes.

***

### **Summary**

Enabling this feature ensures that **medical or prescription-based items** are not billed without the necessary **Patient and Doctor information**. It helps in maintaining regulatory compliance and preventing unauthorized sales.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/sale/sale-settings-3/do-not-allow-bill-saving-without-patient-and-doctor-details-for-items-in-marked-groups-at-level.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
