> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-version-release-notes/november-2026/payroll/payroll-reports/payroll-summary-report.md).

# Payroll Summary Report

Logic ERP has improved the formulas of the **Payroll Summary Report**. A formula column such as **ACTUAL SALARY** can now be written in **VB.NET** and still go through all the allowance and deduction columns of the report, as PowerShell formulas did. VB.NET formulas also work on the web and in the 64-bit version.

***

### **Step 1: Open the formula**

* Navigate to **Payroll Reports** and open the **Payroll Summary Report**.
* Open the report's column settings (**Set Column Attributes**) and press **Add/Edit Expression Columns**. The **Script Editor** opens with the formula of the report's formula columns, for example **ACTUAL SALARY**.

***

### **Step 2: Convert or write the formula**

* The allowance and deduction columns show in the **Field List** as one group. In a VB.NET formula the group is written **Arr\_** followed by the group name, with spaces and symbols written as **\_** - for example **Arr\_ALLOW\_DED**. Each column of the group has a **Name** (the column's caption) and a **Value**.
* A PowerShell formula that goes through the group with **ForEach** can now be turned into VB.NET with **Convert to VB.NET**. Earlier this part was left out of the conversion.
* Test it with **Script Watch** and press **Save**.

> **Example — Actual salary**
>
> For an employee with ORG NET SALARY ₹18,234.67, LOAN DEDUCT ₹1,500.50, BONUS ₹3,000 and INCENTIVE ₹0.25, **ACTUAL SALARY** = 18,234.67 + 1,500.50 - 3,000 - 0.25 = **₹16,734.92** - the same as the old PowerShell formula.

***

### **Check after converting**

* The old PowerShell formula also counted a **negative** allowance or deduction value. The converted formula leaves negative values out. If your report can have negative values, compare a few employees before and after converting.

***

For more detailed information, [Click Here](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/writing-formulas-in-the-script-editor/script-editor.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-version-release-notes/november-2026/payroll/payroll-reports/payroll-summary-report.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
