Watch the Skonto deadline
Before an incoming invoice goes to approval, the card “Watch the Skonto deadline” reads its Skonto terms, the invoice’s own or else the vendor’s, with no script and no AI. While the Skonto date is at least 2 working days away (“Skonto still reachable”), the invoice goes straight to approval; when it is closer or past (“Skonto missed”), accounting hears of it first. The approval has the Skonto date as its deadline: it reminds 2 working days and escalates 1 working day before it, and its task shows “Skonto until” with the date, and the hint the Skonto amount. Without Skonto terms (“No Skonto”), it reminds as usual from when it opens.
The workflow
Section titled “The workflow”The workflow starts for every document of the type incoming-invoice. Its file workflow.yaml:
$schema: 'https://docs.acriva.de/schemas/workflow.schema.json'format: 1schemaVersion: 7sdk: '1.0.0'key: skonto-watchname: Skontofrist überwachentemplate: customtrigger: documentType: incoming-invoicefields: []start: skontosteps: - kind: skonto name: skonto label: Skontofrist überwachen leadDays: 2 next: approval onMissed: missed onNone: approval - kind: notification name: missed label: Skonto verpasst melden recipients: - kind: role role: Buchhaltung notice: forInformation next: approval - kind: humanTask name: approval label: Freigabe vor dem Skontodatum taskKind: approve assignees: [] fallback: kind: role role: Geschäftsführung options: remindAfterWorkingDays: 2 escalateAfterWorkingDays: 5 escalationTarget: kind: role role: Buchhaltung excludeRequester: true excludeActorsOfSteps: [] pickFile: false deadline: value: step: skonto key: skontoDate remindBeforeWorkingDays: 2 escalateBeforeWorkingDays: 1 next: approved onRejected: rejected - kind: end name: approved label: Freigegeben outcome: approved - kind: end name: rejected label: Zurückgewiesen outcome: rejected