payfrit-works-ios/PayfritWorks
Schwifty 54923ba341 fix: add hasCompleted guard to prevent double-completion race condition
If a user confirms cash payment AND a beacon triggers auto-complete at the
same time, two completion calls could fire. Added @State hasCompleted flag
that gates all completion paths (manual complete, beacon auto-complete, and
cash collection). Resets on error/cancel so user can retry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 22:10:56 +00:00
..
Assets.xcassets Add ios-marketing idiom for App Store icon display 2026-02-10 19:37:59 -08:00
en.lproj Add IS_DEV flag, dev ribbon, new app icon, and UI improvements 2026-02-04 22:07:03 -08:00
Models Migrate API endpoints from CFML to PHP 2026-03-14 17:16:36 -07:00
Services fix: use backend-authoritative change amount for cash transactions 2026-03-24 00:41:10 +00:00
ViewModels Add role-aware cash collection for staff vs admin 2026-03-04 20:01:24 -08:00
Views fix: add hasCompleted guard to prevent double-completion race condition 2026-03-24 22:10:56 +00:00
Widgets Add IS_DEV flag, dev ribbon, new app icon, and UI improvements 2026-02-04 22:07:03 -08:00
Info.plist Add ios-marketing idiom for App Store icon display 2026-02-10 19:37:59 -08:00
PayfritWorksApp.swift Add IS_DEV flag, dev ribbon, new app icon, and UI improvements 2026-02-04 22:07:03 -08:00