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
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 thanSchema::CAC
https://github.com/CleverIT/UBL_invoice/blob/master/src/classes/TaxScheme.php#L36
Thanks for all your help!