> For the complete documentation index, see [llms.txt](https://docs.greytrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.greytrix.com/sage-crm-add-ons/crm-project-manager/user-guide/accounts-receivable.md).

# Accounts Receivable

The **Accounts Receivable** feature enables Project Manager to generate customer invoices by posting eligible timesheet entries to the ERP system. This feature is available from the **Project CRM** main menu or by right-clicking the **Project** icon in the left-hand navigation menu.

Only timesheet entries with an **AR Status** of **PO Received** are eligible for posting. These entries must be associated with tasks that are also in the **PO Received** status. Once an entry is successfully posted, its **AR Status** is automatically updated to **Posted**.

<figure><img src="https://794987320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCRVg-TYx3gVa2Tqtf_%2Fuploads%2FIJJiApTRvHf2dEjxAA1Z%2FAccounts%20Receivable.png?alt=media&amp;token=72a32f9e-894a-40c9-a1b8-18e9f3cbf2c8" alt=""><figcaption></figcaption></figure>

#### Posting to Accounts Receivable

To post timesheet entries to Accounts Receivable:

1. Open **Accounts Receivable** from the **Project CRM** menu.
2. Review the list of eligible timesheet entries.
3. Click **Generate AR Invoice**.
4. Confirm the invoice generation.

After confirmation, Project Manager displays a summary of the records that have been processed and the generated **Accounts Receivable Batch Number**.

#### Accounts Receivable Entry Details

The Accounts Receivable screen displays the following information for each eligible timesheet entry:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Field Name</td><td valign="top">Description</td></tr><tr><td valign="top">Entry Date</td><td valign="top">The entry date of the timesheet</td></tr><tr><td valign="top">Entry User</td><td valign="top">The user who entered the timesheet</td></tr><tr><td valign="top">Project</td><td valign="top">The project associated with the timesheet</td></tr><tr><td valign="top">Customer</td><td valign="top">The customer associated with the project.</td></tr><tr><td valign="top">Task Name</td><td valign="top">The name of the task associated with the timesheet</td></tr><tr><td valign="top">Billed</td><td valign="top">The timesheet billed amount</td></tr><tr><td valign="top">Remaining</td><td valign="top">The amount of days remaining on the task.</td></tr><tr><td valign="top">Status</td><td valign="top">The status of the task</td></tr><tr><td valign="top">AR Status</td><td valign="top">The Accounts Receivable status on the timesheet</td></tr></tbody></table>

#### Generating AR Invoices

Selecting **Generate AR Invoice** automatically groups timesheet entries by their associated tasks, projects, and companies before posting them to the ERP system.

The way invoices are generated depends on the **Invoice Method** configured for the project:

* **By Project** – A single invoice is generated for the entire project.
* **By Task** – Separate invoices are generated for individual project tasks.

Project Manager then creates the appropriate invoice entries in the company's ACCPAC database.

#### Posting Results

After the posting process is completed:

* A summary of the processed records is displayed.
* An **Accounts Receivable Batch Number** is generated.
* The corresponding batch can be viewed in **ACCPAC** using the same batch number.
* The **AR Status** of successfully posted timesheet entries is automatically updated to **Posted**.

<figure><img src="https://794987320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCRVg-TYx3gVa2Tqtf_%2Fuploads%2FzexuWlzR0QQGRum4wIiy%2FAR%20Invoice%20Entry.png?alt=media&amp;token=643f34a8-3098-4518-8333-c47a1338b76e" alt=""><figcaption></figcaption></figure>

#### ACCPAC Configuration

On a default installation, CRM Project Manager includes demonstration data that is configured for posting to **ACCPAC**. In the sample configuration, all project tasks and timesheets are assigned to the **System Administrator**, who is mapped to the sample ACCPAC Vendor **7400**.

<figure><img src="https://794987320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCRVg-TYx3gVa2Tqtf_%2Fuploads%2FBBUyHFaHGkU5IUx2zrQO%2FAR%20Invoice.png?alt=media&amp;token=3c55af81-83f2-472c-8462-6bb426885f30" alt=""><figcaption></figcaption></figure>

<figure><img src="https://794987320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MCRVg-TYx3gVa2Tqtf_%2Fuploads%2FZT0ZZ9lf1TIV7pCFwqtT%2FUser%20Details.png?alt=media&amp;token=caca0e93-dc81-4557-b610-e74cd63aeec5" alt=""><figcaption></figcaption></figure>

Project Manager uses the configuration file `enbu_accpac_config.js`, located in:

```
\WWWROOT\CustomPages\Enbu\Project\ACCPAC
```

This configuration file contains two SQL filters used during the posting process:

* **AR\_SQLFILTER** – Filters Accounts Receivable timesheet entries.
* **AP\_SQLFILTER** – Filters Accounts Payable timesheet entries.

These filters can be modified to match an organization's business rules or Project Manager customizations.

By default:

* The **Accounts Payable** filter requires:
* Timesheet AP Status to be **Posted**.
* The Timesheet User ID to be mapped to a valid ACCPAC Vendor.
* **No default filter** is applied to Accounts Receivable timesheets.

The configuration file also contains additional options such as:

* General Ledger Account
* Revenue Account
* Tax Group

These values can be modified according to the organization's ACCPAC configuration.

#### ACCPAC Field Mapping

Project Manager maps CRM fields to corresponding ACCPAC fields during the posting process.

The standard field mappings include:

<table data-header-hidden><thead><tr><th width="326" valign="top">Field Name</th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">            user_accpacitemno              </td><td valign="top">IDITEM</td></tr><tr><td valign="top">           user_vendorname                 </td><td valign="top">VENDNAME</td></tr><tr><td valign="top">           task_c_poreference              </td><td valign="top">PONBR</td></tr><tr><td valign="top"><p>          proj_projectno                         </p><p> </p><p> task_ap_rate +    task_CONS_Rate +     task_CONS_EXP_Rate * </p></td><td valign="top">ORDRNBR</td></tr><tr><td valign="top"><p> tish_billabletskd</p><p> </p></td><td valign="top">AMTGROSTOT </td></tr><tr><td valign="top"> tish_entrydate  task_ap_rate or</td><td valign="top">OPTFIELD</td></tr><tr><td valign="top"><p> task_ap_rate</p><p> </p><p>comp_idcust +</p></td><td valign="top">VALIFDATE</td></tr><tr><td valign="top"><p>ap_workdate</p><p>      </p><p>     tish_c_document_date or </p></td><td valign="top">INVCDESC</td></tr><tr><td valign="top">     today’s Date                                  </td><td valign="top">DATEINVC</td></tr></tbody></table>
