From 3cd7bbb8b7dfc1b5603904ab15d8cc0b37a26bc1 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Fri, 13 Feb 2026 12:05:24 -0800 Subject: [PATCH] Fix tax rate lookup and add price extraction from __OO_STATE__ - Tax rate: Use Zippopotam (free, no key) to get state, then lookup from built-in state+local rate tables instead of API Ninjas - Prices: Extract prices from Toast __OO_STATE__ MenuItem objects when visible HTML prices are missing Co-Authored-By: Claude Opus 4.5 --- api/setup/analyzeMenuUrl.cfm | 19 +++++++-- api/setup/lookupTaxRate.cfm | 78 +++++++++++++++++++++++------------- 2 files changed, 66 insertions(+), 31 deletions(-) diff --git a/api/setup/analyzeMenuUrl.cfm b/api/setup/analyzeMenuUrl.cfm index 07fe80b..dcb75bb 100644 --- a/api/setup/analyzeMenuUrl.cfm +++ b/api/setup/analyzeMenuUrl.cfm @@ -285,9 +285,10 @@ - + + @@ -339,6 +340,12 @@ + + + + + + @@ -355,9 +362,10 @@ - + + @@ -370,8 +378,13 @@ + + + + + - + diff --git a/api/setup/lookupTaxRate.cfm b/api/setup/lookupTaxRate.cfm index 2e15120..d148454 100644 --- a/api/setup/lookupTaxRate.cfm +++ b/api/setup/lookupTaxRate.cfm @@ -3,7 +3,30 @@ - + + + + + + + @@ -24,44 +47,43 @@ - - - + + - + - - - + + + + - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - + + + - + - + - +