> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/purchase/prepayment/vendor-prepayment/applying-vendor-prepayment.md).

# Applying Vendor Prepayment

Vendor prepayment is an advance payment for goods and services purchased. Usually, if the prepayment is recorded on a purchase order or is linked to a purchase order, it automatically gets applied when the bill is generated.

However, you can also manually apply the prepayment when paying a bill. For instance, if the prepayment amount exceeds the bill amount, or if multiple bills need to be paid using a single prepayment, the manual application becomes essential. Additionally, the manual application allows for greater flexibility and control over the allocation of prepayment amounts to specific bills.

### Manually Applying a Prepayment to a Bill

To manually apply a prepayment to the bill, follow the steps below:

* Navigate to `Bill > Options > Pay bill`.

  <figure><img src="/files/mgttzZ6OVHCj7Pppbrah" alt=""><figcaption></figcaption></figure>
* On the "Bill Payment" screen, click on the amount listed under the "Credit" field.

  <figure><img src="/files/QyOwncuytcYGmG3fUlDw" alt=""><figcaption></figcaption></figure>
* In the "Add Credit" module, select the **Prepayments** tab. You'll see the number of prepayments available displayed on the tab.

  <figure><img src="/files/G2wGqbH6Y2ClX3Ob2meX" alt=""><figcaption></figcaption></figure>
* To apply the prepayment to the entire bill amount, click on the "**Tick**" icon. If you wish to apply a specific prepayment amount, click on the number in the "**Apply**" column and input the desired amount.

  <figure><img src="/files/YdxWkYCiubOvfrVRX6QM" alt=""><figcaption></figcaption></figure>
* Proceed by clicking "**Apply Credit"** to apply the prepayment to the bill.

  <figure><img src="/files/deYXXJnf0EJN85mnVcMm" alt=""><figcaption></figcaption></figure>
* Click on "**Pay Bill"** to complete the bill payment.

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

**Important:** If you're applying the prepayment at a later date, make sure to adjust the Payment Date to match the Bill Date. This is important for maintaining accurate financial and inventory records and ensuring that the payment reflects the correct billing period.

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

### How to Unapply a Prepayment?

If a vendor prepayment has already been applied to a bill and needs to be removed, it must be unlinked by voiding the related Bill Payment record. Voiding the Bill Payment will automatically remove the applied prepayment from the bill.

To unapply a prepayment, follow the steps below:

**Step 1:** Open the required Bill that has been paid using an applied prepayment amount.

**Step 2:** Click the **Options** drop-down menu and select **Show Payments**.

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

**Step 3:** A new window will open displaying the **Bill Payment Centre.**&#x20;

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

**Step 4:** Double-click on the relevant **Bill Payment Number,** and the Bill Payment screen will open.

<figure><img src="/files/2pHLxXviDgVWPzt6udBU" alt=""><figcaption></figcaption></figure>

**Step 5:**  Click on the **Options** drop-down menu and select **Void.**&#x20;

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

Step 6: Click **OK** to confirm the action. The Bill status will change from **Paid** to **Open**, and the applied prepayment will be unapplied.

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

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

{% hint style="info" %}
You can check whether a bill has any prepayments applied by selecting **Show Prepayments Applied** from the **Options** drop-down menu.
{% endhint %}

#### FAQs

#### If the vendor is configured as prepaid, why can't the payment date be earlier than the receipt date?

By default, XoroERP validates the transaction dates to maintain the chronological order of purchasing and accounting records. As a result, a payment date cannot typically be earlier than the corresponding receipt date.

If your business process requires the linked bill receipt date to be earlier than the parent bill receipt date, enable the **Allow Linked Bill Receipt Date Before the Parent's Bill Receipt Date** application setting.

When this setting is enabled, XoroERP allows the linked bill receipt date to be recorded before the parent bill receipt date, providing greater flexibility for specific purchasing workflows.

#### Using Vendor Prepayments

If the vendor is configured as a **Prepaid Vendor**, it is recommended to record the advance payment as a **Vendor Prepayment** rather than creating a payment against the bill before receipt.

A Vendor Prepayment allows you to record an advance payment made to a vendor before the goods or services are received. The prepayment can then be applied to the vendor bill once it is created.

{% hint style="info" %}
When applying a Vendor Prepayment to a bill, update the **Payment Date** to match the **Bill Date**. This helps maintain accurate accounting records and ensures transaction dates remain consistent.
{% endhint %}


---

# 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 dynamically by asking a question.

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

```
GET https://docs.xorosoft.com/xoroerp-1/purchase/prepayment/vendor-prepayment/applying-vendor-prepayment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
