Skip to main content

Cancel posting of bills in bulk

The Delete Automatic Entries and Cancel Posting Bills wizard cancels the posting of bills to the warehouses, and deletes the entries that come from bills, for the bill types and period you choose, in one run. It deletes every entry linked to the bill, whether the program generated it automatically when the bill was saved or you generated it by hand. You usually use it before you change the settings of a bill type, or before you generate the entries again with Regenerate entries or Generate entries and post bills in bulk.

Before you begin​

  • The wizard shows in Files Maintenance only when the file does not work in multi-file mode (Available maintenance). It does not work in a file that has the replication system on, as publisher or subscriber: the message "The tool cannot be used in a file that has the Replication system activated." shows and the wizard does not open.
  • You need what Run files maintenance explains. The program checks no permission named after the operation when you run it from the Files Maintenance window, the favorites menu or Quick Launch. The Delete Automatic Entries and Cancel Posting Bills permission in Users Management > Operations only decides whether the operation's tile shows on the desktop.
  • 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. You cannot undo the operation after it ends, and deleted entries do not come back. The wizard itself shows the backup page first (Back up a company file).
  • If the period has closed days in a profit center (Close a day in a profit center), From must be after the last closed day.

Steps​

Open the wizard and take the backup​

  1. Click File, then Tools, then Files Maintenance. Select Delete Automatic Entries and Cancel Posting Bills and click Run. The warning box "This operation is dangerous …" shows when you select the operation. The details are in Run files maintenance.

  2. On the Make a Backup page choose the type of backup, then click Next:

    • To Hard Disk: selected when the page opens.
    • To Removable Disk: its page and steps are in Make a backup.
    • Don't Make a Backup (not recommended): the program goes to the next page without asking anything.

    If your key is a cloud subscription, a page with the same title replaces this one. It says that the files do not support the manual backup, tells you to request the backup from the service provider, and asks "Are you sure you want to continue maintenance process?". Click Next to continue.

  3. If you chose the hard disk, the Make Backup Copy on Hard Disk page shows. The program fills the Notes field with the file, server, computer, user, program version and date. Change it or leave it, then click Start. When the copy ends the program shows "Operation completed successfully" and goes to the next page. If the copy fails you stay on the page. Next is disabled on it.

note

You can click Cancel before Start on any page. The program asks "Are you sure you want to exit and cancel the maintenance operation?". Click Yes to leave with no change to the bills.

Choose the types and the period​

  1. The Delete Automated Entries and Cancel Posting Bills page shows. It explains that the operation "will cancel the post of all bills and delete generated entries from bills during selected period regardless of current bill properties". Read it, then click Next.
  2. In the Delete Entry list tick the bill types whose entries you want to delete. Untick the types you do not want. To cancel posting without deleting entries, untick all the types in this list.
  3. In the Cancel Posting list tick the bill types whose bills you want to unpost from the warehouses.
  4. Enter the start and end of the period in From and To, for example 1-1-2026 and 31-3-2026. Bills dated between the two dates, and on them, enter the operation. How the date field works is in Date fields and calendar.
warning

After Start the program works at once and asks for no confirmation. It deletes the chosen entries for good and cancels the posting, and there is no undo after the run ends. The program does not check the payments linked to the bill or to its entry before it deletes. Check the two lists and the two dates before you click, and make sure the backup is ready.

  1. Click Start. If From is on a closed day or before it, a message shows and you stay on the page. Otherwise the progress bar shows, and under it the name and number of the bill the program is processing. Cancel is disabled during the run, so you cannot stop it.

After the run​

  1. On success the message "Operation successfully completed" shows and the wizard page closes. You return to Files Maintenance.
  2. If other messages came before it, read them in If something goes wrong. Close Files Maintenance when you finish so that the other users can sign in.

Fields​

FieldDescriptionRequiredValues and rules
Delete EntryList of the bill types whose bills lose their entries.NoThe list shows the bill types you have the permission to browse. When it opens, the types that carry both Generates Entry Automatically and Auto Posting to Accounts are ticked, and the types that lack one of them are not. The program removes from the list the types that carry Doesn't Generate Entry.
Cancel PostingList of the bill types whose bills the program unposts from the warehouses.NoWhen it opens, the types that carry Auto Post to Warehouses are ticked, and the others are not. The program removes no type from this list because of its options.
FromFirst day of the period.YesStarts with the opening date of the file. The field cannot be empty. If there are closed days it must be after the last closed day.
ToLast day of the period.YesStarts with today's date.

Tick at least one type in one of the lists, or the message "Must specify at least one bill form" shows. The two lists are independent: a type ticked in Delete Entry only loses its entries but stays posted, and a type ticked in Cancel Posting only is unposted but keeps its entries.

ButtonWhat it does
NextGoes to the next page. Disabled on the last page and on the hard disk backup page.
BackReturns to the previous page.
StartChecks your choices and the date, then starts the operation.
CancelAsks "Are you sure you want to exit and cancel the maintenance operation?", then closes the wizard. Disabled during the run.

What the operation does to each bill​

The program reads the bills of the period (of all types, not only the ticked ones) sorted by type, then date, then number. For each bill:

  1. If its type is ticked in Delete Entry, the program deletes the entry linked to it, with its header and all its lines. The bill stays and has no entry. The program changes nothing in the bill itself.
  2. If its type is ticked in Cancel Posting, the program makes it unposted to the warehouses. An unposted bill does not change the warehouse quantities, as in How bills work.

Everything happens in one transaction: if the program stops because of an error, the entries and the bills return to their state before the run. At the end of this operation the program does not recalculate the balances of the materials or of the accounts. To update them run Audit materials balances and prices and Audit accounts balances.

Bills the operation does not process​

BillWhat happens
A bill outside the period or outside the ticked typesNot touched.
A bill with no entryNothing is deleted, and it is unposted if its type is ticked in Cancel Posting.
A bill whose type requires approvals and the approvals are not completeIts entry is not deleted and it is not unposted (Require approvals on a form).
The Gulf tax system is on, and the bill is dated in the last closed tax period or before itIts entry is not deleted and it is not unposted. When the run ends the message "Some bills in closed tax periods have no maintenance performed on them" shows.
Saudi e-invoicing is on and the bill is of its typesIts entry is not deleted and it is not unposted. When the run ends the message "E- invoices have not been maintained." shows.
Turkish or Syrian e-invoicing is onThe bill types that fall under them do not show in the two lists.

What the program logs​

If the program option Activate log file is on, the program adds, when the run starts and before it processes any bill, a log record with the note "- Generate Entries And Post Bills". This note is shared with the generating operation, but the record belongs to this operation. It shows in the Log File, on the Maintenances Log page (Log File). The record is saved even if the period has no bills.

Result​

  • The bills stay in the file and lose their entries (according to Delete Entry) and their posting to the warehouses (according to Cancel Posting). Open a bill and check.
  • You cannot undo the operation. To return to the state before it, restore the backup. To generate the entries again use Generate entries and post bills in bulk.

If something goes wrong​

MessageWhy it showsWhat to do
The tool cannot be used in a file that has the Replication system activated.You clicked Run and the file is a publisher or a subscriber in replication. The wizard does not open.Run the operation in a file that does not work with replication.
Must specify at least one bill formYou ticked no type in the two lists.Tick at least one type, then click Start.
Latest closed day is … cannot run the maintenance before next day.From is on the last closed day or before it.Set From after the date the message shows.
Database is Opened By Users : … Please check that all users logged out then try again.Another user works on the file. The message lists their names. The message "An error was encountered while performing the operation." follows it.Ask them to leave, then click Start again.
No movement found in the specified periodThe period has no bills of any type ticked in the two lists. Nothing changed.Change the two dates or the types.
An error was encountered while performing the operation.The database refused a command. A message from the database may come before it. The program stops and returns the file to its state before the run.Read the message that came before it and correct the bill it names, then run again. If the error repeats, contact support.
Some bills in closed tax periods have no maintenance performed on themThe Gulf tax system is on and there are bills in closed tax periods.No action. The operation was done for the other bills.
E- invoices have not been maintained.Saudi e-invoicing is on and the period has bills of its types.No action. The operation was done for the other bills.
Are you sure you want to exit and cancel the maintenance operation?You clicked Cancel before Start.Click Yes to leave, or No to continue.

This page applies to alameen ERP 10, version 10.1.79.764.