97 lines
3.4 KiB
Java
97 lines
3.4 KiB
Java
package com.alexanderlogistics;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.logging.Logger;
|
|
|
|
import org.imixs.workflow.ItemCollection;
|
|
import org.imixs.workflow.engine.DocumentService;
|
|
import org.imixs.workflow.engine.WorkflowService;
|
|
import org.imixs.workflow.faces.data.WorkflowController;
|
|
|
|
import jakarta.enterprise.context.ConversationScoped;
|
|
import jakarta.inject.Inject;
|
|
import jakarta.inject.Named;
|
|
|
|
/**
|
|
* Der ZollListController dient dazu in einer Zoll Liste die Rechnungen
|
|
* anzuzeigen,
|
|
* für die noch Zollabrechnungen erforderlich sind.
|
|
*
|
|
* Diese List wird aus einem Abgleich einer Cargosoft Datei erstellt.
|
|
*
|
|
* @author rsoika
|
|
*
|
|
*/
|
|
@Named("zollListController")
|
|
@ConversationScoped
|
|
public class ZollListController implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
public static final int TASK_ERSTELLUNG = 1000;
|
|
|
|
private static Logger logger = Logger.getLogger(ZollListController.class.getName());
|
|
|
|
private String lastDbtrNumber = null;
|
|
|
|
private String currencyFilter = "-";
|
|
private String lastCurrencyFilter = null;
|
|
|
|
private List<ItemCollection> invoiceList = null;
|
|
|
|
@Inject
|
|
protected WorkflowController workflowController;
|
|
|
|
@Inject
|
|
protected WorkflowService workflowService;
|
|
|
|
@Inject
|
|
ZahlungseingangService zahlungseingangService;
|
|
|
|
@Inject
|
|
protected DocumentService documentService;
|
|
|
|
/**
|
|
* Diese Methode ist eine Dummy Methode die nur mal 3 Rechnungen simmuliert.
|
|
*
|
|
* Später wird diese Methode irgend was anderes machen.
|
|
*
|
|
*
|
|
* @return
|
|
*/
|
|
@SuppressWarnings("unchecked")
|
|
public List<ItemCollection> getInvoices() {
|
|
invoiceList = new ArrayList<ItemCollection>();
|
|
|
|
// dummy1
|
|
|
|
invoiceList.add(new ItemCollection()
|
|
.setItemValue("invoice.text", "LA-HOL-2401-002")
|
|
.setItemValue("invoice.atc", "ATC400058750120242452")
|
|
.setItemValue("dbtr.name", "D18317 Big Belly Solar GmbH")
|
|
.setItemValue("invoice.ZOLL", 18.45)
|
|
.setItemValue("invoice.EUST", 0)
|
|
.setItemValue("invoice.number", ""));
|
|
|
|
invoiceList.add(new ItemCollection()
|
|
.setItemValue("invoice.text", "LA-HOL-2401-003")
|
|
.setItemValue("invoice.atc", "ATC400058750120242450")
|
|
.setItemValue("dbtr.name", "D18317 Big Belly Solar GmbH")
|
|
.setItemValue("invoice.ZOLL", 100.45)
|
|
.setItemValue("invoice.EUST", 0)
|
|
.setItemValue("invoice.number", ""));
|
|
|
|
invoiceList.add(new ItemCollection()
|
|
.setItemValue("invoice.text", "LA-PAP-2401-003")
|
|
.setItemValue("invoice.atc", "345345")
|
|
.setItemValue("dbtr.name", "D18006 GPI BERLIN GMBH")
|
|
.setItemValue("invoice.ZOLL", 253.4)
|
|
.setItemValue("invoice.EUST", 0)
|
|
.setItemValue("invoice.number", ""));
|
|
|
|
return invoiceList;
|
|
}
|
|
|
|
}
|