Skip to main content

Country / City / Region Card

Addresses are built on three levels: the country, the city under it and the region under the city. You define each level in a card. The three cards are one window whose fields and labels change with the level. You then pick these cards in the customer address. For the steps, see Manage countries, cities and regions.

Opening the window​

  • From the ribbon: Customers > Settings > Country Card, City Card or Region Card. Each card has a permission of its own name in Users Management, with four levels: add, browse, modify and delete.
  • From the Chart of Addresses: right-click a country, a city or a region and choose its card item, or double-click it. The commands Add New City... and Add New Area... open a new card with the selected country or city in it.
  • From the Country, City and Region fields of an address: right-click the field after you choose a value in it, and choose Country Card..., City Card... or Region Card.... In the search window for a card, the New button opens a new card with what you typed as its name.
  • From the Merge Address Card tool: in its country, city and region fields, after you choose a value in the field, from the same menu.

The window title is "Country Card", "City Card" or "Region Card".

A new country card: the code, the name, the Latin name, the country list and the administrative divisions

Fields​

At the top of the window are the navigator buttons and the card number box. See Record navigator. These cards have no security level.

FieldDescriptionRequiredValues and rules
CodeThe code of the card. Its label changes to Country Code, City Code or Region Code.YesUp to 100 characters. Not repeated in any card of the same kind. Example for a country: SA. The program reads the country code in e-invoicing, so type the standard country code, which is SA for Saudi Arabia.
NameThe name. Its label changes to Country Name, City Name or Region Name.YesUp to 250 characters. A country is not repeated by name, a city is not repeated inside its country, and a region is not repeated inside its city. Example: الرياض.
Latin NameThe name in Latin letters.NoUp to 250 characters. If you type it, the same no-repeat rule applies. It shows in the English interface in fields and lists. Example: Riyadh.
Country (on the city card)The country the city belongs to.YesA lookup box over the country cards.
City (on the region card)The city the region belongs to.YesA lookup box over the city cards. The region card has no country field.
ZIP Code (on the region card)The ZIP code of the region.NoUp to 100 characters. When you pick the region in an address, the program copies this code into the ZIP Code field of the address. Example: 12611.
Country (on the country card)The matching country in the standard list of countries.NoA list that shows Without and then the standard countries that come with the program, in Arabic or in English according to the interface language. Two cards cannot use the same standard country.
Administrative Divisions (on the country card)The divisions that will show for this country in Administrative Division in the address.—Read only. It shows the names of the divisions of the chosen standard country, separated by a dash. It is empty when you choose Without. If the country has no divisions in the list, what was shown before stays.

What each card shows​

FieldCountry cardCity cardRegion card
Code, Name and Latin NameYesYesYes
Country as the parent—Yes—
City as the parent——Yes
ZIP Code——Yes
Standard Country and Administrative DivisionsYes——

The program fills the parent field when you open the card from the Chart of Addresses with Add New City... or Add New Area.... It also suggests the Code that follows the last code used under that parent, when that code ends in a number, and puts the cursor in Name.

A new region card: the code, the name, the Latin name, the city and the ZIP code

Buttons​

ButtonWhat it does
AddSaves what you typed as a new card, then starts another one with the same values, except the standard Country, which returns to Without. If you turned on Increment material code after save or Increment material name after save in the display options, the number at the end of that field goes up by one. Otherwise change Code and Name before the next Add.
ModifySaves the changes of the card shown. It is disabled until a saved card is shown.
NewStarts a new card, keeps the typed values, sets the standard Country to Without, and puts the cursor in Name. If the On cancel warning is on and the card has unsaved changes, it asks with the buttons Move and Don't Move.
DeleteDeletes the card shown after confirmation. It is disabled until a saved card is shown.
Close (it reads Cancel after any change)Closes the window. If you typed something and did not save and the On cancel warning is on, the program asks whether to ignore the changes.

Saving rules​

On Add or Modify the program checks in this order:

  1. You have the add or modify permission of the card.
  2. Code is not empty, then Name is not empty.
  3. The parent field is not empty on the city card and the region card.
  4. The e-invoicing rules in the next section.
  5. Code is not used by another card of the same kind.
  6. Name is not used under the same parent. On the country card the name is checked among all countries.
  7. Latin Name is not used under the same condition, if you typed it.
  8. The standard Country is not used by another country card.

The program does not save the card if one check fails. Then Add asks "Are you sure you want to complete saving?" if the On save warning is on, and Modify asks "Are you sure you want to save changes ?" if the On modify warning is on. If the card on screen is a saved one, Add first warns you about duplicates and suggests Modify.

E-invoicing checks​

E-invoicing relies on the codes and names of countries and cities, so the program checks them on saving in these cases:

SystemCheck
Egyptian taxesOn the country card: Code is one of the country codes the authority accepts, otherwise the message "Invalid country code" appears. On the city card and the region card, if the option "Validate and submit information using Latin name" is on: Latin Name is not empty, otherwise "Invalid city name" or "Invalid region name" appears.
UAE taxes, if the option "Check requirements when saving general records" is onOn the country card: Code is an accepted country code. On a city card of a country whose code is AE: Code is one of the emirate codes accepted in the e-invoice settings. If it is not accepted, the program asks "Would you like help finding the appropriate code?". On Yes it opens a search window by name. If you pick a code there, the program puts it in Code and goes on saving. On No it does not save the card.

Delete rules​

After Delete the program asks for confirmation with "Are you sure you want to delete?". Then it does not delete the card in these cases:

  • A country that has cities: "Country is used in City Card".
  • A city that has regions: "City is used in Region Card".
  • A region used in a customer address: "Region is used in customer Address Card".
  • A region used in a restaurant driver card: "Region is used in Driver Card".

To delete a card that is in use, move what is under it to another card with the Merge Address Card tool, then delete it.

Messages​

MessageWhy it appearsWhat to do
Code is MissingCode is empty.Type the code.
Please enter the nameName is empty.Type the name.
Please enter countryCountry is empty on the city card.Choose the country.
Please enter cityCity is empty on the region card.Choose the city.
Code is used in another card. Card can't be saved!Code is used in another card. It appears under the title "Invalid value".Type another code.
Can't Save Card! The name is used in another card.Name or Latin Name is used in another card under the same parent.Change the name.
The country is used in another record! The record cannot be savedThe chosen standard country is linked to another country card.Choose Without or another country.
Invalid country codeEgyptian or UAE taxes: the country code is not accepted.Correct the code. With UAE taxes, click Yes to get help choosing the code.
An error as per the Egyptian Tax system requirements: Invalid city nameLatin Name is empty and the option is on.Type the Latin name.
An error as per the Egyptian Tax system requirements: Invalid region nameLatin Name is empty and the option is on.Type the Latin name.
Invalid emirate codeUAE taxes: the code of a city of the Emirates is not one of the allowed emirate codes.Click Yes and search for the code, or correct it.
You don't have the authority to save in the specified security levelYou lack the add level in the permission of this card.Ask for the permission.
You don't have the appropriate authority to perform this operationYou lack the modify or delete level.Ask for the permission.
Country is used in City CardThe country has cities.Move or delete the cities first.
City is used in Region CardThe city has regions.Move or delete the regions first.
Region is used in customer Address CardThe region has customer addresses.Merge it into another region.
Region is used in Driver CardThe region is set for a driver.Change the driver's region.

This page applies to alameen ERP 10, version 10.1.79.764.