Reprice Bills and Generate their Entries
The Reprice Bills and Generate their Entries wizard rewrites the price of the item lines of the bills of the bill types and period you choose, with the price you select, then generates the entries of these bills again. This page explains each wizard page with its fields, buttons and messages. The steps are in Reprice bills and regenerate their entries. What happens to the bills, their entries and their payments is in Reprice bills and regenerate their entries.
Opening the wizard
Open File > Tools > Files Maintenance, select Reprice Bills and Generate their Entries and click Run. The window and its warning frame are in Run files maintenance.
- The operation shows in the list when the file does not work in multi-file mode and does not belong to a profit center (Available maintenance).
- Running the operation from Files Maintenance checks no permission of its own. The Reprice Bills and Generate their Entries permission in Users Management > Operations only decides whether the operation's tile shows on the desktop.
- You also need the Delete or Modify an Entry or a Bill Related with Payment permission if the types you tick contain bills with linked payments. The same permission controls the two payments link options on the discounts and additions page.
The explanation shown in the list
The Files Maintenance list shows the name of the operation and under it the explanation: "Upon saving a purchase Invoice, the price will be saved as "last purchase price". When saving a sales Invoice, the price will be saved as "customer last sales price" and profit will be calculated according to the current cost price of the material. Therefore, when entering purchase and sales Invoices in their non- chronological order; Last Purchase price, Average Price, and cost price and last price offered to customer will be displayed incorrectly ."
The backup page
The first page of the wizard is the Make a Backup page. Its types and fields are in Make a backup, and the idea of a backup before maintenance in When to use files maintenance. After the backup, or after you choose not to make one, the explanation page shows.
How the pages and buttons work, and the cancel question, are in How maintenance wizards work. The buttons at the bottom of the pages are Back, Next and Cancel, and Start joins them on the last page.
The Reprice Bills and Generate their Entries page (explanation)
A read-only page with no fields. It shows three paragraphs, each with an icon beside it:
- "This operation will re-price the specified bills within the selected period according to the average price policy with the ability to use average price multiplier factor, where the multiplying percentage can be specified"
- "In case of not using the multiplier factor, the average price will be used. It's recommended to recalculate prices before doing this operation."
- "Entries regenerating will be done automatically after repricing bills"
The text speaks of the average price, but the program applies the price you choose in Price on the last page. The default there is Cost.
| Button | What it does |
|---|---|
| Next | Goes to the discounts and additions page. |
| Back | Returns to the backup page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard on Yes. |
The discounts and additions options page
It sets how the program treats the discount and addition of each line, and of the bill, after the price changes. It also holds two payments link options. At the top it says "Here, you can select the method used to recalculate discounts and additions of items".
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Keep Discount and Additions As Value | The discount and addition amount of each line stays the same after the price changes, and so do the bill's total discount and addition. | Yes (one of the two options) | Selected the first time the page opens. A pair with the next option: selecting one clears the other. |
| Keep Discount and Additions As Percentage | The percentage of discount and addition of the line value stays, and the percentage of the bill total for the total discount, so the amount follows the new price. | Yes (one of the two options) | |
| If there is one column for discounts and additions, keep the value depending on the column | The program keeps this option, but it does not change the result: every line follows the choice you made, Keep Discount and Additions As Value or Keep Discount and Additions As Percentage. | No | Not ticked when the page opens. |
| Remove Discounts | Sets the discount of the item lines to zero. Does not change the total discount of the bill. | No | Not ticked when the page opens. |
| Remove Additions | Sets the addition of the item lines to zero. Does not change the total addition of the bill. | No | Not ticked when the page opens. |
| Keep Price when the Origrinal Price equals Zero | If the price to apply to a line is zero, for example a price not entered in the material card, the current line price stays instead of becoming zero. | No | Not ticked when the page opens. |
The next two options are in the Payments Link Options group. They exclude each other:
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Unlink All Bill Payments (when bill value become less than payments sum) | After the entry is generated the program tries to link the bill's payments again. If the bill value became less than the sum of its linked payments, or the payments cannot all be linked again, it unlinks all the payments of the bill. | No | Not selected when the page opens. Disabled and not selected if you lack the Delete or Modify an Entry or a Bill Related with Payment permission. |
| Auto Link ( relink with payments and delete extra links if any ) | The program links the payments of the bill again in the order of payment date then number, and deletes the links the bill value cannot hold. | No | Selected when the page opens for a user with the same permission. Disabled and not selected without it. |
When you come back to this page with Back, the program keeps the value or percentage option and the payments link option, but the four check boxes (one column, remove discounts, remove additions, keep price) show unticked. Tick them again before Next if you want them.
| Button | What it does |
|---|---|
| Next | Keeps your choices and opens the last page. |
| Back | Returns to the explanation page. |
| Cancel | Asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard on Yes. |
The last page: bills and price
Here you choose the types, the price, the period and the limits, and start the run. Its title is "Reprice Bills and Generate their Entries".
At the top it says "Select bills types you want to reprice and the multiply factor used in repricing those types."
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Invoices | The list of bill types to reprice. Under it is a Groups of forms field, described in the paragraph after the table. | Yes (at least one type) | Shows the types you have the permission to browse, all ticked when the page opens. A type with approvals turned on does not show (Require approvals on a form). With the Gulf tax system on, the purchase and sales types and their returns that generate an entry do not show. With the Turkish tax system on, its e-invoicing types do not show, and with the Syrian tax system on only the ordinary input and output types and all the standard types show. |
| Use multiplication factor | Multiplies the chosen price by a percentage you enter. | No | Not ticked when the page opens. The field beside it (followed by %) is disabled and holds 100, and turns on when you tick the box. The program multiplies the price by the number divided by 100, so 90 gives a price ten percent lower. With the box unticked the program uses 100 whatever the field holds. The program does not check the value you type. |
| Price | The price the program puts in the bill line. | Yes | Default Cost. The values are in Price. |
| From and To | The first and last day of the bills' period. Both days are included. | Yes | Each starts with today's date. Neither can be empty. Example: 1-1-2026 and 31-3-2026. How the field works is in Date fields and calendar. |
| Material | Limits the repricing to the lines of this material. | No | A search field (Lookup and search fields). Empty means all materials. Choosing a material disables Group. |
| Group | Limits the repricing to the lines of the materials of this group. | No | Empty means all groups. Choosing a group disables Material. |
| Warehouse | Limits the repricing to the lines of this warehouse. | No | Empty means all warehouses. |
| Cost Center | Limits the repricing to the bills of this cost center. | No | Empty means all cost centers. |
| Salesman | Limits the repricing to the bills of this salesman. | No | Empty means all salesmen. |
| Distributor | Limits the repricing to the bills of this distributor. | No | Empty means all distributors. |
| Skip display negative output report | The program does not show the negative output list that the audit of balances and prices produces before and after the repricing. | No | Not ticked when the page opens. Works with the Cost and Last Purchase prices only, and is disabled when you choose any other. |
Under the Invoices list there is a field without a caption that shows the prompt Groups of forms. Choose a forms group in it to tick its types in the list and untick the others. The program empties the field when you click a check box in the list (Forms groups).
| Button | What it does |
|---|---|
| Start | Checks your choices, then starts the operation as in What happens when you click Start. |
| Back | Returns to the discounts and additions options page. |
| Next | Disabled on this page. |
| Cancel | Before Start: asks "Are you sure you want to exit and cancel the maintenance operation?" and closes the wizard on Yes. During the run: disabled. |
Price
The Price list shows the prices you have the permission to read in Users Management, in this order: Cost, Wholesale, Semi wholesale, Export, Distributor, Retail, Consumer, Last Purchase and Weighted average. If you lack the permission to read the cost price the list stays with no selection, so choose a price before Start. What the program puts in the line for each value, the currency conversion and a worked example are in Reprice bills and regenerate their entries.
What happens when you click Start
The program goes through these steps in order and stops at the first refusal:
- It checks that at least one type is ticked, and that From is after the last closed day of a profit center. If it refuses, the wizard stays on the page.
- It checks that no other user works on the file.
- If you lack the Delete or Modify an Entry or a Bill Related with Payment permission and a ticked type holds a bill linked to a payment, it refuses to run.
- It checks that the period has bills of the ticked types.
- It asks the confirmation question. On Yes it goes on, on No it stops.
- If the price is Cost it audits the balances and prices of the materials, then it reprices and generates the entries. It audits the balances and prices again when the price is Cost or Last Purchase.
- It shows what remains of the bills and payments, then the success message.
Cancel is disabled after step 1, so you cannot stop the run. If the program refuses to run in one of the later steps, you stay on the page and the buttons work again. If the operation fails after the repricing began, some bills may stay repriced, and the only way back is to restore the backup.
Messages
| Message | Why it shows | What to do |
|---|---|---|
| Please select report sources | You clicked Start and ticked no type in the Invoices list. | Tick at least one type. |
| 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. "An error was encountered while performing the operation." follows. | Ask them to leave, then click Start again. |
| There are invoices forms contain linked payments and you have no permission to " modify or delete entry or invoice linked to payment " | The ticked types hold bills linked to payments and you lack the permission. "An error was encountered while performing the operation." follows. | Ask for the permission, or untick these types. |
| No movement found in the specified period | The period has no bills of any ticked type. Nothing changes. | Change the dates or the types. |
| This operation will change the prices saved in the selected bills and you cannot undo. Are you sure? | The confirmation question after Start, with Yes and No. | Yes to start. No backs out, then "An error was encountered while performing the operation." shows with no change to the bills. |
| The bills that have not been re-priced, due their value would be negative | An error window with this title lists each bill that was not repriced, with the words "Not priced". Shows after the repricing. | Note the bill numbers and review them. |
| There are invoices haven't been re-priced and payments have been unlinked or modified. A file of them has been generated on path : … | Payments changed, or the program skipped bills whose new value fell below their down payment, or below the total of their commercial papers. The path is the error.txt file in the program's log folder. | Open the file. Its parts and columns are in The payments and bills file. |
| Operation successfully completed | The run ended. The wizard page closes. | Close Files Maintenance so other users can sign in. |
| An error was encountered while performing the operation. | The run was refused for a reason in the earlier messages, or you clicked No in the confirmation question, or the database refused the repricing command. | Read the message before it, if any. If it shows alone after the confirmation question, the repricing stopped: restore the backup. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.