fix: correct polling conditions for eingangsDatum and buchungsDatum
Build and Push Multi-Platform Images / build-and-push (push) Successful in 38s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 38s
- Only set eingangsDatum when belegNummer is present - Import documents when buchungsDatum is set (revert inverted condition) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -220,7 +220,7 @@ export class AgrarmonitorPollingService implements OnModuleInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!amDoc.eingangsDatum) {
|
if (!amDoc.eingangsDatum && amDoc.belegNummer) {
|
||||||
const eingangsdatumField = ((doc.custom_fields as any[]) ?? []).find(
|
const eingangsdatumField = ((doc.custom_fields as any[]) ?? []).find(
|
||||||
(cf: any) => cf.field === EINGANGSDATUM_FIELD_ID,
|
(cf: any) => cf.field === EINGANGSDATUM_FIELD_ID,
|
||||||
);
|
);
|
||||||
@@ -233,7 +233,7 @@ export class AgrarmonitorPollingService implements OnModuleInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!amDoc.buchungsDatum) {
|
if (amDoc.buchungsDatum) {
|
||||||
try {
|
try {
|
||||||
let correspondentId: number | undefined;
|
let correspondentId: number | undefined;
|
||||||
const customer = customers.find((c) => Number(c.id) === amDoc.kundenId);
|
const customer = customers.find((c) => Number(c.id) === amDoc.kundenId);
|
||||||
|
|||||||
Reference in New Issue
Block a user