SShortSingh.
Back to feed

Year-end cash receipts can misstate periods when bank deposit dates replace receipt dates

0
·5 views

A receipts report can place $840 in the wrong year while still passing a test that sums the full dataset. The problem arises when a bank import supplies the only date available, since a bank records when a deposit posted rather than when customers handed over their checks. In a fictional example, one check arrives December 30, 2026, and another on January 4, 2027, but both are posted together as one deposit on January 4. The author recommends reporting three figures: receipts received in the period, deposits posted in the period, and checks received but not yet posted at period close. A Python and SQLite script demonstrates this with regression tests across December, early January, and the full period, and a negative test shows that filtering by deposit date misplaces the December money. The author advises keeping feed-only records in staging until a payment record with a true receipt date exists.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Paying Per Answer via Telegraph from Node, With Checks and Re-Buys When Wrong

A machine that buys data needs a way to pay per answer, a way to judge whether an answer is right, and another source to buy from when it is not. The Telegraph testnet provides payment and re-buying, and records every purchase publicly. A tutorial file of about 120 lines, using one dependency (viem), walks through building all three against the testnet node. The example addresses a case where two weather providers both returned confident, well-formed answers for a farm town, but one answered for the wrong location, which could mislead a spray drone. Setup requires Node 24, a testnet-only wallet funded with test tokens, and a deposit into the escrow contract, with each answer costing about one cent.

0
ProgrammingDEV Community ·

Node.js Image Review: Bounding Retention and Notifying Uploaders After Outcomes

The article explains how a logistics uploader's delivery photos can pile up storage, transfer, and processing costs when review pipelines keep full-size images. Its worked example assumes 10,000 photos a day at 4 MB each, showing a full review pass moves about 40 GB, versus 4 GB for a proposed 0.4 MB derivative. The author stresses that these are planning figures rather than measured results, and that a smaller derivative is only safe after checking that required text such as shipment labels survives OCR. Recommended practice includes queuing review work by internal image identifier, keeping originals in private storage behind short-lived access links, and treating link expiry as distinct from deletion. The Express request should return once the review work is durably accepted, and the uploader should be notified after both publish and reject outcomes.

0
ProgrammingDEV Community ·

Guide Explains Pitfalls in Parsing ANSI X9 BAI2 Bank Statement Files

A developer guide details how raw BAI2 (.bai) bank statements, used in corporate treasury and ERP integration, can be corrupted by naive comma-splitting parsers. It outlines the BAI2 record hierarchy, from file headers to control trailers, and explains how Funds Type codes shift column positions. The article also warns that slashes inside remittance text can truncate wire descriptions and that amounts must be scaled by currency decimal places. Finally, it recommends validating balance equations and control totals, and promotes a client-side browser converter and a GitHub spec repository.

0
ProgrammingDEV Community ·

Browser-Generated Calendar File for California DMV Transfer Deadlines

When a car is sold privately in California, the seller must file a Notice of Transfer and Release of Liability within 5 days, and the buyer must report the ownership change within 10 days, both counted from the day after the sale. A developer built a small browser-based calculator that computes these dates and exports them as an iCalendar (.ics) file to help users avoid missing them. The tool generates all-day events using date-only values, exclusive end dates, CRLF line endings, and stable unique identifiers to prevent duplicates on re-import. The file is created entirely in the browser through a Blob, so no sale data leaves the user's device. The article notes that this is general information rather than legal advice, and that the California DMV is the authoritative source for these rules.