Skip to main content

Link payments to bills

When a customer pays a bill with a payment (a receipt voucher, a commercial paper or an entry), the program needs to know which bill the payment paid. This page explains the link from the bill side: from the bill window, from the tool when you link several bills, and how to change the linked amount and remove a link. Linking from the customer side and entering a new payment are explained in Link payments to bills.

Before you begin​

  • You need the Link Payments permission in the Users Management window. Without it, nothing happens when you click the command Link Payments..., and no message appears.
  • The payment and its bill must have the same Account and Customer. The link window lists only the payments of the account and customer recorded in the bill.
  • The command Link Payments... is disabled if the bill is fully paid, or if you have no permission to read prices in the bill form.
  • Linking changes neither the entries of the bill nor its amount. It only changes what shows as paid and what is left.

Steps​

Link a payment to the open bill​

  1. Open the bill in its window. You can open a saved bill, or enter a new one: fill in the Customer and then the lines. For a new bill the command works once its total is above zero. See Bill.

  2. Click Operations, then Link Payments.... The Link Payments window appears with the account of the bill, its customer, the currency of the account and five cards: Amount, Paid, Available, Used and Remainder. Each item is explained in Link Payments.

  3. Find the payment in the grid. You can type part of its number or notes in Search. The grid lists payment vouchers, commercial papers and other entries on the same account and customer, and bills of the opposite direction such as sales returns, all with something left that is not linked.

  4. Tick the line with its last check box. The program puts in the column Payment the smaller of what is left of the payment and the Remainder card, and Used and Remainder change.

  5. If you want to use only part of the payment, select the line and click Modify Payment, or right-click the line and choose Modify Payment.... Enter the amount in Payment, or a portion of the debt value or of the payment value, and click Ok.

  6. Repeat steps 4 and 5 for other payments until Remainder is zero, or until you have enough. When Remainder is zero you cannot tick another payment.

  7. Click Ok. The window closes and the program keeps your selection without writing it yet. With the Saudi e-invoicing system, for a saved bill in some states (for example Approved), the program warns that the links will be saved at once. See Link Payments.

  8. Save the bill. Click Add for a new bill or Modify for a saved bill. The program writes the link when it saves, and the payments now pay the bill.

warning

If you close the bill without saving it, no link is written. If you change the account or the customer of the bill, or its total becomes smaller than when you chose, the program drops your selection when it saves and shows "Please re-link payments". Repeat from step 2.

Link several bills to their payments​

The bill window links one bill only. To link several bills, open the tool.

  1. Open Customers > Tools > Link Payments. Or, in the bill, click Payment Terms, and on the page Linked Payments click Link Payments...: the tool appears with the account and customer of the bill. See Bill More Info.
  2. Choose the Account and the period, and click Update.
  3. Select the bills in the upper list and the payments in the tab Payments (hold Ctrl to select several lines).
  4. Click Link, then Yes. The program links the bills in the order of the list to the payments in the order of the list. Or click Auto Link: it ignores your selection and the Branch, and links the bills and payments of the account from the oldest to the newest.

The order of the link and its rules are in Link Payments.

Example (assumed data): the customer Alnakheel Est. has two sales bills: the first dated 1-10-2026 for 1,000, of which 400 is paid, and the second dated 15-10-2026 for 4,000. A receipt of 2,000 dated 25-10-2026 was also entered. After Auto Link:

BillAmountPaid beforeAdded from the receiptRemainder
First1,0004006000
Second4,00001,4002,600

The receipt goes first to the oldest bill for what is left of it, and then what is left of the receipt (1,400) goes to the next one.

Change a saved link​

To change the amount of a saved link, delete it and link again:

  1. Open the tool as in the first step above and click Update.
  2. Select the bill in the upper list and open the tab Repayments.
  3. Select the wrong link, click Delete Link, and confirm with Ok.
  4. Link again with the right amount, from the bill window or from the tool.
  1. Open the tool and select the bill in the upper list.
  2. In the tab Repayments (it shows lines only when exactly one bill is selected), select the link and click Delete Link. Or click Delete All Links to Bill to delete all the links of the first selected bill. The program asks, and suggests Cancel; click Ok to delete.
  3. The bill returns to unpaid or partly paid. The payments themselves stay as they are and become available for another link.

For the permissions and the messages see Link payments to bills.

note

These buttons do not delete the first payment entered with the bill itself, nor the commercial papers entered from it. They stay linked to it.

Result​

  • The link is a relation between the bill and the payment. It creates no entry and changes neither the balance of any account nor the amount of the bill.
  • The bill shows as partly or fully paid, and what is paid and what is left change in the tool and in the reports Due Bills and Customers Receivables Aging.
  • The command Link Payments... in Operations is disabled when what was paid of the bill reaches its total.

If something goes wrong​

Case or messageWhy it appearsWhat to do
Nothing happens when you click Link Payments...You do not have the Link Payments permission.Ask the system administrator for it.
Link Payments... is disabledThe bill is fully paid, or you have no permission to read prices in its form.No link is needed. Or ask for the permission.
"Cannot link the payment, as the order is linked with one or more payments"The bill was generated from an order that was paid.Link the payments from the order.
"The invoice has changed, if you continue, the changes will be ignored. Are you sure you want to continue?"A Saudi e-invoice whose status is Approved that you changed and did not save.Click Cancel, save the bill, then open Link Payments....
The payment is not in the gridIts account or customer differs from those of the bill, it is fully paid, the security level hides it from you, or Link Sources excludes it.Open Display Options and check Link Sources. Check the account and customer of the payment.
"Incorrect payment amount"In Modify Payment you entered zero or more than allowed.Enter an amount up to the "Maximum Payment Allowed" shown.
"Please re-link payments"The account or customer of the bill changed, or its total became smaller, before saving.Open Link Payments... and choose the payments again.

This page applies to alameen ERP 10, version 10.1.79.764.