Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BT-21 Invoice subject note #41

Closed
sarafacchinetti opened this issue Oct 24, 2017 · 3 comments
Closed

BT-21 Invoice subject note #41

sarafacchinetti opened this issue Oct 24, 2017 · 3 comments

Comments

@sarafacchinetti
Copy link

According to EN 16931-1 BT-21=Invoice note subject code (The subject of the textual note in BT-22)->
To be chosen from the entries in UNTDID 4451

How is this field mapped to UBL? Is the following example correct?

BT-21 -> <cbc:Note>#AAA#</cbc:Note>
where AAA= Goods item description in UNTDID 4451

It looks like BR-CL-19 is the business rule related to BT-21 but in EN16931-UBL-codes.sch it refers to Code allowance reason and in UBL\EN16931-UBL-model.sch it contains numbers instead of the 3 chars of UNTDID 4451.

Could you please have a check?

@sarafacchinetti
Copy link
Author

ok, code list 4451

@phax phax added this to the v1.0 milestone Apr 23, 2019
@AndreasPvd
Copy link
Contributor

Can you please show a complete example of how to use BT-21?
Accoring to the TS is is stated "...for the following textual note".
How to interpret this?

Is the first variant correct:

<cbc:Note>#AAA#Human readable description line one</cbc:Note>
<cbc:Note>#AAA#Human readable description line two</cbc:Note>
<cbc:Note>No subject code</cbc:Note>
<cbc:Note>#BBB#Human readable description other subject code</cbc:Note>

or the second one?

<cbc:Note>#AAA#</cbc:Note>
<cbc:Note>Human readable description line one</cbc:Note>
<cbc:Note>Human readable description line two</cbc:Note>
<cbc:Note>##</cbc:Note> <!-- this should bring an error, but how to -deactivate- subject code again -->
<cbc:Note>No subject code</cbc:Note>
<cbc:Note>#BBB#</cbc:Note>
<cbc:Note>Human readable description other subject code</cbc:Note>

@AndreasPvd AndreasPvd reopened this Jun 21, 2019
@oriol
Copy link
Collaborator

oriol commented Jun 25, 2019

Even if the cardinality of cbc:Note in UBL is 0..n, this is just for translation purposes: UBL has unbounded textual elements to allow for translating the text in different languages, but not to provide for an unbounded set of data elements.

In this case, there is a cardinality mismatch with the Norm: the Norm allows for a group of unbounded notes and in UBL you shall group them into a single cbc:Note element.

Regading your examples, the one that would fit is:

<cbc:Note>#AAA#Textual note</cbc:Note>

in case there is a code

or

<cbc:Note>Textual note</cbc:Note>

when there is no code.

@oriol oriol closed this as completed Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants