fix: import documents without buchungsDatum instead of skipping them
Build and Push Multi-Platform Images / build-and-push (push) Successful in 32s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 13:28:27 +02:00
parent 4016802c1e
commit 036d135109
@@ -231,8 +231,9 @@ export class AgrarmonitorPollingService implements OnModuleInit {
this.logger.log(`Eingangsdatum für ${interneBelegnummer} gesetzt`);
}
}
result.skipped++;
} else if (amDoc.buchungsDatum) {
}
if (!amDoc.buchungsDatum) {
try {
let correspondentId: number | undefined;
const customer = customers.find((c) => Number(c.id) === amDoc.kundenId);
@@ -262,8 +263,6 @@ export class AgrarmonitorPollingService implements OnModuleInit {
this.logger.error(`${msg}: ${err instanceof Error ? err.message : err}`);
result.errors.push(msg);
}
} else {
result.skipped++;
}
await this.delay(500);