Link Payments
The program links a payment to the bill or entry it paid, so it knows how much of it is paid and how much is left. This page covers five windows: the Link Payments tool that shows all the debts of an account, the Enter Payment window opened from it, the Link Payments window of one bill or one line, and its Modify Payment and Display Options windows. For the steps, see Link payments to bills from the bill side and Link payments to bills from the customer side.
Two windows have the title Link Payments. The tool shows all the debts of an account in two lists. The bill and line window links payments to one bill or one line only. The difference is explained in Link Payments.
Opening the windows
| Window | How to open it | What you need |
|---|---|---|
| Link Payments tool | From the ribbon: Customers > Tools > Link Payments. Or the command Show Payments Link in the menu of a line in a voucher, or in the menu of the Display Entry button of a commercial paper (for a paper that has an entry). Or the button Link Payments... on the page Linked Payments of the payment terms window of a bill. | The Link Payments permission, and the bill payments feature in the licence. |
| Enter Payment | The button Enter Payment in the tool. | The permission Link Payments - New Payment. |
| Link Payments (bill) | In the bill window: the button Operations, then Link Payments.... | The Link Payments permission. |
| Link Payments (line) | In a voucher: right-click the number of a line and choose Link Payments.... The command shows only for a line whose account is not a distributive account, that the security level does not hide, and that is not fully paid. In a commercial paper: click the Display Entry button (for a paper that has an entry) and choose Link Payments.... | The Link Payments permission. |
| Modify Payment | The button Modify Payment or the command Modify Payment... in the line menu of the Link Payments window. | A ticked line. |
| Display Options | The button Display Options in the Link Payments window. |
More about opening the bill window:
- The command Link Payments... is always in the Operations menu. It is disabled when what was paid of the bill equals or exceeds its total, or when you have no permission to read prices in the bill form.
- If you do not have the Link Payments permission, nothing happens when you click the command, and no message appears.
- If the bill is saved and linked to an order that was paid, the message "Cannot link the payment, as the order is linked with one or more payments" appears and the window does not open.
- With the Saudi e-invoicing system, if you changed a bill whose status is Approved and did not save the change, the program asks (before it checks your permission): "The invoice has changed, if you continue, the changes will be ignored. Are you sure you want to continue?". Ok reloads the saved bill and your changes are lost. Cancel does not open the window.
- A new bill that is not saved yet also opens the window, once its total is above zero. The link is saved when you save the bill.
The same command Link Payments... is in the line menu of a journal entry and in the menu of the Display Entry button of the commercial paper card. The order window opens the same window from its payments page.
The Link Payments tool
The tool shows the debts of a customer or supplier account in the upper list. Under it are two tabs: Payments (the payments available to link) and Repayments (the payments linked to the selected debt). Its parameters, options and report are in Link Payments and are not repeated here.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Account | The customer or supplier account. It may be a parent account. | Yes for Update | Choosing it sets Currency to the currency of the account. Without it the message "Must select account" appears. |
| Customer | Limits the lists to one customer. | No | |
| Cost Center | Limits the lists to one cost center. | No | Choosing the Account or the Cost Center passes the check of Preview and Delete All Links, but Delete All Links deletes nothing without an Account. |
| From and To | The period of the debts. | Yes | |
| Search | Goes to the first line in the lists that contains the text, then to the next. | No | At the end the program beeps and starts again from the top. |
| Branch | Limits the lists to one branch. | No | |
| Debt | Debit or Credit. | Yes | The default is Debit. |
| Currency | The currency of the amounts. | Read-only. It follows the account. | |
| Sort by | Entry date or Maturity date. | The default is Entry date. | |
| Report Sources | The document types that enter the debts. | All are ticked by default. | |
| Display Options | What debts and columns are shown, and the auto link options. | In Link Payments. | |
| Balance | The balance of the chosen account. | Shown when Account balance is ticked in Display Options. |
Buttons
| Button | What it does |
|---|---|
| Update | Fills the upper list with the debts, the tab Payments with the payments and the tab Repayments with the repayments of the selected debt. |
| Link | Links the selected debts to the selected payments. It is enabled when at least one debt and one payment are selected and the selected debts have an unpaid amount. Its permission is Link Payments - Link Payment. |
| Auto Link | Links the debts and the payments automatically. Its permission is Link Payments - Auto Link. |
| Enter Payment | Opens Enter Payment. It is disabled when the selected debts are fully paid. |
| Delete Link | Deletes the link selected in the tab Repayments. |
| Delete All Links to Bill | Deletes the links of the selected debt. It is enabled when the selected debts have something paid. |
| Delete All Links | Deletes the links of the chosen account itself (not its sub-accounts), by Debt, cost center, period and sources, for all its customers and branches. It deletes nothing if no account is chosen. |
| Preview and Print | Show or print the Link Payments report. |
| Cancel | Closes the tool. |
The three delete buttons have the permission Link Payments - Delete Link. Delete Link, Delete All Links and Delete All Links to Bill show in the tab Repayments; Link, Auto Link and Enter Payment show in the tab Payments. Without the permission of an action, the message "You don't have the appropriate authority to perform this operation" appears.
The lists
| List | Columns |
|---|---|
| Debts (upper list) | Account and Customer when you chose a parent account, or a customers account without a customer; then Entry Origin, Date, Debt Value, Paid and Remainder. According to Display Options: Cost center, Branch, Notes, Category, Maturity date, Contra account, Salesman and Distributor. |
| Tab Payments | Account and Customer under the same condition; then Entry Origin, Date, Payment, Paid and Remainder; according to the options: Cost center, Branch, Notes, Category, Maturity date, Salesman and Distributor. |
| Tab Repayments | Entry Origin, Date, Payment and Notes; according to the options: Category and Cost center. |
The tab Repayments shows lines only when exactly one debt is selected. Delete Link deletes one link even if several lines are selected, and Delete All Links to Bill works on the first selected debt. In the list of debts, a debt that is fully paid shows the word Paid in the column Paid instead of the amount. You can select several lines in the lists. If the security level hides some lines, the line "Note: Some information will not be displayed because you don't have appropriate authorities." appears under the list, with a beep. When you select a debt and some payments, the information window of the program (if open) shows the balance of the debt after the selected payments.
How the link is made
Each link records a row between the debt and the payment, with an amount in the currency of each. It creates no entry, and changes neither the accounts nor the amount of the bill.
- Button Link (manual): for each selected debt, in the order of the list, the program goes through the selected payments in the order of the list. It skips a payment whose account differs from the account of the debt, or whose customer differs when the account is a customers account (message "Cannot link! there is a difference in accounts or customers"). It skips a payment whose value is zero or that this operation has used up, and it does not link an order to an order (message "Can’t link order with other order, will be skipped."). It links each pair by the smaller of what is left of the debt and what is left of the payment. If something is left of the debt, it moves to the next payment; if something is left of the payment, it stays for a later debt.
- Button Auto Link: it ignores your selection and the Branch. The program reads again the debts of the account (and its sub accounts) and its payments within the period, the sources and the display options now in force. For each account and customer separately (and each cost center separately when the program option "Link payments exclusively by cost center" is on), it links the debts from the oldest to the newest with the payments from the oldest to the newest, by date and then by document number. The oldest payment goes to the oldest debt; what is left of the payment goes to the next debt; and so on until the debts or the payments are used up. A Debit debt is linked to credit payments, and a Credit debt to debit payments. Returns and order payments are taken per account, whatever the customer.
- Currencies: the amounts are computed in the currency of the account. A line in that currency keeps its own rate; any other line uses the rate of the account currency on the date of the line. The link keeps the amount of the debt and the amount of the payment, each in its own currency.
- Difference between the debt and the payment: no entry is made and no difference is posted. What is left of the debt or of the payment stays unlinked and shows in Remainder.
- Cost centers: if the cost center of the debt differs from that of the payment and Warn when Attempting to Link Payments and Debts which have Different Cost Centers is ticked in the tool, the button Link asks for each pair. Auto Link asks once at the start ("Auto linkage will be established between bills and payments regardless of Cost Centers."), and Cancel, the default, stops it. If the program option "Link payments exclusively by cost center" is on, a pair with different cost centers is not linked and a notice appears at the end.
- Deleting: Delete Link and Delete All Links to Bill delete only the links the user made. The first payment of the bill, and the commercial papers entered from it, stay linked. Delete All Links deletes the links of the chosen account itself (not its sub-accounts), by Debt, cost center, period and sources, for all its customers and branches, except these two kinds. It deletes nothing if no account is chosen.
- The button Link writes its operation to the operations log, and Enter Payment writes the new voucher or paper to it. The delete buttons and Auto Link do not.
Enter Payment
This window saves a new payment voucher or commercial paper and links it to the selected debts. You open it from the tool after selecting one or more debts of one account.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Payment Type | The form of the payment voucher or commercial paper. | Yes | It lists the voucher forms that have a main account, that you may enter and that fit the direction of the debt, and the commercial paper forms you may enter that fit the direction. If the tool shows posted entries only, only the voucher forms that post automatically are listed. The program remembers your last choice. |
| Drawer | The counter account of the payment (cash or bank). | Yes | 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. If "Please select account" appears with a commercial paper, first choose a voucher form that has a drawer, then choose the paper form again. |
| Account | The account of the debt. | Read-only. | |
| Customer | The customer of the debt. | Read-only. | |
| Cost Center | The cost center of the payment. | No | It starts as the cost center of the debts, and is empty if the debts differ. |
| Branch | The branch of the payment. | Yes if branches are enabled | |
| Date | The date of the payment. | Yes | It decides the suggested exchange rate. |
| Amount | The value of the payment. | Yes | Greater than zero. It starts as the total of what is left of the selected debts. |
| Remaining Amount | The difference between what is left of the debts and the amount. | Calculated. | |
| Currency | The currency of the payment. | Read-only. | |
| Parity | The exchange rate. | Changing Parity or Equivalent changes the other. | |
| Equivalent | The amount multiplied by the Parity: the value in the main currency of the file. | The Amount itself is in the currency of the account. | |
| Notes | The statement of the payment. | No | Voucher only. |
| Category | The category of the account line. | No | Voucher only. |
| No. | The number of the commercial paper. | Yes | Commercial paper only. |
| Due Date | The due date of the paper. | Commercial paper only. | |
| Auto Generate Notes | Starts the statement with "A payment linked with:" and the names of the selected debts, then your notes. | No | Voucher only. |
The window has a check box "Link Payment", but it is always hidden. After Ok the tool tries to link the new payment to the selected debts (see Enter Payment and the link).
| Button | What it does |
|---|---|
| Ok | Checks the fields, saves the voucher or paper, and then the tool links it to the selected debts (with the Link permission). |
| Cancel | Closes the window without saving. |
The entry of the voucher: if the debts are Debit (sales bills, for example), the voucher is a receipt: the Drawer is debited and the Account is credited (with its customer and category). If the debts are Credit, the entry is reversed: the Account is debited and the Drawer is credited. The amount is the Amount at the Parity rate. The program posts it if the voucher form posts automatically. The commercial paper is saved as incoming for debit debts and outgoing for credit debts, with its due date and without a bank, and the program generates its entry if its form generates one. The program refuses a voucher if the Account is the default account of the voucher form, or is the same account as the Drawer (see Messages).
Enter Payment and the link
- When the program refuses the voucher, the window closes after the message and nothing was saved. Check the tab Payments before you go on.
- After a successful save, the link is made only if the new payment appears in the refreshed tab Payments, that is, inside the period, branch, cost center and sources of the tool, and only if you have the permission Link Payments - Link Payment.
The Link Payments window of a bill or a line
This window links payments to one bill or to one line of an entry. It lists the payments of the same account and customer that still have something left, and you tick the ones you want to use.
Fields and cards
| Item | Description | Values and rules |
|---|---|---|
| Account | The account of the bill or the line. | Read-only. |
| Customer | The customer of the bill or the line. | Read-only. |
| Currency | The currency of the account of the bill or the line. | Read-only. It shows the Latin name when the program language is not Arabic and the currency has one. All amounts are in this currency. |
| Search | Filters the grid to the lines that contain the text. | |
| Amount card | The amount of the bill or the line. | If the currency of the bill differs from the currency of the account, the amount is converted at the rate of the bill and then at the rate of the currency on its date. |
| Paid card | What was already linked to it. | Taken from a saved bill or line only, so it starts at zero for a new bill. |
| Available card | Amount minus Paid. | |
| Used card | The total of Payment in the ticked lines. | |
| Remainder card | Amount minus Paid minus Used. |
The grid
| Column | Meaning |
|---|---|
| Entry Origin | The number and kind of the payment, such as a voucher, bill, paper or entry number. |
| Date | The date of the payment. |
| Value | The value of the payment in the currency of the account. |
| Paid | What was linked to it before. |
| Remainder | Value minus Paid. |
| Payment | The amount you will use from this payment. Zero until you tick the line. |
| Category, Cost center and Notes | Shown according to the display options. |
| Check box column | Tick the line to use it. |
The lines are sorted by date and then by document number. They include:
- Entry lines of the account and customer on the side opposite to the bill: payment vouchers, commercial papers and other entries, except entries generated by bills.
- Bills of the opposite direction, such as sales returns for a sales bill, unless what was paid of them reaches their total. Order payments appear when the option to show order bills is off.
- Lines that the security level hides from you do not appear.
The lines are limited to the Link Sources chosen in the display options; all sources by default. The exception is the order payments: they are listed whatever the sources, and their line has no Display ... command.
Ticking
- Ticking a line puts in Payment the smaller of what is left of the line and the Remainder card. Clearing the tick sets Payment to zero.
- When Remainder reaches zero, the check box of the lines that are not ticked is disabled.
- Modify Payment is enabled when the selected line is ticked.
- Used and Remainder change with every change.
Line menu
Right-click a line:
| Item | What it does |
|---|---|
| Modify Payment... | Opens Modify Payment. Shown for a ticked line only. |
| Display Bill..., Display Voucher..., Display Entry... or Display Commercial Paper... | Opens the document of the payment. One of them, by the kind of the line. |
| Grid Lines | Shows or hides the grid lines. The key is Ctrl+G. |
Buttons
| Button | What it does |
|---|---|
| Ok | Keeps your selection in the bill or the line and closes the window. Nothing is written to the database now; the link is written when the bill or the voucher is saved. From the order window the program asks "Payments will be linked and page updated, do you want to continue?", and Yes saves the link at once. |
| Modify Payment | Opens Modify Payment for the ticked line. |
| Display Options | Opens Display Options. |
| Close | Closes the window without keeping your changes. After any change it becomes Cancel, and the program asks before closing if the warning on cancel is on (see Account card). |
What happens on Ok
- The program keeps the ticked lines only and drops the rest. If you ticked nothing, any earlier selection that was not saved yet is cleared.
- The program checks nothing in this window. The amount is checked in Modify Payment.
- When the bill (or the voucher) is saved, the program links each ticked line to it by its Payment, by the smaller of what is left on both sides. With the program option "Link payments exclusively by cost center" on, a ticked line whose cost center differs from that of the bill is not linked, and no message appears. If the account or the customer of the bill changed, or its total became smaller than when you chose, the program drops the selection and warns "Please re-link payments".
- With the Saudi e-invoicing system, for a saved bill whose status is Approved, Reported, Cleared by the authority, Reporting - Warning, Cleared - Warning, Ready for reporting or Ready for reporting - For other (and whose account and customer are as in the window), Ok shows a warning that the links will be saved at once without modifying the bill. Ok in the warning saves them immediately, without waiting for the bill to be saved. Cancel in the warning closes the window and keeps your selection to be saved with the bill.
- The link itself creates no entry. A saved link is deleted from the tool, not from this window.
Modify Payment
This window changes the amount you will use from the ticked payment.
| Field | Description | Values and rules |
|---|---|---|
| Payment | The amount from the payment. | Greater than zero, and less than or equal to the smaller of what is left of the payment and the amount still allowed for the bill (the Remainder card plus what you use now from this payment). |
| Portion of debt value | The percentage of the amount to the amount of the bill or line. | Changing it changes Payment and Portion of payment value. |
| Portion of payment value | The percentage of the amount to the value of the payment. | Changing it changes Payment and Portion of debt value. |
The program recalculates the three fields when you change one. Ok checks Payment and keeps it in the line. Close closes without keeping, and becomes Cancel after any change.
Display Options
| Item | Description | Values and rules |
|---|---|---|
| Link Sources | The document types whose payments are shown: entries, vouchers, bills, commercial papers and orders, and their forms. | Bill forms that do not generate an entry are not listed (except orders). If you tick no source, the program counts all sources. |
| Display Fields | Category, Cost center and Notes: extra columns in the grid of the payments. | Not ticked by default. |
Ok saves the options for you (per user), then reads the list of payments again. This clears the ticks you made in the window since opening it that you did not confirm with Ok; the ticks confirmed earlier stay. Close closes the window without saving.
Messages
The messages of the tool and of Enter Payment are explained in Link payments to bills. The messages of the bill and line windows:
| Message | Why it appears | What to do |
|---|---|---|
| "Cannot link the payment, as the order is linked with one or more payments" | In a bill linked to an order that was paid, when you click Link Payments.... | 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 changed Saudi e-invoice whose status is Approved. | Save the bill first if you want your changes. |
| "Incorrect payment amount", then "Payment amount should be greater than zero, and equal or smaller than the allowed amount" | In Modify Payment: Payment is zero, negative or above the allowed. It shows "Payment Value" and "Maximum Payment Allowed". | Enter an amount up to the maximum. |
| "Please re-link payments" | When saving the bill after its account or customer changed, or its total became smaller than when you chose. | Open Link Payments... and choose the payments again. |
| "The selected links will be directly saved without requiring to modify the invoice due the invoice is approved." | Ok in a saved Saudi e-invoice in one of the states above. | Click Ok to save at once, or Cancel to save your selection with the bill. |
| "You don't have the appropriate authority to perform this operation" | In the tool: you do not have the permission of the action. | Ask for the permission. |
| "Payment account must not be the default account set in entry type" | In Enter Payment: the Account is the default account of the voucher form, or the same account as the Drawer. The window then closes and nothing is saved. | Choose another Payment Type, or check the Account and the Drawer, and enter the payment again. |
How bills, forms and posting work explains the relation between a bill and its entry.
Related
This page applies to alameen ERP 10, version 10.1.79.764.