diff --git a/module-base/src/main/java/de/intranda/goobi/plugins/ZbzCalculation.java b/module-base/src/main/java/de/intranda/goobi/plugins/ZbzCalculation.java index 63bfb54..3448c40 100644 --- a/module-base/src/main/java/de/intranda/goobi/plugins/ZbzCalculation.java +++ b/module-base/src/main/java/de/intranda/goobi/plugins/ZbzCalculation.java @@ -102,6 +102,11 @@ public void readInvoiceProperties() { } } + // if the number of pages is still 0 try to count these + if (invoicePages_units == 0) { + invoicePages_units = process.getSortHelperImages(); + } + invoicePages_total = invoicePages_units * invoicePages_price; invoiceService_total = invoiceService_units * invoiceService_price; invoiceAdditionals_total = invoiceAdditionals_units * invoiceAdditionals_price; diff --git a/module-base/src/main/java/de/intranda/goobi/plugins/ZbzOrderDeliveryStepPlugin.java b/module-base/src/main/java/de/intranda/goobi/plugins/ZbzOrderDeliveryStepPlugin.java index 64c3eed..3fbc9bf 100644 --- a/module-base/src/main/java/de/intranda/goobi/plugins/ZbzOrderDeliveryStepPlugin.java +++ b/module-base/src/main/java/de/intranda/goobi/plugins/ZbzOrderDeliveryStepPlugin.java @@ -311,7 +311,7 @@ private Document createXmlDocumentOfContent(Fileformat ff) throws PreferencesExc // generally add the number of images for the process Element e4 = new Element("processFiles"); - e4.setText(String.valueOf(String.valueOf(p.getSortHelperImages()))); + e4.setText(String.valueOf(p.getSortHelperImages())); mainElement.addContent(e4); // add all properties