Update Cargosoft Fix Agent
This commit is contained in:
parent
3a3843fd04
commit
deb6a73984
2 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
- Fix Cargosoft DATEV Import - Korektur des Rechnungsdatums / Jahr
|
||||
- Neuer Rest Service für Korrektur von Cargsoft Ausgangsrechnungen
|
||||
|
||||
http://localhost:8080/api/cargosoft/fix/5
|
||||
https://alexander-logistics.office-workflow.de/api/cargosoft/fix/100
|
||||
|
||||
### 1.2.14
|
||||
|
||||
|
|
|
|||
|
|
@ -131,6 +131,8 @@ public class CargosoftMigrationRestService implements Serializable {
|
|||
for (ItemCollection doc : result) {
|
||||
|
||||
Date invoiceDate = doc.getItemValueDate("invoice.date");
|
||||
doc.setItemValue("invoice.date.wrong", invoiceDate);
|
||||
|
||||
// Convert to Calendar
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(invoiceDate);
|
||||
|
|
@ -140,7 +142,7 @@ public class CargosoftMigrationRestService implements Serializable {
|
|||
doc.setItemValue("invoice.date", calendar.getTime());
|
||||
|
||||
documentService.save(doc);
|
||||
log = log + doc.getUniqueID() + "\n";
|
||||
log = log + doc.getUniqueID() + " " + invoiceDate + " ==> " + calendar.getTime() + "\n";
|
||||
|
||||
// break!
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue