A grease hauler logs pickups of 280.1 and 219.9 US gallons for route batch TAMPA-1124. The disposal facility records 480.0 gallons. The dispatcher has a 20.0-gallon gap to investigate even though the completed manifest reached its recipients on time.

Record US gallons Integer tenths
Pickup P-014 280.1 2,801
Pickup P-015 219.9 2,199
Disposal ticket GWF-4872 480.0 4,800
Pickup minus disposal 20.0 200

Store the unit the ticket actually records

Pass the source values as decimal strings. The reconciler validates the single decimal place and converts each value to an integer before adding or subtracting. That keeps a comparison such as a 0.1-gallon reading against a 0.1-gallon tolerance exact. A positive gap means pickup volume exceeds disposal volume. A negative gap means the reverse. A route with no ticket has an unknown gap.

Give each load or batch its own route ID and use it on both sides of the join. The reconciler rejects duplicate disposal IDs, including a replay of an identical row. If two facilities reuse ticket numbers, prefix each ticket ID with its facility code before import. A ticket for an unknown route appears in the orphan list and contributes zero gallons to the known routes.

Run the route reconciliation

Run this from the repo root with Node.js 20 or later. It uses the same zero-dependency module as the browser demo. MIT source repository

node --input-type=module <<'JS' import assert from 'node:assert/strict' import { formatGallons, reconcileManifests } from './src/index.js' const routeId = 'TAMPA-1124' const pickupDate = '2026-11-24' const ticket = { id: 'GWF-4872', routeId, disposalDate: '2026-11-24', gallons: '480.0', providedDate: '2026-11-26', } const input = { asOf: '2026-11-28', pickups: [ { id: 'P-014', routeId, pickupDate, gallons: '280.1' }, { id: 'P-015', routeId, pickupDate, gallons: '219.9' }, ], disposals: [ticket], } const [route] = reconcileManifests(input).routes assert.equal(route.gapTenths, 200) assert.equal(route.tickets[0].dueDate, '2026-12-24') assert.equal(route.tickets[0].status, 'on-time') assert.throws(() => reconcileManifests({ ...input, disposals: [ticket, ticket] }), /duplicate/i) const secondTicket = { ...ticket, id: 'GWF-4873', gallons: '20.0', providedDate: null } const settled = { ...input, disposals: [ticket, secondTicket] } const onDeadline = reconcileManifests({ ...settled, asOf: '2026-12-24' }).routes[0] const afterDeadline = reconcileManifests({ ...settled, asOf: '2026-12-25' }).routes[0] assert.equal(onDeadline.gapTenths, 0) assert.equal(onDeadline.tickets[1].status, 'pending') assert.equal(afterDeadline.tickets[1].status, 'overdue') assert.equal(afterDeadline.ready, false) console.log(`Initial volume gap: ${formatGallons(route.gapTenths)} US gal`) console.log(`After second ticket: ${formatGallons(onDeadline.gapTenths)} US gal`) console.log(`Second manifest: ${onDeadline.tickets[1].status} on Dec 24, ${afterDeadline.tickets[1].status} on Dec 25`) JS 
Initial volume gap: 20.0 US gal After second ticket: 0.0 US gal Second manifest: pending on Dec 24, overdue on Dec 25 

Florida Statutes § 403.0741(3)(d) gives haulers 30 days after disposal to provide the completed, signed service manifest to the originator and to the county and municipality where the originator is located. Record providedDate when delivery reaches the last required recipient. The reconciler tracks volume and delivery independently, so a second ticket can settle the gallons while its paperwork is still due. Local ordinances can impose additional requirements. Florida Legislature statute text

Load the sample in the browser and add the second disposal ticket to see the volume and paperwork statuses change independently. Interactive GitHub Pages demo · Companion Gist

GreaseManifest's $9.00 One-Time Route Pass unlocks reconciliation and deadline PDFs plus pickup and disposal ticket CSVs for one route dataset. Use LAUNCH20 at checkout for $7.20. Hauler Fleet Yearly is $59/yr. GreaseManifest · Florida 30-day grease trap manifest guide

For the same kitchen's exhaust inspection schedule, see HoodCert.