diff --git a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
index 5364a7b6de..96ac741c2a 100644
--- a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
+++ b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
@@ -74,14 +74,14 @@ this repository contains the full copyright notices and license terms. -->
- ${line.quantity * this.type_sign}
+ ${abs(line.quantity)}
${TradeTax(tax.tax)}
- ${line.amount}
+ ${line.amount * this.type_sign}