Address system: различия между версиями

Материал из WiKi - UserSide
Нет описания правки
Нет описания правки
Строка 78: Строка 78:


[[Файл:2023-06-01_17-38.png|thumb|800px|center]]
[[Файл:2023-06-01_17-38.png|thumb|800px|center]]
== Address units ==
<youtube>https://youtu.be/EojBhZ1Et34</youtube>
"Settings" => "Addresses".
This section is used to add address units manually. It should also be considered that adding new address units is possible via "[[Import of manuals]]", when working with [[Supported billings|billings]], as well as via [[API]].
[[Файл:2023-06-01_17-48.png|thumb|800px|center]]
[[Файл:2023-06-01_17-48_1.png|thumb|800px|center]]
[[Файл:2023-06-01_17-50.png|thumb|800px|center]]
[[Файл:2023-06-01_17-55.png|thumb|800px|center]]
[[Файл:2023-06-01_17-57.png|thumb|800px|center]]
[[Файл:2023-06-01_17-59.png|thumb|800px|center]]
[[Файл:2023-06-01_18-00.png|thumb|800px|center]]
[[Файл:2023-06-01_18-01.png|thumb|800px|center]]
[[Файл:2023-06-01_18-02.png|thumb|800px|center]]

Версия от 15:26, 1 июня 2023

en | ru

ATTENTION: This section is relevant for ERP "UserSide" versions 3.13 and later. For versions earlier than 3.13 - use separate pages Regions and Settings - Addresses.

In ERP "UserSide" most of the objects (users, communication nodes, FOCL etc.] have different addresses or may be without address.

The concept of Address/address unit and 'Building/house' must be clearly differentiated. An address is simply a name. A sign on a building, if you prefer. A building is a complete, unified structure. One large building can have many addresses at the same time (e.g. a house which is standing on 4 streets at once). In the same way - one address may hide many buildings (for example - a property complex, polygon or an area with many buildings).

In ERP "UserSide" we have tried to make all address hierarchies of different countries flexible. Cities can include other cities, streets can include districts and so on.

The scope of objects in the system depends on the availability of a particular address object to the current employee. This makes it possible, for example, to forbid employees of some localities to see users of other localities.

If the objects are not linked to an address, they are available to all employees who have the option "Objects without address" selected.


Starting from version 3.18:

In the form for editing an address unit, the address type selector displays its token in addition to the type name.

Address unit tokens

"Address unit tokens" are used for interaction with external systems, for use in APIs, for operation of billing interaction modules.

For example, in the ERP "UserSide" you can add the types of address units "City" and " Village" and specify the token "city" for both of them. In this case, when interacting with billing, the address objects from these address units will be equal and all will be considered as settlements. For interaction with billing, the following tokens are used: "province", "district", "city", "area", "street", and "house".

Types of address units

" Settings => "Addresses" => "Types of address units"

This section is used to create types of address units - they can be completely optional - countries, continents, streets, avenues, water areas, etc.

Despite the fact that the configuration of the address hierarchy is very flexible, there are still basic categories that can be assigned to these address units (e.g. street, locality) for compatibility with external systems.

In the "Object name template" field, you can specify how the name of an address unit of this type will look in the system. This is usually mainly required for buildings. TWIG markup is used. For example:

Address of the building: Kyiv Petrovsky district, Gagarina street 25 

 template:
 {{ city }}, {{ street }}, {{ house }} 
 return: Gagarina Street 25, Kyiv
 
 template: {{ street }}, {{ house }} 
 return: Gagarina Street 25
 
 template: {{ city }}, {% if area %} {{ area }}, {% endif %} {{ street }}, {{ house }}
 return: Kyiv, Moskovsky district, Petrova 17
 if the address unit does not have a higher district, the address will be: Kyiv, Gagarina Street, 25 (thus the district name and comma will be omitted)
 

In the "Prefix" or "Postfix" field, you can specify abbreviated names for object types - e.g. "c.", "st.", "v.", etc.

Alias types

"Settings => "Addresses" => "Alias types"

Aliases allow you to add additional names to address units. This is particularly useful for streets and localities which have changed names. Alternatively, names can be specified in several languages.

Once the alias types have been set, it will be possible to fill in these aliases in the address bar.

Address units

"Settings" => "Addresses".

This section is used to add address units manually. It should also be considered that adding new address units is possible via "Import of manuals", when working with billings, as well as via API.