# Enter Prescription against Sale Bill

**YouTube:** [How to Configure Prescription Management in Sales Bills?](https://www.youtube.com/watch?v=AP5o8YnWkWc)

## How to Configure Prescription Management in Sales Bills?

In this tutorial, we will learn how to **enter and manage prescriptions against a sales bill in Logic ERP**, including uploading prescription documents, defining prescription details, and retrieving past patient data efficiently.

***

### Create a Sales Bill with Prescription Details

* Open the **Sale Bill – Touch Screen** module.
* Enter the **patient details** along with the **doctor’s name**.
* Specify the **prescription validity in days**.
  * For example, enter **10 days**.

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

**Attach the Doctor’s Prescription Document**

* Click on **Attach Document**.

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

* Select **Document** and use the **browse icon** to upload the prescription image from your system.
* Optionally, enter:
  * Document title
  * Validity description
  * Remarks

<figure><img src="/files/8uZObx3SrisnaL6oMKRg" alt=""><figcaption></figcaption></figure>

**Camera Capture Option**

* You can also scan or capture the prescription using a **webcam**.

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

* Select the required **camera and resolution**.
* Click **Take Picture** to capture the prescription instantly.

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

* Click **Save** to store the prescription.
* The entered prescription details can be viewed in the prescription section.

**Enter Items with Prescription Type**

* Scan or enter the items.

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

* Select the **Prescription Type**, such as:
  * **OD** – Once Daily
  * **BD** – Twice Daily
  * **TDS** – Three Times a Day
  * **QDS** – Four Times a Day
* Select **OD**.
* Once selected, the system automatically calculates and updates:
  * Prescription days
  * Prescription due date

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

* Add additional items if required.
* Enter the **payment details** and **save the bill**.

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

The sales bill is now successfully generated with prescription details.

***

### Create a Sales Bill Without Prescription Details

* Generate another sales bill.
* Skip entering:
  * Prescription days
  * Prescription type

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

* Attach the prescription document if required.
* Complete item entry, enter payment details, and **save the bill**.

***

### Add Prescription Details After Bill Generation

* Navigate to the **Enter Prescription Against Sale Bill** module.
* In the **upper section**, you will see the list of sales bills.
* In the **lower section**, details of the selected bill are displayed.

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

**Observations:**

* For the first bill, prescription details are already reflected.
* For the second bill, prescription fields appear blank.
* Select the bill without prescription details.
* Enter the required prescription information.

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

* Click **Save**.

This allows you to **add or update prescription details later** from a single, centralized screen.

***

### Retrieve Previous Patient & Prescription Details

* Return to the **Sale Bill** window.
* Enter an **existing patient’s name**.
* The system automatically fetches:
  * The **last consulted doctor**
  * Items sold in the patient’s **previous bill**

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

> **Important:**\
> Ensure the option **“Auto pick last doctor name on patient selection”** is enabled in the **Sale Voucher Configuration** for the selected billing series.

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

**Retrieve Items from Previous Bills**

* The bottom section displays items from the patient’s **last bill**.
* Select items directly to retrieve them.
* To view items from **all previous bills**, click **Show Items from All Bills**.

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

* Enter the prescription days.
* Select the required items to retrieve.
* Items will appear in the **Item Details** section.

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

* Add any additional items if required.
* Enter payment details and **save the bill**.

***

### View Patient-Wise Prescription Report

* Open the **Patient-Wise Prescription Report**.
* This report provides:
  * A consolidated view of all prescriptions
  * Easy tracking of prescribed medicines
  * Quick review of patient prescription history

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

***

### Conclusion

Using prescription features in Logic ERP helps you:

* Maintain accurate medical records
* Improve billing efficiency
* Enable quick repeat sales for returning patients
* Ensure prescription compliance and traceability


---

# 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/billing/enter-prescription-against-sale-bill.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.
