Skip to content

Commit

Permalink
set consultant id (issue #169)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Feb 5, 2025
1 parent 9d0fc97 commit 7a38eff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public String computeKey(ItemCollection invoice, String datevClientID) {
* @throws QueryException
*/
public ItemCollection findDatevExport(String datevKey) throws QueryException {
String query = "(type:workitem) AND ($taskid:1000) AND ($modelversion:datev-export-de-2*) ";
String query = "(type:workitem) AND ($taskid:1000) AND ($modelversion:datev-export*) ";
List<ItemCollection> resultList = documentService.find(query, 999, 0, "$modified", true);

for (ItemCollection export : resultList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ private void appendInvoice(ItemCollection invoice) throws PluginException {
datevConfig.getItemValue(DatevExportService.ITEM_DATEV_CLIENT_ID));
datevExport.setItemValue(DatevExportService.ITEM_DATEV_CLIENT_NAME,
datevConfig.getItemValue(DatevExportService.ITEM_DATEV_CLIENT_NAME));

// set consultant ID
datevExport.setItemValue(DatevExportService.ITEM_DATEV_CONSULTANT_ID,
datevConfig.getItemValue(DatevExportService.ITEM_DATEV_CONSULTANT_ID));

datevExport.setItemValue(DatevExportService.ITEM_DATEV_BOOKING_PERIOD, keyPeriode);
datevExport.setItemValue("name", key);
}
Expand Down

0 comments on commit 7a38eff

Please sign in to comment.