payfrit-api/api/menu
John Mizerek 04d09cfc4e Fix item prices returning as strings instead of floats in JSON
MySQL PDO returns DECIMAL/FLOAT columns as strings, causing json_encode
to emit them as JSON strings ("9.99") instead of numbers (9.99).
Android's Gson Map parsing fails the as? Number cast on strings,
defaulting to 0.0. Cast Price to (float) before building the response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 17:24:57 -07:00
..
clearAllData.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
clearBusinessData.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
clearOrders.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
debug.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
getForBuilder.php Cast prices to float in getForBuilder.php 2026-03-15 15:06:42 -07:00
items.php Fix item prices returning as strings instead of floats in JSON 2026-03-16 17:24:57 -07:00
listCategories.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
menus.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
saveCategory.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
saveFromBuilder.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
updateStations.php Initial PHP API migration from CFML 2026-03-14 14:26:59 -07:00
uploadHeader.php Remove all Lucee references — uploads now live under /opt/payfrit-api 2026-03-14 22:26:52 -07:00
uploadItemPhoto.php Remove all Lucee references — uploads now live under /opt/payfrit-api 2026-03-14 22:26:52 -07:00