Profit Centers Data Management
This window works in the head office file. It lists the profit centers for a day you choose and shows the status of each center: connected or not, whether it closed the day, whether head office extracted its data, and whether its accounts, materials and prices match head office. From it you extract the day's data, cancel an extraction, update the materials and offers of the centers, and open the reconciliation and comparison reports.
Opening the window
- From the main ribbon: Centers > Profit Centers > Profit Centers Data Management.
The command appears in the head office file only, not in a profit center file. It needs the profit centers feature in your licence and the Profit Centers Data Management permission on the Operations page of the Users Management window. Each button has its own permission, listed in Buttons.
The window lists the centers defined in the Sub Profit Center Card, in the order of their numbers. A center does not appear if its security level is higher than your browse level for the sub profit center card. The program shows the Latin name when the interface language is not Arabic and the center has one.
Date and centers
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Date | The day that the whole window works on: the update, the extraction and the reports. | Yes | An ordinary date. When you change it, the program clears the unsaved status and shows the status you saved for the new day with Save, if there is one. If the window has changes you did not save, the program asks "Are you sure you want to ignore information entered here and move into a new record?", provided the warning option On cancel is on. If you choose Don't Move, the date returns to its previous value. |
The check box at the start of each center row ticks the centers that the buttons work on. No center is ticked when the window opens. If you tick none and click a button that works on centers, the message "Kindly specify profit centers" appears.
Buttons
| Button | What it does | When it is enabled | Permission |
|---|---|---|---|
| Update Status | Reads the status of the ticked centers. See Update Status. | There is at least one center. | Profit centers data management - Update status |
| Extract Data | Extracts the day's data from the ticked centers. | After Update Status has run at least once. | Profit centers data management - Extract data |
| Cancel Extracting | Cancels the extraction of the day for the ticked centers. | After Update Status has run at least once. | Profit centers data management - Cancel extraction |
| Update Materials | Updates the materials and prices of the ticked centers from head office. | By permission. | Profit centers data management - update materials |
| Update Special Offers | Updates the offers in the ticked centers. | By permission. | Profit centers data management - update offers |
| Save | Saves the status of the ticked centers for this day. | Always. | No special permission. |
| Detail Current Accounts | Opens the Detail Current Accounts report for the day. | After Update Status has run at least once. | Profit centers data management - detail current accounts |
| Display | A menu of documents of the selected center. See Button menus. | When a center is selected in the list. | |
| Reconciliation | A menu of reconciliation reports for the selected center. | When a center is selected. | |
| Compare | A menu of comparison reports for the selected center. | When a center is selected. | |
| Detail | A menu of account detail reports for the selected center. | When a center is selected. | |
| Operations | A menu with Extract data from file. | When a center is selected. | |
| Close | Closes the window. In a window with unsaved changes its name is Cancel. | Always. |
After Update Status succeeds, the Close button becomes Cancel. If the warning option On cancel is on, the program asks "Do you want to ignore the inputs and close the window?" when you close. Save gives the button its name Close back. See the account card for this shared behavior.
Centers grid
| Column | Meaning | Values |
|---|---|---|
| (check box) | Selects the center for the window's buttons. | |
| Profit center | The name of the center. | |
| Connection status | Whether the program could connect to the center file. | --- before the update, Not connected (in red), Connected |
| Closing status | Whether the center closed the day. | ---, Unclosed, Closed |
| Extraction status | Whether head office extracted the day's data. | ---, NOT extracted, Extracted |
| Inventory to date | Whether the center's warehouse quantity equals its quantity in head office. | Reconciled, Not reconciled |
| Current Account to date | Whether the current account in the center matches its account in head office. | Reconciled, Not reconciled |
| Consignes Goods to date | Whether the consigned goods account in the center matches its account in head office. | Reconciled, Not reconciled |
| Center's materials prices | Whether the materials prices in the center equal those in head office. | Reconciled, Not reconciled |
| Items Status | Whether the center's materials list equals head office's. | Updated, Not Updated |
| Accounts status | Whether the expenses accounts in the center equal those in head office. | Synchronized, Unsynchronized |
The cells show --- until you update the status, or until you open the window on a day that has a saved status. The exception is Inventory to date: it is empty or repeats the value of the row above, so do not rely on it before the update.
Update Status
Update Status works on the ticked centers. For each center the program does the following, in order:
- Extraction status: it looks in head office for an extraction record of this center on this day. If it finds one the center is Extracted and Closed. Otherwise it is NOT extracted. After the connection, Closing status takes what is in the center file.
- Connection status: it connects to the center file with the connection settings in the sub profit center card. If the connection works, the center is Connected, and the program works out Accounts status, Items Status and Closing status (from the closed days register in the center). Otherwise the center is Not connected.
- Reconciliation (connected centers only): it works out Current Account to date, Consignes Goods to date, Inventory to date and Center's materials prices. The rules are in the table below.
When it succeeds, the message "Operation successfully completed" appears. The button works out everything again, so earlier saved values do not affect its result.
Click Update Status before any other operation. Until then Extract Data and Cancel Extracting are disabled, and Update Materials and Update Special Offers record Not connected. A center you did not tick when you updated is skipped by the extraction and the cancellation.
| Column | It is Reconciled when |
|---|---|
| Current Account to date | The balance of the Management current account in the center file plus the balance of the center's main current account in the head office file equals zero, from the start of the period to the day. |
| Consignes Goods to date | The balance of the consigned goods account in the center plus the balance of the center's main consigned goods account in head office equals zero. |
| Inventory to date | The quantity in all the center's warehouses equals the quantity in the center's warehouse in head office on the day. The program compares one total of all materials. |
| Center's materials prices | The Center's price type in the center file is the same as in the sub profit center card, and the check total of the materials prices is the same in both files. |
A column shows Not reconciled if the account is not set in the options. After the update a Not connected center shows Not reconciled, Not Updated and Unsynchronized, because the program did not read its file.
Extract Data
Extract Data moves the operations of a day that a center closed into the head office file. It works on each ticked center that is Connected, Closed and NOT extracted, and skips the others without a message.
First the program checks the date of the day (inside the financial period, not before the operations lock date and not before the bills lock date; an administrator is asked whether to continue if it is before one of them), then shows "Kindly specify profit centers" if nothing is selected. Then it processes the centers one by one. For each center it checks:
- The sales bill form in the sub profit center card is set. Otherwise: "Please specify the sales invoice form for a center" and the center name.
- The seven main accounts of the center are set (current, expenses voucher, cash, payables, expenses, receivables, consigned goods). Otherwise: "Center's accounts must be specified" and the center name.
- The date is not before the lock dates of the expenses voucher form, the sales bill form, the returns form and the direct purchase forms.
If the checks pass, the program does these steps in order and saves them together:
- Expenses entry: it copies the expenses closing entry of the center into head office and posts it, with the expenses voucher form set in the center card. The center's current account becomes the center's main current account in head office, and every amount takes the opposite side: what the center debits, head office credits. Each expenses account must exist in head office, or you see "There are accounts unavailable in the management". If the center has no entry on that day, this step is skipped. If Management current account is not set in the center's options, its extraction stops without a message.
- Direct purchase (if it is on): for each direct purchase bill in the center on that date, the program saves in head office a purchase bill with the form of the center card, on the shipping warehouse and the intermediate account, with zero prices, then a shipment bill to the center. For each return it saves the return shipment, then the return bill. If the shipment bill exists, it asks "Invoice exists and will be replaced. Do you want to continue".
- Sales bill: it gathers the center's sales of the day, from the bills selected in Sales and returns invoices in the center options and from the increase and decrease bills, grouped by material, unit, pricing, expiry date and class. The decrease bill goes into the sales bill. Bonus quantities are added to the quantity. It replaces the price of each line with the center price from the materials prices kept in the center file at the last materials update dated the day or before, generates a sales bill of the center's form on the center's warehouse with cash payment, whose counter account is the cash account defined in the form, and posts it if the form posts automatically. If a material is not in head office you see "There are materials in the center that are unavailable in the management".
- Returns bill: the same for returns bills. If the center has returns and no returns form is set, you see "Please specify sales returns invoice form for a center". The increase bill goes into it, so a day whose closing generated an increase bill needs a returns form.
- Extraction record: it records in head office that this center was extracted on this day, with the entry and the two bills.
- The center: it marks the day Extracted in the closed days register of the center file.
Then the program saves the steps, works out the reconciliation again, saves the current account balances that Detail Current Accounts shows if the current account is reconciled, and locks the two direct purchase forms on the center card.
If any step fails, the program undoes all the steps of that center and the center stays NOT extracted. A message appears in the cases above, and messages of direct purchase, of saving bills and of lock dates can also appear. No success message or summary appears at the end, so check the Extraction status column after the operation.
After the extraction, the Display menu opens the closing entry and the sales and returns bills (when it is enabled). You can cancel the extraction with Cancel Extracting.
Cancel Extracting
The button works on each ticked center that is Connected, Closed and Extracted, after the date check and "Kindly specify profit centers". The program does not ask before it cancels. You cancel the extraction of a center that was extracted from a file in the same way, after the program can connect to it and Update Status shows it Connected, Closed and Extracted.
For each center the program undoes the extraction in these steps:
- It deletes the copied expenses entry and its voucher.
- It deletes the sales and returns bills.
- It deletes the extraction record of this center for the day.
- It deletes the direct purchase shipment bills and returns dated that day, the purchase bills saved with them, and their attachments.
- It marks the day not extracted in the center file.
Item 4 deletes the direct purchase bills dated that day for all centers, not only for the ticked one. If another center has direct purchases extracted on the same day, cancel its extraction too and extract it again.
If it succeeds, the center is NOT extracted and its shown reconciliation results are cleared. If the center has no extracted day left in head office, the program opens the two direct purchase forms on its card. If item 4 or 5 fails, the program undoes the whole operation without a message. It does not check items 1 to 3, so review the entries and bills after the cancellation.
The program checks the center settings before cancelling, as in the extraction. If the sales form or the center accounts are not set, the same message appears and the program skips the center. It does the same if the day is before the lock date of one of the forms.
Update Materials
Update Materials copies the material groups, the head office materials and their prices into the center file. It works on each ticked center, with no check of the operations lock date. When it ends, the program opens the Profit Center Operation Result report titled "Materials update result" and refreshes the columns. If no center passes the checks, the title can be "Update materials in profit centers".
For each center the program checks in order, records the first failed check in the result, and goes on to the next center:
| Check | Result when it fails |
|---|---|
| The center is connected | Not connected |
| The unit prices agree with the conversion factors for all the materials assigned to the center | Unit prices are inconsistent for one or more material of the materials assigned to the profit center |
| The decimal places of quantity and price are the same in both files | Decimal places (digits after decimal point) of quantity and price are different between the two files |
| The center options are complete | Profit center's settings are incomplete. Kindly complete the settings |
Then, in the center file, the program synchronizes the material groups, then the materials, saves the prices history in both files dated the day, generates the price change bills in the center and a differences entry in head office, then the barcode alternatives. At the end it saves.
- If the center is not Reconciled in the three columns (current account, consigned goods and inventory) at the last status update, or the day is not the center's last working day, the program adds the new materials only and does not update the existing ones. Its status reads "Materials processed in profit centers have not been synced since the last closed matched day", with "and N new materials have been added." if any were added, and its row has the warning color.
- If the update is complete, the status reads "The operation is completed successfully." with the count of new materials.
- The differences entry in head office has the notes "Update materials prices In the profit center" and the center name, between the center's main current account and its main consigned goods account. No entry is generated when there is no difference. The Display menu shows it in this session. If you run the update again on the same date, the entry of that date is deleted and a new one is generated.
- If a step fails, the program undoes the update in the center file. The materials prices saved in head office for the day stay, and the differences entry stays if the barcode step failed, so run the update again to replace them. The status is "A problem occurred while generating the differences' entry. Updating failed", "Materials update process failed", or "barcode alternatives transferring process failed".
After each center the program refreshes the statuses of the ticked centers as Update Status does, without the message.
Update Special Offers
Update Special Offers copies the special offers and their items to the centers. It works on each ticked center and checks in order: connected, then Reconciled in the current account, consigned goods and inventory, then that the day is the center's last working day (the center has no operation on or after the day except price change bills), then the unit prices. The status of a failed center is Not reconciled, or "Materials processed in profit centers have not been synced since the last closed matched day", or the unit prices message. If the synchronization works the status is "The operation is completed successfully.", otherwise "Offers updating failed". The program shows the result in a report titled "Offers' update result".
Save
Save saves the status of the ticked centers for the day: closing, extraction and the reconciliation results. It replaces the status saved before for this day and shows "Operation successfully completed". It gives the Close button its name back. When you open the window or change the date, the program shows the status saved for the day if there is one, without connecting to the centers.
Detail Current Accounts
The button opens the Detail Current Accounts report with the balances of the ticked centers that are Extracted and Reconciled on this day. If one of them is not connected, the program asks "There are unconnected centers. Would you like to preview the last reconciliation for them". Click Yes to show them too. If no selected center is extracted and reconciled, you see "No reconciled and extracted centers have been specified". The report reads the balances saved by the extraction or by the last Update Status while the center was connected and its current account was reconciled.
Right-click menu
Right-click a center. The menu gathers the commands of the Display, Reconciliation, Compare, Detail and Operations buttons in one menu, in this order, with separators between the groups:
Sub Profit Center Card, Display update of materials differences entry..., Show inconsistent materials in unit prices, Center Sales Bill, Sales Returns Bill, Center Expenses Closing Entry; then Unreconciled days..., Unreconciled materials..., Non-matching accounts...; then the three comparison commands; then the three detail commands; then Extract data from file....
The conditions that enable each command are in Button menus. A disabled command is grayed.
Button menus
The Display, Reconciliation, Compare, Detail and Operations buttons show menus when you click them, and work on the center whose row is selected. No menu appears if no center is selected in the list.
Display
| Command | What it opens | Enabled when |
|---|---|---|
| Sub Profit Center Card | The card of the selected center. | Always. |
| Center Sales Bill | The sales bill that the extraction generated. | The center is Closed and Extracted, the extraction has a sales bill, and the window read a saved status for this day, or Date is today, or the center was extracted a moment ago in this window. |
| Sales Returns Bill | The returns bill that the extraction generated. | The same conditions, and the extraction has a returns bill. |
| Center Expenses Closing Entry | The expenses entry copied into head office. | The same conditions, and the extraction has an entry. |
Check the warehouse and the date in the document that opens: if the program does not find the extraction of the selected center, it opens the documents of the last center. | Display update of materials differences entry... | The differences entry that Update Materials generated in this session. | After a status update, and the update generated an entry in the same session. | | Show inconsistent materials in unit prices | The Materials that have inconsistency in the unit prices report for the center. | Always. |
Reconciliation
Each command works on the selected center and opens a report that reads the center file through its connection. Each is enabled after Update Status, when the center's check box is ticked and the center is connected. Unreconciled days... opens the conditions window; the other two open straight in the viewer.
| Command | What it opens | Extra condition |
|---|---|---|
| Unreconciled days... | The Unreconciled Days report for this day. | The Profit centers data management - Report of unreconciled days permission. |
| Unreconciled materials... | The unreconciled materials report. | Items Status is Not Updated, and the permission above. |
| Non-matching accounts... | The unreconciled accounts report. | Accounts status is Unsynchronized. |
Compare
Each command is enabled after Update Status, when the center's check box is ticked and the center is connected, its options are complete (Options have been set and can be shared with the management is selected), and you have the permission shown.
| Command | What it opens | Permission |
|---|---|---|
| Compare inventory count up to date, and current day's prices … | The comparison of the inventory count up to the day and the prices. | Profit centers data management- materials stock-take comparison report |
| Compare the current account movement of current day… | A comparison of the current account movement between head office and the center on the day. | Profit centers data management - Current account comparison report |
| Compare consigned goods movement of current day… | A comparison of the consigned goods movement on the day. | Profit centers data management - Consigned goods comparison report |
Detail
The commands are enabled after Update Status, when the center's check box is ticked and the center is connected, and you have the permission. They open the conditions window.
| Command | What it opens | Permission |
|---|---|---|
| Detail Account Account Receivable... | The detail of the receivables account of the center up to the day. | Profit centers data management - Accounts receivable detail report |
| Detail Account Account Receivable... | The detail of the payables account of the center up to the day. Its menu text is the same as the first command. | Profit centers data management - Accounts payable detail report |
| Detail Cash Account... | The detail of the cash account of the center. | Profit centers data management - Cash account detail report |
Operations

| Command | What it does | Enabled when |
|---|---|---|
| Extract data from file... | Extracts the day's data from a closing xml file that the center exported with Export File of Closing. This is the extraction for a center that the head office file does not connect to. | The center is ticked, Not connected and not Extracted, and you have both Profit centers data management - Extract data and Profit centers data management - Extract data from file. |
Before the program opens the file dialog it checks the date of the day and the lock dates of the voucher, sales, returns and direct purchase forms. After you choose the file it checks the following, and shows a message at the first failure:
- The file is a closing file: otherwise "File doesn't belong to profit center".
- Its date is the date of the window: otherwise "Cannot continue! file date is on" and the date.
- The returns form is set in the center card.
- The center was not extracted on this day: otherwise "Can't continue, this day was previously extracted".
- The file belongs to this center: otherwise "Cannot continue! file doesn't belong to this center" and the center name.
- A confirmation: "Extract profit center data" with the name and "to day" and the date, with OK and Cancel.
After you confirm, the program moves, in order: the entry, then the direct purchase bills (if on), then the returns bill, then the sales bill, then the extraction record, as in Extract Data, but it changes nothing in the center file and does not check the center options. If any step fails, you see "An error occurred while extracting" and the program undoes the operation. If it succeeds, you see "Operation completed successfully". To cancel this extraction see Cancel Extracting. After Update Status the center shows Extracted.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Kindly specify profit centers | You clicked a button that works on centers and none is ticked. | Tick the centers. |
| Operation successfully completed | Update Status or Save finished. | Nothing. |
| Please specify the sales invoice form for a center ... | The sub profit center card has no sales bill form. | Complete the center card. |
| Center's accounts must be specified ... | One of the seven main accounts of the center is not set. | Complete the center card. |
| Please specify sales returns invoice form for a center ... | The center has returns on the day and no returns form. | Set the form in the card. |
| There are accounts unavailable in the management | The expenses entry has an account that is not in head office. | Add the account to head office. |
| There are materials in the center that are unavailable in the management | A material in the center's sales is not defined in head office. | Add the material, or update the center materials. |
| No reconciled and extracted centers have been specified | Detail Current Accounts and no ticked center is extracted and reconciled. | Tick extracted and reconciled centers. |
| There are unconnected centers. Would you like to preview the last reconciliation for them | Detail Current Accounts and a center is not connected. | Yes shows its last saved data, No skips it. |
| Are you sure you want to ignore information entered here and move into a new record? | You changed the Date while the window has unsaved changes. | Move or Don't Move. |
| The messages of Extract data from file | See Operations. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.