Link payments to bills
The Link Payments tool links each payment you received from a customer to the bill or entry it paid. After the link the program knows how much of each bill is paid and how much is left, so the Due Bills and Receivables Aging reports are correct. The tool works for suppliers too.
Before you begin
- You need the Link Payments permission in the Users Management window, and your licence must include the bill payments feature.
- Each action in the tool has its own permission: Link Payments - Link Payment for the Link button, Link Payments - Auto Link for Auto Link, Link Payments - New Payment for Enter Payment, and Link Payments - Delete Link for the three delete buttons. Without the permission the program shows "You don't have the appropriate authority to perform this operation".
- The bills and the payments must be on the same account. The program does not link across two accounts or two customers.
- This tool shows all the debts of an account. To link payments to a single line of a voucher, use the command Link Payments... in the menu of the line. See The difference between the two windows.
Steps
Select the debts and the payments
-
Open the tool from Customers > Tools > Link Payments. The Link Payments window appears.
-
Choose the Account, and the Customer if you want one customer only. The program sets the Currency to the currency of the account.
-
In Debt, choose Debit to link sales bills and debit entries to the payments of a customer, or Credit for purchase bills and the payments of a supplier. Set From and To.
-
Click Update. The upper list fills with the debts, and below it the tab Payments shows the payments available for the account. If you did not choose the Account, the program shows "Must select account".

Display Options decides which debts are listed (Paid, Not Paid and Partially Paid) and which columns appear. They are explained in Link Payments.
Link the payments
- If the payment is not recorded yet, select the debt you want to pay and click Enter Payment. The Enter Payment window appears. Choose the Payment Type, a payment voucher or a commercial paper, check the Amount, and click Ok. The program saves the voucher or paper and links it at once to the selected debt. This link is made by the Link action and needs its permission too; without it the payment is saved and not linked. Enter Payment is disabled when the selected debts are fully paid. The fields are in Enter Payment.
- To link payments that already exist, select one or more debts in the upper list and one or more payments in the tab Payments (hold Ctrl to select several lines). Link is enabled when the selected debts still have an unpaid part.
- Click Link, then Yes to the question "Do you want to link payments". The program links each debt to the selected payments in the order of the list, until the debt is paid or the payment is used up. A payment whose account or customer differs from the account of the debt is skipped, and a message says so.
- To link everything the two lists show in one go, click Auto Link and then Yes to "Do you want to auto-link payments?". For each account and customer the program links the oldest with the oldest, by date and then by number. Auto Link ignores your selection and the Branch; returns and order payments are taken per account, whatever the customer. The message "The operation is completed successfully." appears and the lists refresh, if something was linked. If nothing could be linked and the option "Link payments exclusively by cost center" is off, no message appears. With Auto-linking data without display it the lists are not refreshed.
Review and delete links
- Select a debt in the upper list and open the tab Repayments. It shows the origin, date, amount and notes of every payment linked to the debt.
Delete All Links deletes the links of all the customers of the account even if you chose one, and deletes nothing if you did not choose the Account.
- To delete one link, select its line in Repayments and click Delete Link. To delete all the links of the selected debt, click Delete All Links to Bill. To delete all the links of the current account, cost center, period and sources, click Delete All Links. The program asks every time, and Cancel is the default answer. The down payment of a bill and the papers entered from it stay linked. If you selected several debts, Delete All Links to Bill works on the first one.
- Click Preview to show the Link Payments report, or Print to print it. Click Cancel to close the tool.

Enter Payment
This window appears when you click Enter Payment. It lists the voucher forms and commercial paper forms you may enter and that suit the direction of the debt. Voucher forms without a main account do not appear, nor do voucher forms that are not posted automatically when the tool shows posted entries only.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Payment Type | The payment voucher form or the commercial paper form. | Yes | The program remembers the last form you used. The fields that show change with the form. |
| Drawer | The contra account of the payment, such as the cash account. | Yes | Always shown. Disabled if the voucher form has a fixed account. With a commercial paper the box is empty and disabled, but Ok still needs a drawer: it uses the one of the voucher form chosen before. |
| Account | The account of the selected debt. | Yes | Read only. |
| Customer | The customer of the debt. | No | Read only. |
| Cost Center | The cost center of the payment. | No | Starts with the cost center of the debt, and is empty if the selected debts have different cost centers. |
| Branch | The branch of the payment. | Yes when branches are on | |
| Date | The date of the payment. | Yes | Sets the suggested exchange rate. |
| Amount | The value of the payment. | Yes | More than zero. Starts with the total of what is left on the selected debts. |
| Remaining Amount | The difference between what is left on the debts and the amount. | No | Calculated automatically. |
| Currency | The currency of the payment. | No | Read only. |
| Parity and Equivalent | The exchange rate and its equivalent in the account currency. | No | Changing one changes the other. Parity can be typed by a user with the permission Change Currency Exchange Rate. |
| Notes | The notes of the payment. | No | |
| Category | The category of the line. | No | Payment vouchers only. |
| No. and Due Date | The number of the commercial paper and its due date. | Yes for the number | Commercial papers only. |
| Auto Generate Notes | Starts the notes of the payment with "A payment linked with:" and the names of the selected debts, then your notes. | No | |
| Ok | Saves the payment and links it to the selected debts. | ||
| Cancel | Closes the window without saving. |
You cannot enter a payment if no debt is selected, or if the selected debts are on different accounts.
Result
Only the link between the debt and the payment is recorded. No entry and no account balance changes, and the amount of the bill does not change. What is paid and what is left change in the columns Paid and Remaining here, and in the reports Due Bills and Receivables Aging. Deleting a link makes the debt unpaid again; it does not delete the payment itself.
Entering a payment from the tool, however, saves a full payment voucher or commercial paper, with its entry and its effect on the accounts like any other voucher. If you entered it by mistake, delete it from its own window, not from the tool.
The Link button writes the linking operation in the operations log; Auto Link and the delete buttons do not.
If something goes wrong
| Message | Why it appears | What to do |
|---|---|---|
| "You don't have the appropriate authority to perform this operation" | You do not have the permission of the action whose button you clicked. | Ask the administrator to give you the permission of the action in Users Management. |
| "Must select account" | You clicked Update without an Account. | Choose the account. |
| "Please select display option" | You turned off Paid, Not Paid and Partially Paid together. | Turn on one of them. |
| "No element is selected" | You clicked Enter Payment without selecting a debt. | Select one or more debts in the upper list. |
| "There are different accounts" | The selected debts belong to different accounts when you click Enter Payment. | Select debts of one account. |
| "Cannot link! there is a difference in accounts or customers" | Among the selected payments there is one whose account or customer is not that of the debt. | Continue, or select the right payments. The program skips the wrong payment. |
| "Can’t link order with other order, will be skipped." | You selected a debt from an order and a payment from an order. | Link the order to a bill or a voucher. |
| "Auto linkage will be established between bills and payments regardless of Cost Centers." | You clicked Auto Link, or Link for a pair with different cost centers, the option Warn when Attempting to Link Payments and Debts which have Different Cost Centers is on, and the option "Link payments exclusively by cost center" is off. | Click Ok to go on or Cancel to stop. |
| "There are payments will not be linked because the cost centers are different" | The program option "Link payments exclusively by cost center" is on, and the cost centers of the debts and the payments differ. | Give the payment the cost center of the debt, or turn off the option in the program options. |
| "Must select "Cost Center" or "Account"" | You clicked Delete All Links or Preview with the account and the cost center both empty. | Choose one of them. |
| "Delete selected account and cost center links" | The confirmation of Delete All Links. It says: "The selected account and cost center payments links will be deleted, do you want to continue?" | Click Ok to delete or Cancel. |
| "Delete selected bill links" | The confirmation of Delete All Links to Bill. | Click Ok or Cancel. |
| "Delete selected link" | The confirmation of Delete Link. | Click Ok or Cancel. |
| "Please select account" | In Enter Payment: the Account or the Drawer is empty. With a commercial paper this can happen when the window opens directly on a paper form. | Choose the account and the drawer. For a paper, first choose a voucher form that has a drawer, then choose the paper form again. |
| "Please select branch" | In Enter Payment: branches are on and Branch is empty. | Choose the branch. |
| "Please select value" | In Enter Payment: the Amount is zero or less. | Enter an amount greater than zero. |
| "Please select a number for the commercial paper" | In Enter Payment with a commercial paper form: No. is empty. | Enter the number of the paper. |
Related
- Link Payments (the report and the options of the tool)
- Link payments to an entry
- Due Bills
- Follow receivables and due bills
This page applies to alameen ERP 10, version 10.1.79.764.