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-150 is not mapped #33

Open
ThomasEscam opened this issue Nov 14, 2024 · 3 comments
Open

BT-150 is not mapped #33

ThomasEscam opened this issue Nov 14, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ThomasEscam
Copy link

From the CII we have the BT-150
image

But when we convert this CII file to an UBL one, the attribute is missing.
image

@phax phax self-assigned this Nov 14, 2024
@phax phax added the bug Something isn't working label Nov 14, 2024
@phax
Copy link
Owner

phax commented Nov 14, 2024

Thanks for pointing that out - I will investigate :)

@phax
Copy link
Owner

phax commented Nov 17, 2024

Okay, so BT-150 is the Item price base quantity unit of measure code

  • In CII it is mapped to /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossPriceProductTradePrice/ram:BasisQuantity/@unitCode
  • In UBL it is mapped to /Invoice/cac:InvoiceLine/cac:Price/cbc:BaseQuantity/@unitCode

@phax
Copy link
Owner

phax commented Nov 17, 2024

Okay, I look in more detail based on changes for #27 where I already handled BT-150.
The problem (I think) is, that BT-150 is only mapped for ram:GrossPriceProductTradePrice but not for ram:NetPriceProductTradePrice as you are using in your example.

grafik

If you know ask the "Why?" question, I must admit, I don't know. Also didn't find something helpful in the EN16931 issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants