recorrected import to also still work with fx

This commit is contained in:
jstaerk
2022-01-02 17:49:13 +01:00
parent b5983a17f3
commit c62171e64d
2 changed files with 16 additions and 1 deletions

View File

@@ -572,7 +572,10 @@ public class ZUGFeRDImporter {
public String getAmount() {
String result = extractString("//*[local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation']/*[local-name() = 'DuePayableAmount']");
if (result == null || result.isEmpty()) {
result = extractString("//*[local-name() = 'SpecifiedTradeSettlementHeaderMonetarySummation']/*[local-name() = 'GrandTotalAmount']");
/* fx/zf would be SpecifiedTradeSettlementMonetarySummation
* but ox is SpecifiedTradeSettlementHeaderMonetarySummation...*/
result = extractString("//*[local-name() = 'GrandTotalAmount']");
}
return result;
}