fixing a failed unit test
This commit is contained in:
@@ -969,10 +969,16 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
||||
}
|
||||
|
||||
private String buildPaymentTermsXml() {
|
||||
final IZUGFeRDPaymentTerms[] paymentTerms = trans.getExtendedPaymentTerms();
|
||||
|
||||
ArrayList<IZUGFeRDPaymentTerms> paymentTerms = new ArrayList<IZUGFeRDPaymentTerms>(Arrays.asList(trans.getExtendedPaymentTerms()));
|
||||
|
||||
IZUGFeRDPaymentTerms izpt= trans.getPaymentTerms();
|
||||
if (izpt!=null) {
|
||||
paymentTerms.add(izpt);
|
||||
}
|
||||
|
||||
String paymentTermsXml = "";
|
||||
if (paymentTerms == null || paymentTerms.length == 0) {
|
||||
if (paymentTerms.size() == 0) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user