CleverIT / UBL_invoice

MIT License
36 stars 39 forks source link

Element '{urn:oasis...CommonAggregateComponents-2}ID': This element is not expected. #5

Open hillelcoren opened 6 years ago

hillelcoren commented 6 years ago

Hello again, getting very close :)

I'm using validatethis@simplerinvoicing.org to validate our XML but I'm seeing the following error:

<string>:79:0:ERROR:SCHEMASV:SCHEMAV_ELEMENT_CONTENT: Element '{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}ID': This element is not expected. Expected is one of ( {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}Name, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}TaxTypeCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}CurrencyCode, {urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}JurisdictionRegionAddress ).

I believe this line should be Schema::CBC rather than Schema::CAC

https://github.com/CleverIT/UBL_invoice/blob/master/src/classes/TaxScheme.php#L36

Thanks for all your help!

hillelcoren commented 6 years ago

FYI.. using this validator I see many other errors :(

http://peppol.helger.com/public/locale-en_US/menuitem-validation-bis2;jsessionid=A0EE0183AE7249D68613262A0F2E3BD1

baselbers commented 5 years ago

These issues will be resolved. Have a look at my fork. I will request a pull eventually. https://github.com/baselbers/UBL_invoice