Package org.imixs.workflow.datev.export
Class DatevRefAdapter
- java.lang.Object
-
- org.imixs.workflow.datev.export.DatevRefAdapter
-
- All Implemented Interfaces:
org.imixs.workflow.Adapter,org.imixs.workflow.SignalAdapter
public class DatevRefAdapter extends Object implements org.imixs.workflow.SignalAdapter
Der DATEVRefAdapter verknüpft eine Rechnung mit einem DATEV Export zum aktuellen Kreiditor und der Buchungsperiode. Existiert aktuell kein offener DATEV Export für diesen Kreditor/Buchungsperiode, erzeugt der Adapter automatisch eine neue Prozessinstanz.Wurde die Rechnugn bereits einem DATEV Export zugeordnet passiert nichts.
Existieren innerhalb der Rechnung noch keien Detailbuchugnssätze (ChildItems) dann erzeugt der ADaper einen Default Buchungssatz . Zitat Herr Krieger: die leeren Felder könnte man z.B. immer mit 1370 an 70000 im Standard befüllen, dann weiß man welche Konten man in DATEV noch aufräumen muss?
9.6.2022 Herr Krieger: Die Rechnungen sollen NICHT nach Buchunsperiode zusammengefasst werden sonder nur anhand der Datev-client-id.
- Version:
- 1.0
- Author:
- rsoika
-
-
Field Summary
Fields Modifier and Type Field Description static StringERROR_CONFIGstatic StringERROR_MISSING_DATA
-
Constructor Summary
Constructors Constructor Description DatevRefAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.imixs.workflow.ItemCollectionexecute(org.imixs.workflow.ItemCollection document, org.imixs.workflow.ItemCollection event)This method finds or create the Datev Export and adds a reference ($workitemref) to the current invoice.protected List<org.imixs.workflow.ItemCollection>explodeChildList(org.imixs.workflow.ItemCollection workitem)converts the Map List of a workitem into a List of ItemCollectonsprotected voidimplodeChildList(org.imixs.workflow.ItemCollection workitem, List<org.imixs.workflow.ItemCollection> childItems)Convert the List of ItemCollections back into a List of Map elements
-
-
-
Field Detail
-
ERROR_MISSING_DATA
public static final String ERROR_MISSING_DATA
- See Also:
- Constant Field Values
-
ERROR_CONFIG
public static final String ERROR_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public org.imixs.workflow.ItemCollection execute(org.imixs.workflow.ItemCollection document, org.imixs.workflow.ItemCollection event) throws org.imixs.workflow.exceptions.AdapterException, org.imixs.workflow.exceptions.PluginExceptionThis method finds or create the Datev Export and adds a reference ($workitemref) to the current invoice.- Specified by:
executein interfaceorg.imixs.workflow.Adapter- Throws:
org.imixs.workflow.exceptions.PluginExceptionorg.imixs.workflow.exceptions.AdapterException
-
implodeChildList
protected void implodeChildList(org.imixs.workflow.ItemCollection workitem, List<org.imixs.workflow.ItemCollection> childItems)Convert the List of ItemCollections back into a List of Map elements- Parameters:
workitem-
-
explodeChildList
protected List<org.imixs.workflow.ItemCollection> explodeChildList(org.imixs.workflow.ItemCollection workitem)
converts the Map List of a workitem into a List of ItemCollectons
-
-