-
Notifications
You must be signed in to change notification settings - Fork 40
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
Two questions about UBLExtensionType #10
Comments
Hi! Thanks. ad 2) By default the default namespaces are present (see
alternatively you can build the complete namespace context as done in hth, Philip |
Hi Philip, For the 1) <cec:UBLExtensions>
<cec:UBLExtension>
<cec:ExtensionContent>
<aife:FactureExtension>
<aife:CategoryCode>XX</aife:CategoryCode>
</aife:FactureExtension>
</cec:ExtensionContent>
</cec:UBLExtension>
</cec:UBLExtensions> With a given enum for the XX value. I don't have any others informations about this aife:FactureExtension. In another way, can you give me a sample example code for doing the DOM element ? Pierre |
Hi Pierre! <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cec:UBLExtensions>
<cec:UBLExtension>
<cec:ExtensionContent>
<FactureExtension xmlns="urn:AIFE:Facture:Extension">
<CategoryCode>XX</CategoryCode>
</FactureExtension>
</cec:ExtensionContent>
</cec:UBLExtension>
</cec:UBLExtensions>
<cbc:ID>Dummy Invoice number</cbc:ID>
<cbc:IssueDate>2017-05-23</cbc:IssueDate>
<cac:AccountingSupplierParty />
<cac:AccountingCustomerParty />
<cac:LegalMonetaryTotal>
<cbc:PayableAmount currencyID="EUR">10</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:LineExtensionAmount currencyID="EUR">10</cbc:LineExtensionAmount>
<cac:Item />
</cac:InvoiceLine>
</Invoice> |
Hi Philip, Pierre |
Hi Pierre! |
Hi Philip,
Thank you for your great library.
If have to use a specific extension in this place :
So, if I understand the code, I must derive the CodeType class as made in HazardousCategoryCodeType and renamed it ?
How, can I add the nameSpace "xmlns:aife="urn:AIFE:Facture:Extension" in the output of the UBL21Writer ?
The text was updated successfully, but these errors were encountered: