diff --git a/api/migrations/094_fmcsa_ifta_reminded.sql b/api/migrations/094_fmcsa_ifta_reminded.sql new file mode 100644 index 0000000..94838bf --- /dev/null +++ b/api/migrations/094_fmcsa_ifta_reminded.sql @@ -0,0 +1,11 @@ +-- Track which interstate carriers have been sent the IFTA quarterly-return +-- reminder this cycle, so the daily IFTA cron never double-sends within a quarter. +-- The IFTA campaign builder resets this column at the start of each new quarter's +-- reminder window (see build_ifta_quarterly_campaign.py). + +ALTER TABLE fmcsa_carriers + ADD COLUMN IF NOT EXISTS ifta_reminded_at TIMESTAMPTZ; + +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_fmcsa_carriers_ifta_reminded + ON fmcsa_carriers (ifta_reminded_at) + WHERE ifta_reminded_at IS NULL; diff --git a/data/trucking_campaigns/ifta_quarterly_reminder.html b/data/trucking_campaigns/ifta_quarterly_reminder.html new file mode 100644 index 0000000..f8d12ab --- /dev/null +++ b/data/trucking_campaigns/ifta_quarterly_reminder.html @@ -0,0 +1,38 @@ +
+{{ .Subscriber.Attribs.company }},
DOT# {{ .Subscriber.Attribs.dot_number }}
If you run interstate, your IFTA fuel-tax return for {{ .Subscriber.Attribs.ifta_quarter }} is coming due. Miss it and you face:
+TODAY ONLY - {{ .Subscriber.Attribs.coupon_pct }}% OFF
+We file your IFTA quarterly return for $109 $65.
+Use code {{ .Subscriber.Attribs.coupon_code }} at checkout.
+Expires {{ .Subscriber.Attribs.coupon_expires }}.
+We file your IFTA quarterly return for $109.
+Send us your miles and fuel by state - we calculate and file. No portals, no math.
+We do the math for you.
+Send us your total miles and gallons by jurisdiction for the quarter. We calculate the tax owed for every state you ran in, prepare the return, and file it. You just review and we handle the rest - so you can get back to driving.
+Or call us directly at (888) 411-0383.
+Performance West Inc.
DOT Compliance Services