# Party Address: Include GLN as an identifier type

**URL:** https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558
**Category:** Ideas
**Tags:** party
**Created:** [October 3, 2023, 7:58am UTC](https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558 "2023-10-03T07:58:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [October 3, 2023, 7:58am UTC](https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558/1 "2023-10-03T07:58:28Z")

</div>

I propose to add [GLN](https://www.gs1.org/standards/barcodes/application-identifiers/254?lang=en) (Global locator Number) to the list of identifiers for Addresses in Party module.

When receiving for example an order, the order may contain the GLN code and name of the store where goods should be delivered. But the store name (Address Party Name) is difficult to match against as it is not precise, in some places they may write it one way, in another place they may write it another way. But a numeric code can be matched exactly.

GLN are used not only by corporations that need to manage their locations, but also by anyone who has a GS1 license.  
Also it is universal, not just one country using this identifier.

From what I can tell, GLN’s can be checked by stdnum.gs1\_128 by prepending the type (254).  
Ex. `'(254)<gln number>`.  
This should introduce little additional complexity as stdnum is already used in party module.

My case is that I have a customer with 515 stores. And every time they send an order, the store name is written differently, some with address, some without, some stores in the same city are often confused and the wrong store receives the goods, etc. I told the customer that I will refuse further orders that arrive without an address, or I receive a list of stores with address, and that the name in the order coresponds with the name on the list. I received a list, and the names do not corespond, but the GLN is the same.

Please comment anyone already has extended by custom module, what your experiences are.  
Is it useful for anyone besides myself?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 3, 2023, 8:13am UTC](https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558/2 "2023-10-03T08:13:49Z")

</div>

Why not.  
It will be good to have a review of all the GS1 extension to see if there are other extensions that could be added.

Also we may think of a generic way to store GS1 extension. Maybe something like `gs1_128_<extension>` and so we check that the code is from the same extension.

---

<div class="post-metadata">

### Author: ![dotbit](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/dotbit/32/2093_2.png) [@dotbit](https://discuss.tryton.org/u/dotbit)
#### Post date: [October 3, 2023, 9:35am UTC](https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558/3 "2023-10-03T09:35:23Z")

</div>

> [@ced](#):
>
> It will be good to have a review of all the GS1 extension to see if there are other extensions that could be added.

Yes. There certainly are GS1 application identifiers to be added, but utility and complexity must be weighed in the review. There are 520 extensions total so it seems to me the weighing needs to be very selective.

> [@ced](#):
>
> something like `gs1_128_<extension>`

In address we have type and code.  
Do you mean to have the type be `gs1_128_254` and the gln number in `Code`, or to have `gs1_128_254_<glncode>` in `Code`?

Which module should implement this generic check? Ir? A gs1 module?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 3, 2023, 9:43am UTC](https://discuss.tryton.org/t/party-address-include-gln-as-an-identifier-type/6558/4 "2023-10-03T09:43:58Z")

</div>

> [@dotbit](#):
>
> Do you mean to have the type be `gs1_128_254` and the gln number in `Code`, or to have `gs1_128_254_<glncode>` in `Code`?

`gs1_128_254` should be the type.

> [@dotbit](#):
>
> Which module should implement this generic check? Ir? A gs1 module?

This is for party module as it is the one that defines identifiers.
