The system, as outlined in a lawsuit filed by the New York State attorney general, was as simple as it was flawed.

A pizza is ordered from Domino’s. A pizza is made. A pizza is delivered.

The workers who assembled and delivered the pie clock their hours on a computer system, and those workers are then paid.

But for years, according to the lawsuit against the corporate franchiser that owns Domino’s Pizza, the computer system used by franchises across the state systematically undercounted hours worked by employees, shortchanging them hundreds of thousands of dollars.

The lawsuit, announced on Tuesday, was the latest salvo in a campaign by the attorney general, Eric T. Schneiderman, against what he says is a pattern of corporations shortchanging low-wage workers.