# Set Schedules for Report Generation

**YouTube:** [How to Set Schedules and Mandatory Filter Selection for Report Generation?](https://www.youtube.com/watch?v=4Yr5zTRWz3o)

## How to Set Schedules and Mandatory Filter Selection for Report Generation?

In this tutorial, you will learn how to **schedule and control report generation** in Logic ERP.\
This feature allows you to **define when, how, and under what conditions reports can be generated by users**.

***

### Open Report Scheduling Setup

**To begin:**

* Go to the **User Access Module**.
* Open **Set Schedules for Report Generation**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FwrVpg2rXVPWsrTHRTGFN%2FReport%20Configuration.png?alt=media&#x26;token=a69f4c50-ca06-4d34-bb20-b7d2af8eba56" alt=""><figcaption></figcaption></figure>

This window contains three key tabs:

* **Setup Templates**
* **Assign Reports to Templates**
* **Assign Templates to Users**

***

### Create a Template

Templates act as a **base configuration** for report scheduling.

* Go to **Setup Templates Tab**.
* Click **New**.
* Enter the **Template Name**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FO1hCZPod74RyhyVBsthU%2FTemplate%20Name.png?alt=media&#x26;token=5859272c-b565-4c33-8f11-95173669f827" alt=""><figcaption></figcaption></figure>

* Click **Save**.

**Result:** Template is successfully created.

***

### Assign Reports to Template

Now assign reports to the created template.

* Go to **Assign Reports to Templates Tab**.
* Select the **Template**.
* Click **Allocate Report**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F3oAFTsHVL2bIs7vFVAzy%2FAllocate%20Report.png?alt=media&#x26;token=717355a2-14f1-4f64-827d-5f6263893d26" alt=""><figcaption></figcaption></figure>

**Add Reports:**

* Select the **Report** you want to assign.
* Choose the **Report Configuration(s)**.
* Click **Add** → Click **OK**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F8kta4Mxl7QvuxVb3WU0P%2FADdd.png?alt=media&#x26;token=2e80de66-11d0-4cb3-9e7e-659c60c7e721" alt=""><figcaption></figcaption></figure>

* The selected reports are now linked to the template.

***

### Configure Report Settings

Now define rules for each report configuration.

* Press the **Spacebar** in the **Report Setting Column**.

This opens the **Edit Report Schedule Window**.

**Example 1: Basic Configuration**

* Mark required filters:
  * Party
  * Item
  * Company

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F2jiOMSdBns3TCzDvhx9H%2FRequired%20Selection.png?alt=media&#x26;token=8beec233-1d5c-464f-b438-f15027a976da" alt=""><figcaption></figcaption></figure>

* Set:
  * **Schedule Type:** Any Time
  * **Max Days Limit:** (as required)

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FlDPuZrCERwhex5ajJgZM%2FDays.png?alt=media&#x26;token=9f725e12-8308-4cb6-a4ca-4db28153a8eb" alt=""><figcaption></figcaption></figure>

* This ensures report cannot be generated without required filters.

**Example 2: Time-Based Restriction**

* Set:
  * **Schedule Type:** Time Between
  * **Time Range:** 10:00 AM – 6:00 PM
  * **Permission:** Allow

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fx5VT1n0O7fuiNGg9qYAi%2FAllow.png?alt=media&#x26;token=6e24cf54-680f-46fb-9360-b330ef5c6d05" alt=""><figcaption></figcaption></figure>

* Define:
  * **Max Days Limit:** 2 Days
  * Required Filter: **Party**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FNaGzMYxkwB3uQL2yf5qP%2FRequired%20Party.png?alt=media&#x26;token=72cd8eaa-daa5-42d9-acc0-f61a501229d9" alt=""><figcaption></figcaption></figure>

* Click **Save**

***

### Assign Template to Users

* Go to **Assign Templates to Users Tab**.
* Select a user by clicking on **"User Selection".**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FeMfhjpvIBS6bLQg2fztw%2FSelect%20User.png?alt=media&#x26;token=f49fc453-0e66-47f3-a8e0-ca946cc0ce88" alt=""><figcaption></figcaption></figure>

* After selecting the user, refresh the screen and then press the spacebar in the Template column.
* Select the **Template**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FKpqx8gArMuXDeVFRv9la%2FAssign%20Temp.png?alt=media&#x26;token=978b6719-8bc6-422e-9c56-f3d4758bd5cc" alt=""><figcaption></figcaption></figure>

* Click **Save**

**Result:** Template is successfully assigned to the user.

***

### Log In as Assigned User

* Log out and log in with the **same user**.

The assigned template settings will now be applied.

***

## Implement Report Generation (Validation Rules)

**Scenario 1: Missing Required Filters**

* Try generating a report without selecting required filters.

**Result:**

* System shows message:

> *"Party must be selected before creating a Report"*

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FJWlOge6Jp1QQm66C0l7l%2FParyt%20Error.png?alt=media&#x26;token=26faedba-97f7-4ff8-af87-69d700262105" alt=""><figcaption></figcaption></figure>

**Scenario 2: Valid Report Generation**

* Select all required filters:
  * Party, Item, Company
* Generate report

**Result:** Report is generated successfully.

***

## Implement Time & Date Restrictions

**Case 1: Time Restriction**

* Generate report within **10:00 AM – 6:00 PM**
* Allowed

**Case 2: Exceeding Date Limit**

* Try selecting more than **2 days range**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FdbAQJk6fn24eY0LKL49k%2FPrompt%20for%202%20days.png?alt=media&#x26;token=4681e7aa-cae2-4643-ba75-0b331322402d" alt=""><figcaption></figcaption></figure>

**Result:** System restricts report generation

#### Correct Approach:

* Select **2-day range**
* Select required **Party Filter**
* Generate report

**Result:** Report is generated successfully.

***

## Key Benefits of Report Scheduling

* Control report access by user
* Enforce required filters before generation
* Restrict report usage by time and date
* Improve system performance and discipline
* Enhance data security and compliance

***

### Final Outcome

You have successfully learned how to:

* Create **Report Templates**
* Assign **Reports to Templates**
* Configure **Report Rules & Restrictions**
* Assign templates to **Users**
* Control report generation effectively

Your system is now optimized for **secure and controlled report management**.
