Skip to main content

Merge cash bills

The Merge Cash Bills wizard joins the matching cash bills of each day of a period into one bill and deletes the others. It helps the accountant when many small cash sales pile up. Its fields and what it does to the bills are in Merge Cash Bills.

Before you begin​

  • The operation is in Files Maintenance when your key includes accounting, the file does not work in multi-file mode and no tax system is on (Available maintenance operations).
  • The Files Maintenance permission guards the maintenance window (Run files maintenance). The permission named after the operation under Users Management > Operations controls only whether its tile shows on the desktop. The program does not check it when you run the operation from the Files Maintenance window, from its favorites menu or from Quick Launch search.
  • Ask the other users to leave the file. If the program finds another user when you click Start, it refuses to run.
  • Take a backup. Bills are deleted, and you cannot go back after the operation ends. The wizard itself shows the backup page first (Back up a company file).
  • Tell the people who rely on bill numbers or counts: bills are deleted and their numbers become gaps.

Steps​

Open the wizard and back up​

  1. Click File > Tools > Files Maintenance, select Merge Cash Bills and click Run. Details are in Run files maintenance.
  2. On the Make a Backup page choose the type of backup and click Next. The wizard shows this page first. Its details and steps are in Make a backup.

Choices and period​

  1. On the Cash Bills Differences page decide what is merged with what. Leave the fields empty to merge only bills that match. If you choose a value in a field such as Warehouse or Cash Account, the program merges the bills whatever they have in that field and puts your value in the merged bill. Choose what you want in When Security Level Difference, Additions and Discounts and Merge materials quantities within bill (Fields). Then click Next.
  2. On the Merge Cash Bills page enter From and To, for example 1-7-2026 and 31-7-2026. Both start with today's date. The program works day by day and never merges the bills of two days.
  3. In the Invoices list clear the types whose bills you do not want to merge. All are ticked when the page opens.
  4. Tick Merge Bills related to Customers if bills that name a customer should take part. Not ticked: only bills with no customer take part.
warning

After Start the program works at once and asks for no confirmation. It deletes bills permanently, and there is no undo after the run ends. Check the types and the period, and make sure the backup is ready.

Run​

  1. Click Start. The progress bar and the date of the day being processed appear. Do not rely on Cancel to stop the operation: the button stays enabled, but the operation continues to the last day (While it runs).
  2. When it ends, the message "Bills Count That Have Been Collected" appears, followed by the number of deleted bills. Close the message.
  3. The message "Operation successfully completed" appears and the wizard closes. You are back in Files Maintenance. Close it so that other users can sign in.

Result​

  • One bill stays instead of each group of matching bills of a day. The number shown is the count of bills that were deleted.
  • The operation deletes the entries of the deleted bills and regenerates the entry of each bill that stays, with its new total. The lines of the deleted bills move to the bill that stays.
  • Open a bill of a processed day and check its lines and total. If the program option Activate log file is on, open the Maintenances Log to see which bills were merged.
  • The numbers of the deleted bills are now gaps. Renumber bills closes them.
  • It cannot be undone. To go back to the state before the operation, restore the backup.

If something goes wrong​

MessageWhy it appearsWhat to do
Must specify at least one bill formYou ticked no type in Invoices.Tick at least one type and click Start.
Database is Opened By Users : …Another user is working on the file.Ask them to leave, then click Start again.
Error In Stored Proc: …The database refused the merge command. Nothing changes.Try again. If the error repeats, contact technical support.
Bills Count That Have Been Collected 0The program found no matching bills in the period, or From is after To.Check the period, the types, the option for bills related to customers and the fields of the first page.

All the messages and their causes are in Messages.

This page applies to alameen ERP 10, version 10.1.79.764.