45 Commits

Author SHA1 Message Date
anekdotin 60f9eee202 fix: widen house_factor precision in Customer_estimate_gallons model
Updated DECIMAL(5,2) to DECIMAL(7,4) to match the DB column (now altered
to NUMERIC(7,4)) and the auto.py model — prevents calibrated K-factors from
being silently truncated to 2 decimal places on read/write.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 15:05:38 -04:00
anekdotin 3066754821 feat: add admin settings system and improve customer/pricing endpoints
Add centralized admin settings (company info, social links, quick calls,
sidebar visibility toggles, theme, logo upload) with singleton pattern
and full CRUD API. Add active/dedicated customer count endpoints for
dashboard stats. Fix automatic assignment route to use PUT instead of
GET. Refactor oil price endpoint to use schema serialization with null
safety.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:45:06 -05:00
anekdotin 6d5f44db55 feat: 5-tier pricing, market ticker integration, and delivery stats
Major update spanning pricing, market data, and analytics:

- Pricing: Replace single-price service fees with 5-tier pricing for
  same-day, prime, and emergency deliveries across create/edit/finalize
- Market: Add Ticker_Price and CompanyPrice models with endpoints for
  live commodity prices (HO, CL, RB) and competitor price tracking
- Stats: Add daily/weekly/monthly gallons endpoints with multi-year
  comparison and YoY totals for the stats dashboard
- Delivery: Add map and history endpoints, fix finalize null-driver crash
- Schema: Change fill_location from INTEGER to VARCHAR(250), add
  pre_load normalization for customer updates, fix admin auth check

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:54:30 -05:00
anekdotin 3f311980db updated readme.txt 2026-01-18 19:03:16 -05:00
anekdotin 059e142116 Working site 2026-01-05 08:44:09 -05:00
anekdotin 701d9a9cc0 added hot water 2025-10-06 21:14:01 -04:00
anekdotin 10d82cf81a working auto 2025-09-27 00:13:20 -04:00
anekdotin deaf2f111a working auto 2025-09-26 20:30:30 -04:00
anekdotin 5d96031992 Updated models 2025-09-23 22:38:25 -04:00
anekdotin 2209145e74 Working API CHARGING! 2025-09-20 15:33:36 -04:00
anekdotin fd906a574b Working payment accopunts 2025-09-19 17:27:44 -04:00
anekdotin 8c146d24f6 Good progression 2025-09-18 13:02:14 -04:00
anekdotin 908100514f Working flow authorize 2025-09-16 12:45:32 -04:00
anekdotin 8d9ecf6935 Adding authnet not tested 2025-09-15 15:30:16 -04:00
anekdotin f0544779bb Updated forms and search 2025-09-14 11:59:53 -04:00
anekdotin 382e12671b Updated charge close to working 2025-09-09 18:26:08 -04:00
anekdotin a280194079 Added service plan. Password change 2025-09-06 12:28:37 -04:00
anekdotin 9a2f9a6564 Added price for service 2025-08-26 17:19:52 -04:00
anekdotin 652947b30a tons fixes 2025-08-25 17:59:00 -04:00
anekdotin 3e259a530c Added calender 2025-08-21 17:53:25 -04:00
anekdotin b97d729ef1 updated page amount 2025-07-28 12:05:14 -04:00
anekdotin 98a2c94083 bug fixes. added auto table 2024-12-28 15:54:08 -05:00
anekdotin e6f85ff014 small fixes 2024-12-23 18:10:18 -05:00
anekdotin 86ec25a499 added maps 2024-11-20 18:01:14 -05:00
anekdotin 5e5b9274e1 added pending waiting 2024-10-30 17:04:58 -04:00
anekdotin b3f0e85574 updated forms 2024-10-24 11:51:14 -04:00
anekdotin 5649294be0 major update 2024-10-17 17:01:24 -04:00
anekdotin d0641950f9 dynamic database 2024-10-07 22:58:17 -04:00
anekdotin d91460fa82 added promo 2024-10-07 17:35:22 -04:00
anekdotin fec638a5c8 added checks emergency fixed bugs 2024-09-27 14:13:44 -04:00
anekdotin 0e827053de added checks and finalize ticket 2024-09-26 20:01:13 -04:00
anekdotin c456ef301c added emergency price 2024-09-26 08:48:37 -04:00
anekdotin d7c809af82 added description 2024-09-18 12:48:12 -04:00
anekdotin d77c4e2478 Stats working 2024-08-06 11:08:29 -04:00
anekdotin 93fc535eaf small coding fixes 2024-07-29 13:46:07 -04:00
anekdotin bc1e38c327 Added automatic stuff 2024-07-24 17:24:00 -04:00
anekdotin 2a266eea23 Updated auto 2024-07-02 16:56:18 -04:00
anekdotin ca3ebf9f9b Updated auto 2024-06-25 17:57:53 -04:00
anekdotin 2433dbb447 Updated 2024-05-16 14:36:14 -04:00
anekdotin 2a4804ecb2 Fixed errors 2024-04-04 16:37:57 -04:00
anekdotin 6fab39bf86 working money and delivery dates 2024-03-29 19:56:59 -04:00
anekdotin 666d0895e4 unsure 2024-03-28 10:36:00 -04:00
anekdotin 52172812cb Changes 2024-03-14 14:11:09 -04:00
anekdotin 001b8218bd Office driver api get data works 2024-03-12 18:28:22 -04:00
anekdotin b71bbe2dc5 first commit 2024-02-28 16:10:40 -05:00