All error codes › UBL-DT-01
UBL-DT-01 – Amounts shall be decimal up to two fraction digits
Erroren16931applies to Romanian e-Factura
What the rule says
Amounts shall be decimal up to two fraction digits
How to fix it
Remove the attribute from the element; EN 16931 does not use it.
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: //*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]
Test (XPath):
string-length(substring-after(.,'.'))<=2
Related rules
UBL-DT-06Binary object elements shall contain the mime code attributeUBL-DT-07Binary object elements shall contain the file name attributeUBL-DT-08Scheme name attribute should not be presentUBL-DT-09Scheme agency name attribute should not be presentUBL-DT-10Scheme data uri attribute should not be presentUBL-DT-11Scheme uri attribute should not be presentUBL-DT-12Format attribute should not be presentUBL-DT-13Unit code list identifier attribute should not be presentUBL-DT-14Unit code list agency identifier attribute should not be presentUBL-DT-15Unit code list agency name attribute should not be presentUBL-DT-16List agency name attribute should not be presentUBL-DT-17List name attribute should not be present