Skip to main content

Final Payment

The Final Payment report compares what the representative recorded in Fast Payment with what his bills and entries say for the payment day, and shows the difference. It compares the values (sales, gifts, discounts, debts and the payment amount) or the quantities of each material. When the differences are gone you close the payment with the Close Payment button.

Opening the report​

From the main ribbon: Distribution > Manual Visits > the Manual Visits button > Final Payment.

Your licence must include the Distribution feature, and you need the Final Payment permission in the Reports list of Users Management. Closing a payment and cancelling its closing have two more permissions on the Operations page, Close Payment and Cancel Payment Closure, and the system administrator always has them.

The report works on an existing payment record. The Net Load Statement or Fast Payment creates the record.

The conditions window appears first. Set the conditions, then click Preview, Print or Export. The page Report parameter forms explains these buttons.

Parameters​

ParameterDescription and effectDefault and rules
Payment numberThe payment you compare. The report takes the unit, the date and the representative from it.Required. A whole number of 1 or more, with no spin buttons. If you leave it empty the message "Select payment No. before preview command" appears.
Payment OptionsA group where you choose one of two options: Values and Quantities.Values. Values compares amounts and Quantities compares the quantity of each material.

The window has no box for the branch. If the file uses branches the preview shows all branches, and the buttons to close and to cancel the closing ask for a branch. See Messages.

When you set the window layout to tabs, both conditions are on the General tab.

The close and cancel buttons​

The report adds two buttons to the conditions window. They also appear on the Operations tab of the viewer.

ButtonWhat it does
Close PaymentChecks that both the Values differences and the Quantities differences are gone, whichever option you chose. If they are, it closes the payment. See Closing the payment.
Cancel Payment ClosingOpens a closed payment again. See Closing the payment.

The buttons do not check the other conditions. They need the Payment number (and a branch if the file uses branches).

Option List​

The option list in the viewer is empty for this report and shows the sentence "No options.". See Option List.

If the payment exists, the report shows five lines in the header:

LineValue
Payment numberThe payment number.
DistributorThe name of the main representative of the payment's unit.
Representative WarehouseThe warehouse name recorded in the payment.
Distribution UnitThe name of the payment's unit.
DateThe payment date.

Columns​

When you choose Values​

A grid with four columns. The first is for the item and its title is a dash. Diff = Fast − Invoices in every line.

ColumnMeaning
(item)The name of the line.
FastThe value recorded in Fast Payment.
InvoicesThe value that the representative's bills and entries give for the payment day.
DiffFast − Invoices.

The lines are in this order. The invoices side works on the bills of the normal bill forms on the cost center of the unit's main representative on the payment date. Only posted bills are taken, except the gifts, which come from the bills of that cost center on that date, posted or not.

LineIn the Fast columnIn the Invoices column
Sales ValueThe Net load value saved in the payment.The total of the sales bills minus the total of the sales return bills, plus the value of the gifts.
GiftsThe gifts recorded in the payment.Gift quantity × price in the bill lines of that cost center on that date.
DiscountsThe discounts recorded in the payment.The sum of the bill discounts.
Granted DebtsThe granted debts recorded.In credit bills: (total + extras − discount) − first payment. It is subtracted for returns.
Collected DebtsThe collected debts recorded.The sum of (credit − debit) in the entries of the day on that cost center whose contra account is the representative's account, except bill entries.
Payment ValueThe amount of the receipt voucher that the Cash Payment button of Fast Payment made. Zero if none was made.Sales Value − Gifts − Discounts − Granted Debts + Collected Debts.

If you turn on Discounts and Gifts Total Value Comparison in the payment options, Gifts and Discounts become one line named Discounts and Gifts, and there are five lines.

When you choose Quantities​

A tree grid: a row in a bold style for each group of materials, with its materials under it. The first column has no title.

ColumnMeaningHow it is calculated
(material)The name of the material or the group.
Net Load StatementThe net load quantity of the material.The quantity that the Net Load Statement calculates for the representative on that day, in the first unit.
InvoicesThe quantity in the bills.The sum of the quantities of the lines of the posted bills of the normal forms on the representative's cost center on that date, plus the gift quantity. Sales are positive and returns negative. All kinds of bills count.
DiffThe difference between the two quantities.Net Load Statement − Invoices.

Totals​

The grid has no totals.

Closing the payment​

Closing is allowed when the differences in both the Values and the Quantities are gone. The program runs both checks when you click Close Payment, even if you show only one of them.

  • With Discounts and Gifts Total Value Comparison on, the program truncates the sum of the column differences to the number of decimal places of prices, so a difference smaller than the last place does not stop the closing.
  • Without this option any difference in any column stops the closing, however small.

When Close Payment succeeds, the program does this for the cost center of the representative on the payment date:

  1. It raises the security level to 3 in the bills of that center on that day, and in the transfer bills tied to the representative's warehouse and their paired bills, and it writes the payment number in the first text field of these bills.
  2. It raises the security level to 3 in the entries of that center on that day, and in the payment and receipt vouchers tied to them.
  3. It marks the payment record "closed" with security level 3. The Fast Payment window then refuses to edit it and shows "Cannot modify because the payment is locked".

Cancel Payment Closing does the opposite: it sets the security level back to 1 and opens the record.

There are no automatic commands. The commands of the report depend on the option chosen. Double-click runs the last command you used from the menu, or else the first one.

CommandShows on the lineWhat it does
Total Bills MovementSales Value, Gifts, Discounts and Granted Debts (or Discounts and Gifts), for users who have the Total Bills Movement permission.Opens Total Bills Movement with the representative's warehouse selected.
Customer ReceiptsCollected Debts, for users who have the Customer Receivable permission.Opens the Customer Receivable window for the payment number and branch.
Fast PaymentPayment Value, for users who have the Fast Payment permission in the Cards list.Opens the Fast Payment window for the payment number and branch.
View Voucher...Payment Value, when the payment has a receipt voucher.Opens the receipt voucher that Fast Payment made.
CommandShows on the lineWhat it does
View Group Card...A group row.Opens the group card.
View Material Card...A material row.Opens the material card.
View Material Movement...A material row, for users who have the Material Movement permission.Opens Material Movement for the material.
View Daily Movement...A material row, for users who have the Daily Movement permission.Opens Daily Movement for the material.

The general commands are explained in The report viewer.

Messages​

MessageWhy it appearsWhat to do
Select payment No. before preview commandYou left Payment number empty with Preview, Print or Export.Type the payment number.
No authority to execute the operationYou clicked Close Payment or Cancel Payment Closing without its permission.Ask the administrator for the permission.
Please set payment numberYou clicked one of the two buttons and Payment number is zero or empty.Type the payment number.
Please select branchThe file uses branches, you clicked one of the two buttons and the branch is not set.The window has no branch box. See Parameters.
Payment not closed, please verify payment difference settlementClose Payment found differences in values or quantities.Review the differences, correct them and try again.
Payment Closed SuccessfullyThe closing succeeded.None.
Payment already closedYou clicked Close Payment on a closed payment.None.
Payment closure is cancelled successfullyThe cancellation succeeded.None.
Payment is not ClosedYou clicked Cancel Payment Closing on a payment that is not closed.None.
Payment number is unavailableThere is no payment record with this number (and this branch).Check the number.

Example​

Payment number 15 dated 7-12-2026, with Values chosen.

Fast Payment recorded: Net Load Value 1000, Gifts 50, Discount 30, Granted Debts 200 and Collected Debts 90 (the representative made a mistake). It made a receipt voucher of 810.

The bills and entries say: sales of 950 and gifts worth 50, so the sales value is 1000. Discounts of 30. A credit bill of 300 with a discount of 30 and a first payment of 70, so the granted debts are (300 − 30) − 70 = 200. Receipts of 100 from the representative.

LineFastInvoicesDiff
Sales Value100010000
Gifts50500
Discounts30300
Granted Debts2002000
Collected Debts90100−10
Payment Value810820−10
  1. The payment value in the Invoices column: 1000 − 50 − 30 − 200 + 100 = 820.
  2. In the Fast column 810 is the voucher amount, that is 1000 − 50 − 30 − 200 + 90.
  3. The difference −10 in two lines stops the closing, and the message "Payment not closed, please verify payment difference settlement" appears.
  4. The representative corrects Collected Debts to 100 in the Fast Payment window and makes the voucher again for 820. The differences are gone, and Close Payment succeeds.

This page applies to alameen ERP 10, version 10.1.79.764.