Giter VIP home page Giter VIP logo

Comments (3)

sarafacchinetti avatar sarafacchinetti commented on May 24, 2024

ok, code list 4451

from einvoicing-en16931.

AndreasPvd avatar AndreasPvd commented on May 24, 2024

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>

from einvoicing-en16931.

oriol avatar oriol commented on May 24, 2024

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.

from einvoicing-en16931.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.