DEV Community

Discussion on: Rebuilding Shopify's Finances summary from the Admin GraphQL API, line by line

Collapse
 
bananafestdestiny profile image
Walker Brown •

That is a real gap and I had not looked for it. We reconcile one store, and every assumption that survives on one store is untested by definition.

The Quebec case is the sharp end: if provincial tax is computed on the pre-GST price, then a reconciler that derives tax from a single effective rate will be wrong in a way that still balances to the penny on every other province, which is the worst kind of wrong — it only fails where nobody is looking.

Taking the suggestion literally: a dedicated assertion on the tax lines rather than on the order total, so a multi-line tax block has to match line by line and not in aggregate. If you have a store where the lines split two or three ways, I would rather test against that shape than invent a fixture for it.