ConnectingEurope / eInvoicing-EN16931

Validation artefacts for the European eInvoicing standard EN 16931
Other
127 stars 52 forks source link

codes_validation_BR-CL-23_weakness #388

Closed petredanoiu closed 3 days ago

petredanoiu commented 1 month ago

hey

this @unitCode

19800.00 is not a value according to the UN/ECE Recommendation 20 with Rec 21 extension but schematron validation is successful. seems to be a weakness in the evaluation of rule BR-CL-23. It's correct? if so, what should be done to remove the problem? thank you
petredanoiu commented 1 month ago

hey ...again in fact this is the value for unitCode in xml that pass from validation

19800.00
petredanoiu commented 1 month ago

image

midran commented 3 days ago

Code TN exists in recommedation 21 and is the unit for a tin. According to specification, when recommendation 20 is extended with recommendation 21 then the rec21 codes shall be prefixed with an X (point 2a in the intro to rec 20). Hence the code XTN. Not an error.

phax commented 3 days ago

The problem is the 
 afterwards which corresponds to \r\n or CR+LF. I assume it is stripped in normalize-space or so....