AiAccount Auto-Push Cron
When enabled, the system auto-pushes yesterday's data at chosen hour daily — platform + all active bloggers, all 8 endpoints.
Configuration
"System → Settings → AiAccount → Auto Push"
- Tick "Enable Auto Push"
- Pick "Push Hour (MYT 24h)" — default 02:00 (off-peak)
- Click "Save AiAccount Configuration"
Trigger Mechanism
- System ticks every hour
- If current hour matches setting + not run today → trigger push
- Push scope = yesterday's (prev day 00:00 - 23:59) data
Push Order
- Platform 4 endpoints: Sales Invoice → Sales Receipt → Expense Bill → Expense Payment
- All active bloggers (by blogger_id order) each 4 endpoints: POS Sales Invoice → POS Sales Receipt → KOL Bill → KOL Payment
Failure Handling
Each push is try/catch isolated — single failure doesn't affect others. Common cases:
- "No data to push": empty day — downgraded to info log, no alert
- HTTP 400: master data missing — writes audit log, visible in "Finance & Reports → AiAccount Sync" status pill
- HTTP 5xx: AiAccount service issue — writes audit log, auto-retried next day (AiAccount dedupes)
Re-Run Safety Guarantee
AiAccount auto-dedupes by (Invoice/Bill Number + Customer/Supplier) — same day's data re-pushed multiple times still enters ledger only once. So even if 02:00 push failed yesterday, today's manual re-push or next cron is safe.
Disable
Just untick "Enable Auto Push". Active bloggers can still manually sync from blogger side.
View Logs
"System → Audit Logs" search entity_type=aiaccount_push to see each cron-triggered push record. AiAccount backend Import History for complete push history (with detailed errors).