Accounting Scheduled Tasks

Background jobs that generate daily web-fulfillment accounting postings and clean up unfinished draft postings

The Accounting scheduled tasks generate the daily web-fulfillment postings and remove draft postings left behind by an interrupted save. Both tasks do nothing unless Posting enabled is on in the accounting configuration.

Available Tasks

TaskDescriptionType
Web Fulfillment PostingPost the previous day's web and click & collect payment transactions for every storeDelta
Orphaned Posting CleanupRemove draft postings that were never completedDelta

Overview

POS postings are built when a register's Z-report is closed and need no scheduled task. Web-fulfillment postings are built by a scheduled task:

  1. Posting - Web Fulfillment Posting books the previous accounting day when it runs at or after the cutoff hour
  2. Cleanup - Orphaned Posting Cleanup removes drafts left by an interrupted save

Configuration Requirements

Both tasks read the tenant's accounting settings:

  • accountingSettings.postingEnabled - Must be on for either task to do anything
  • accountingSettings.webFulfillmentPostingEnabled - Must also be on for Web Fulfillment Posting
  • accountingSettings.webFulfillmentPostingCutoffHour - Hour from which the previous day is posted
  • accountingSettings.draftOrphanTimeoutMinutes - Age at which a draft posting is removed

Task TypeRecommended ScheduleReason
Posting tasks0 * * * * (every hour)Posts on the first run at or after the cutoff hour; later runs pick up late transactions
Cleanup tasks0 * * * * (every hour)Drafts are rare and cleanup is lightweight

On this page