fixes #9
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "fixes"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Added a new config flag SyncServiceEnabled and updated startup flow to run the background auto-sync timer only when this flag is true.
Implemented session-safe duplicate meal protection in scan flow using production hrms.lunch_order checks by employee_serial_number, order_date (today), meal_name, and location_site_id, returning "Meal already taken" when the same meal is already consumed.
Updated sync behavior for reliability: immediate sync attempt after local save when production is reachable, and duplicate-aware manual sync that marks local unsynced records as synced when the meal already exists in production.
Why
Prevent same-meal double consumption while still allowing different meals in the same day.
Support controlled operations where auto-sync can be disabled (syncService = false) for offline/manual scenarios.
Avoid endless retries for already-posted rows by treating production duplicates as successful sync outcomes.