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

Peppol 3.0 BR-64 : The Item standard identifier (BT-157) shall have a Scheme identifier. #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dragonfly4
Copy link

@dragonfly4 dragonfly4 commented Oct 25, 2024

The Item standard identifier (BT-157) shall have a Scheme identifier.
https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/BR-64/

Context
cac:InvoiceLine/cac:Item/cac:StandardItemIdentification/cbc:ID | cac:CreditNoteLine/cac:Item/cac:StandardItemIdentification/cbc:ID

Test
exists(@schemeID)

Usage
/ ubl:Invoice / cac:InvoiceLine / cac:Item / cac:StandardItemIdentification / cbc:ID
/ ubl:CreditNote / cac:CreditNoteLine / cac:Item / cac:StandardItemIdentification / cbc:ID

Add attributes for the setStandardItemIdentification function.
Extension of PR #55

Code Example

$productItem = (new \NumNum\UBL\Item)
->setStandardItemIdentification('874512958741', [ 'schemeID' => '0088' ]);

XML result

<cac:StandardItemIdentification>
    <cbc:ID schemeID="0088">874512958741</cbc:ID>
/cac:StandardItemIdentification>

schemeID value should come from the ICD list
https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/

The Item standard identifier (BT-157) shall have a Scheme identifier.

Add attributes for the setStandardItemIdentification function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant