Use one synthetic invoice to check two exports

Build one dummy invoice with values that expose differences between two export formats, and compare the records after both destinations import them.

A purple box feeds two trays from one sheet of paper.

A preview can display an invoice correctly while one of its exports drops the leading zero on the reference. A second export might interpret the amount in whole units rather than cents. Use a single synthetic invoice to check both paths before handing either file to a customer.

Choose values that make a mismatch visible

Give the fixture a reference such as 0048-A, a display name such as Maple, North and a total of 1234 cents in a test record explicitly set to USD. Use a field example such as Room "B" if both destinations accept notes. Pick a fixture that fits the two schemas, and use dummy parties and amounts throughout.

For the first destination, define the expected imported reference, name and decimal amount. For the second, define the same meanings using its actual keys and units. If the CSV target expects a decimal point, it should see twelve dollars and thirty-four cents. If a JSON integration expects integer cents, 1234 preserves the same value.

RFC 4180 documents common CSV conventions, including quoting a field containing a comma and doubling a double quote inside a quoted field. An individual tool can use a different dialect, so check its stated separator and encoding before relying on a fixture.

Check the record after import

Import each file into a disposable test environment or parse it with the same component used by the destination. Inspect the resulting values and types. Counting columns in a text editor would miss a reference changed to a number or an amount interpreted in the wrong units.

Keep the original fixture and expected values with the export. A teammate can run the same comparison after changing a header, separator or field mapping. The file can look perfectly orderly either way. The result to keep is an imported record with the right meaning.