Generate entries and post bills in bulk
The Generate Entries And Post Bills wizard generates the entry of bills that have none, and posts unposted bills to the warehouses, for the bill types and period you choose, in one run. You need it when bills were saved without entries, for example because the system administrator turned off entry generation in the properties of the bill type. The wizard runs from the Files Maintenance window.
Before you begin
- The wizard shows in Files Maintenance only when the file does not work in multi-file mode. The conditions of the other operations are in Available maintenance.
- 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 Generate Entries And Post 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. The wizard itself shows the backup page first (Back up a company file).
- Remember that the operation ignores the current options of the bill type for the types you tick in the two lists, and generates the entry according to the current accounts of the materials, as the program says on its first page.
- If you have a type that uses perpetual inventory with the average price policy, the program recommends recalculating the prices of the bills before this operation (Audit materials balances and prices).
Steps
Open the wizard and take the backup
-
Click File, then Tools, then Files Maintenance. Select Generate Entries And Post Bills and click Run. The warning box "This operation is dangerous …" shows when you select the operation. The details are in Run files maintenance.
-
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.
-
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.
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
- The Generate Entries And Post Bills page shows. It explains that the operation "will generate entries and post bills that were not posted for selected bill types and in the selected period regardless of the properties of bills types selected". Read it, then click Next.
- In the Generate Entry list tick the bill types whose bills without an entry you want to get an entry. Untick the types you do not want. To post bills without generating entries, untick all the types in this list.
- In the Post list tick the bill types whose unposted bills you want to post to the warehouses.
- Enter the start and end of the period in From and To, for example
1-1-2026and31-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.
After Start the program works at once and asks for no confirmation. It generates the new entries and posts the bills, and there is no undo after the run ends. Check the two lists and the two dates before you click, and make sure the backup is ready.
- Click Start. 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
- On success the message "Operation successfully completed" shows and the wizard page closes. You return to Files Maintenance.
- 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
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Generate Entry | List of the bill types whose bills without an entry get one. | No | The 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. |
| Post | List of the bill types whose unposted bills the program posts to the warehouses. | No | All types are ticked when it opens. When the page opens the program removes some types that it does not post to the warehouses; check the list and make sure the types you want to post are in it. If you cannot find a type you expect, check that you have the permission to browse it. |
| From | First day of the period. | Yes | Starts with the opening date of the file. The field cannot be empty. |
| To | Last day of the period. | Yes | Starts 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 Generate Entry only gets entries but its bills are not posted, and a type ticked in Post only is posted but gets no entries.
| Button | What it does |
|---|---|
| Next | Goes to the next page. Disabled on the last page and on the hard disk backup page. |
| Back | Returns to the previous page. |
| Start | Checks your choices, then starts the operation. |
| Cancel | Asks "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 date, then branch, then type, then number. For each bill:
- If its type is ticked in Generate Entry and it has no entry, the program generates one. The entry carries the date of the bill and the next entry number. It is created posted to the accounts if the type carries Auto Posting to Accounts, and unposted if not. The rules for building the entry are in How bills work.
- If its type is ticked in Post, the program posts it to the warehouses if it is not posted. A bill that was already posted does not change. The effect of posting is in How bills work.
After the last bill the program recalculates the balances and prices of the materials and the profits of the bills, then the balances of the accounts, as the operations Audit materials balances and prices and Audit accounts balances do. Everything happens in one transaction: if the program stops because of an error, the bills and entries return to their state before the run.
Bills the operation does not process
| Bill | What happens |
|---|---|
| A bill outside the period or outside the ticked types | Not touched. |
| A bill that already has an entry | No new entry is generated and its current entry does not change. |
| A bill whose type requires approvals and the approvals are not complete | No entry is generated and it is not posted until they are complete (Require approvals on a form). |
| A file with replication sources, and a bill issued by another source | No entry is generated unless the program option "Replication system - Generate the others invoices entries ( by source code )" is on. Posting is not affected by this option. |
| The Gulf tax system is on, and the bill is dated in the last closed tax period or before it | No entry is generated and it is not posted. When the run ends the message "Some bills in closed tax periods have no maintenance performed on them" shows. |
| Turkish e-invoicing is on and the bill is cancelled | No entry is generated and it is not posted. |
| Egyptian e-invoicing is on and the bill is in some states, among them cancelled and invalid | No entry is generated and it is not posted. |
| Saudi e-invoicing is on and the bill is a draft | No entry is generated and it is not posted. |
| Saudi e-invoicing is on and the state of the bill prevents posting it | It is not posted, and when the run ends a message titled "Process is not fully completed" shows. |
| The Syrian tax system is ready to use | The bill types that fall under it do not show in the two lists. |
If the program cannot generate the entry of a particular bill, and the database does not return an explicit rejection, it shows no message and goes on to the next bills. Compare the number of bills and entries after the run.
What the program logs
If the program option Activate log file is on, the program adds, when the operation ends, a log record with the note "- Generate Entries And Post Bills", whether the operation succeeded, failed or found no bills. The record shows in the Log File, on the Maintenances Log page (Log File).
Result
- The ticked bills now show their new entries, and the bills of Post are posted. Open a bill and check, then review its entry as in Post a bill and review its entry.
- The warehouse quantities rise and fall according to the bills that were posted.
- You cannot undo the operation. To return to the state before it, restore the backup.
If something goes wrong
| Message | Why it shows | What to do |
|---|---|---|
| Must specify at least one bill form | You ticked no type in the two lists. | Tick at least one type, then click Start. |
| 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 period | The 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, such as posting a bill. 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 them | The Gulf tax system is on and there are bills in closed tax periods. | No action. The operation was done for the other bills. |
| Process is not fully completed | Saudi e-invoicing is on and the program left a bill unposted because of its state. | Review the state of your e-invoices. |
| 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. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.