removed testIndicator in migration from v1 to v2

This commit is contained in:
Jochen Stärk
2019-08-09 18:44:43 +02:00
parent 21b081f180
commit 6cb647cd47
6 changed files with 13 additions and 17 deletions

View File

@@ -124,7 +124,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider, IProfileProvider {
byte[] res = zugferdData;
StringWriter sw = new StringWriter();
/*StringWriter sw = new StringWriter();
Document document=null;
try {
document = DocumentHelper.parseText(new String(zugferdData));
@@ -140,13 +140,17 @@ public class ZUGFeRD2PullProvider implements IXMLProvider, IProfileProvider {
} catch (IOException e) {
Logger.getLogger(ZUGFeRD2PullProvider.class.getName()).log(Level.SEVERE, null, e);
}
*/
return res;
}
private BigDecimal getTotalPrepaid() {
return trans.getTotalPrepaidAmount();
if (trans.getTotalPrepaidAmount()==null) {
return new BigDecimal(0);
} else {
return trans.getTotalPrepaidAmount();
}
}
private BigDecimal getTotalGross() {

View File

@@ -63,7 +63,12 @@ Migrated by Mustangproject XSLT
<!-- xsl:template match="//*[local-name() = 'HeaderExchangedDocument']">
<xsl:copy> <xsl:apply-templates select="@*|node()" /> </xsl:copy> </xsl:template> -->
<!-- attribute rename -->
<!-- element remode -->
<xsl:template match="//*[local-name() = 'TestIndicator']">
<!-- Testindicator element has been removed -->
</xsl:template>
<!-- element rename -->
<xsl:template match="//*[local-name() = 'SpecifiedExchangedDocumentContext']">
<xsl:element name="rsm:ExchangedDocumentContext">
<xsl:apply-templates select="@*|node()" />