Skip to main content

Import Budget Cards: Account/Cost center

This wizard reads a text file that holds budgets of accounts or cost centers. It adds lines from it to the account budget cards, or modifies the amounts of existing lines if you ask. The file can come from alameen ERP 10 or from another program, and can hold account or cost center codes with their debit or credit amounts, and the accounting period and branch codes if there are any. In the wizard you choose the file, the separator, the update option and the meaning of each column, and then a window shows a report of the lines. For the practical steps see Import budget cards.

Opening the wizard​

  • From the File tab > Import & Export, in the group named "Import Different Types of Cards Exported from Text Files, whether Exported from alameensoft or Other Programs", click Import Budget Cards. See File tab: Tools and Import & Export.
  • The button shows when your licence includes the import and export from files feature, the customer cards feature and the budget reports feature, and the file is not in multiple-files mode.
  • The user needs the Import Budget Cards permission in Users Management, on the Operations page, in the group named after the import and export tool. The page linked above explains what happens when you click the button without it.

The wizard has five steps, and you move between them with Next and Back. Every window is titled Import Budget Cards: Account/Cost center. In the last step Next is disabled and Start appears. When you click Cancel in any step the program asks: "Do you want to exit out importing customer cards". That is the text of the question in the program, and it appears here too. Choose Yes to leave.

The program remembers on this computer the last file, separator and columns, and shows them next time. It saves them after you answer Yes to the start question.

Introduction​

The page explains that the wizard guides you step by step towards importing accounts or cost center budget cards, that the text file may come from alameen or from another program and may hold accounts or cost center codes with their allocated budget (debit or credit) in addition to the accounting period and branches, if available, and that Next moves forward, Back moves back and Cancel quits. It has no fields.

Select File​

The page explains that you select the name of the text file that holds the imported information. It is the file step of Import Materials Cards: a file name box, a browse button next to it that opens a file picker with the filter Text files (*.txt) or all files, and the last file you imported shown in the box. When you click Next the program checks that the file exists. If not, it shows "The file doesn't exist" without the path.

Fields Separator​

This page is the same as the Fields Separator step of Import Customers Cards: Tab (the default), Comma, Semicolon and Other, with a box in which you type one character. If you choose Other and leave the box empty, the message "You must specify field separator" appears.

Update budget cards​

The program titles this page File Fields.

The page explains that if the same code is found, the budget card is not added again for that account or cost center, and that selecting the next option makes the program modify the existing one.

OptionWhat it doesValues and rules
Update Account or Cost Center Budget Card According to CodeIf the open company file already has a budget line that matches the line (the account, cost center, period and branch together), the program replaces its debit and credit amounts with those in the file.Cleared every time the page opens, and the program does not save it. If you leave it cleared, the program does not change existing lines.

File Fields​

The page explains that you must set the fields found in the file, including codes and credit or debit values, in addition to the first row of the imported information.

ItemDescriptionRequiredValues and rules
Start lineThe number of the first budget line in the file, so you can skip a header line.NoThe default is 1 every time, and the program does not save it. The program does not check its value.
Fields gridThe first row holds a list for each column, from which you choose what the column holds. Under it are the first 100 lines of the file split by the separator. The column headers are Column 1 and so on, the row headers Row 1 and so on, and the header of the first row is Fields.—Six columns only. The program does not read anything after the sixth column of the file. The first time, the first row shows no choice.

Buttons: Start, Back and Cancel.

The program does not check the columns when you click Start: it does not make sure you chose a column for the account or for the amount, and it does not check for repeated fields. It ignores columns that you did not give a field. Then it asks: "Are you sure to start importing budget cards" (Yes/No, and No is the default).

File columns​

The list of each column offers the choices below, in this order. Choose without for a column that you do not want to import. These columns always show, even if your licence does not include cost centers or branches.

ColumnWhat it does and how it is read
Account codeThe account code. Without it, or with a code that does not match an account, the program does not add the line.
Cost Center CodeThe cost center code. If the cell is empty, or you did not choose the column, the line does not belong to a cost center. If you write a code that matches no cost center, the line is not added to an existing budget card of the account.
Accounting PeriodThe code of the accounting period as in Program Options, on the Accounting Periods page (for example M1). If the cell is empty, the line does not belong to a period. If you write a code that matches no period, the line is not added to an existing budget card of the account.
DebitThe debit budget amount. The program removes commas from it. An empty cell equals 0.
CreditThe credit budget amount. The same as above. If a line has both a debit and a credit amount, the credit is used and the debit becomes 0.
Office CodeThe branch code (the English list calls it "Office Code"). If you leave it empty, the line does not belong to a branch. If you write a code that matches no branch, the line is not added to an existing budget card of the account.

Write amounts as numbers with a decimal point. Non-numeric text in Debit or Credit stops the import with the message "Error In Query: …". So does a code that contains a single quote '.

How the program processes the lines​

The program reads all the lines of the file from the start line, and matches them with the chart in this order:

  1. Account: the program matches Account code with the code of an account in the chart of accounts. A line whose code matches nothing adds nothing, and no message appears.
  2. Account card: each account has one budget card. If the account has no card the program creates one, and if it has one the program adds the lines to it.
  3. Line: the identity of a line is the account, cost center, period and branch together. If a line with the same identity exists, the program does not add a new line, and replaces its amounts if you selected the update option. Otherwise it adds a line with the debit and credit amounts.

The wizard does not apply the rule that stops a budget for an account when its main account or one of its sub accounts has one. That rule is checked in Account / Cost Center Budget Card when you save. If the same line is repeated in the file with the update option, the program uses one of the two amounts in no defined order. The lines it adds show in the budget card of the account, and the budgets of a cost center in the budget card of the cost center. See Account / Cost Center Budget Card and Cost Center Card.

Imported Allocated Budget Cards window​

When the program has finished, a window titled Imported Allocated Budget Cards appears with the question "Do you want to preview imported information." and the buttons Preview and Close. The same window appears after Import Customers Cards. It does not appear if the procedure returned no lines. The wizard closes after you close the window.

Imported Budget Cards report​

Preview opens the report Imported Budget Cards in the report viewer (see Report viewer). Its header shows Start Time and End Time, and its table has three columns:

ColumnDescription
Account CodeThe account code of the line.
Cost Center CodeThe cost center code of the line, empty if it has none.
Operation"Budget card has been added" for a line that has no matching line in the company file, and "Budget card has been modified" for a line that has one.

The program decides the operation by matching alone. It shows "Budget card has been added" for every line that has no matching line, even if it did not add it because the account code matches no account. And it shows "Budget card has been modified" for every matching line, even if you did not select the update option and nothing changed.

The right-click menu of a row has Account Budget Card... and Cost Center Budget Card.... Each command shows for a row that has an account or a cost center, and for a user who has its permission.

Messages​

MessageWhy it appearsWhat to do
"The file doesn't exist"There is no file at the path written in the file step.Correct the path.
"You must specify field separator"You chose Other and left the character empty.Type the separator character.
"Do you want to exit out importing customer cards"You clicked Cancel.Choose Yes to leave.
"Are you sure to start importing budget cards"You clicked Start.Choose Yes to start.
"Can't open file:" with the file pathThe file could not be read.Make sure the file is not open elsewhere and that you may read it.
"Error In Query: …" with the text of the queryNon-numeric text in an amount, a code with a single quote, or the temporary table could not be created.Correct the file. The message is in English in every interface language.
"Error In Stored Proc: …"The procedure that adds the lines failed.The message is in English. Read it and correct the file.
"Empty"The procedure returned no line, because the file has no lines after the start line.Choose a file that has lines.

This page applies to alameen ERP 10, version 10.1.79.764.