Class DatevController
java.lang.Object
org.imixs.workflow.datev.controller.DatevController
- All Implemented Interfaces:
Serializable
The DatevController is used to configure the DatevScheduler. This service is
used to generate datev export workitems.
The Controller creates a configuration entity: type=configuration name=datev
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.imixs.workflow.faces.fileupload.FileUploadController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>getBuchungsexportByBelegdatum(org.imixs.workflow.ItemCollection workitem) Liefert alle rechnungen zu einem DATEV Export sortiert nach Belegdatum.List<jakarta.faces.model.SelectItem>Diese Methode liefert eine liste von SelectItem Elementen mit den Werten des Buchungsschlüssels zurück.org.imixs.workflow.ItemCollectionorg.imixs.workflow.ItemCollectionItemcollection containing file import dataList<jakarta.faces.model.SelectItem>Returns costcentre1 from the Corporate Space as an ArrayList of SelectItems objects.getKostenstelle1Read(String value) Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei sucheList<jakarta.faces.model.SelectItem>Returns costcentre2 from the Object Space as an ArrayList of SelectItems objects.getKostenstelle2Read(String value) Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suchegetName()voidinit()This method load the config entity after postContstruct.org.imixs.workflow.ItemCollectionLoads the scheduler configuration entity by name.org.imixs.workflow.ItemCollectionThis method saves the DATEV configuration.voidsetConfiguration(org.imixs.workflow.ItemCollection configuration) voidsetImportData(org.imixs.workflow.ItemCollection importData) voidThis method imports a DATEV Kreditoren.csv attachment added to the ItemCollection 'importData'
-
Field Details
-
fileUploadController
@Inject protected org.imixs.workflow.faces.fileupload.FileUploadController fileUploadController
-
-
Constructor Details
-
DatevController
public DatevController()
-
-
Method Details
-
init
@PostConstruct public void init()This method load the config entity after postContstruct. If no Entity exists than the ConfigService EJB creates a new config entity. -
getName
-
getConfiguration
public org.imixs.workflow.ItemCollection getConfiguration() -
setConfiguration
public void setConfiguration(org.imixs.workflow.ItemCollection configuration) -
loadConfiguration
public org.imixs.workflow.ItemCollection loadConfiguration()Loads the scheduler configuration entity by name. The method returns null if no scheduler configuration exits.- Returns:
-
saveConfiguration
public org.imixs.workflow.ItemCollection saveConfiguration()This method saves the DATEV configuration. The method ensures that the following properties are set to default.- type
- name
- $writeAccess
- $readAccess
- Returns:
- Throws:
org.imixs.workflow.exceptions.AccessDeniedException
-
getBuSchluesel
Diese Methode liefert eine liste von SelectItem Elementen mit den Werten des Buchungsschlüssels zurück.Der Buchungschlüssel wird in folgendem Format im config entity DATEV_CONFIGURATION gespeichert
BEZEICHNUNG | DATEV_BU_SCHLUESSEL | PROZENTSATZ- Returns:
- Throws:
Exception
-
getKostenstelle1
Returns costcentre1 from the Corporate Space as an ArrayList of SelectItems objects. A param entry can be devided by a | into a label and a value component. Example:17431 | Blaue Stadt I 17435 | Blaue Stadt I 17400 | Overhead/General<f:selectItems value="#{datevController.costcentre2}" />- Returns:
- Throws:
Exception
-
getKostenstelle1Read
Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche- Parameters:
value-- Returns:
-
getKostenstelle2
Returns costcentre2 from the Object Space as an ArrayList of SelectItems objects. A param entry can be devided by a | into a label and a value component. Example:17431 | Blaue Stadt I 17435 | Blaue Stadt I 17400 | Overhead/General<f:selectItems value="#{datevController.costcentre2}" />- Returns:
- Throws:
Exception
-
getKostenstelle2Read
Gibt die Bezeichnung der Kostenstelle mit nummer - so wie bei suche- Parameters:
value-- Returns:
-
getImportData
public org.imixs.workflow.ItemCollection getImportData()Itemcollection containing file import data- Returns:
-
setImportData
public void setImportData(org.imixs.workflow.ItemCollection importData) -
startImport
public void startImport() throws org.imixs.workflow.exceptions.PluginExceptionThis method imports a DATEV Kreditoren.csv attachment added to the ItemCollection 'importData'It may be possible but not typically that a user uploads multiple files to import. The method can handle multiple file uploads.
For each file the method calls the DatevImportService to import the data
- Throws:
org.imixs.workflow.exceptions.PluginException
-
getBuchungsexportByBelegdatum
public List<org.imixs.workflow.ItemCollection> getBuchungsexportByBelegdatum(org.imixs.workflow.ItemCollection workitem) Liefert alle rechnungen zu einem DATEV Export sortiert nach Belegdatum.- Parameters:
workitem-- Returns:
-