Add a column to a finance export

Adds a field your accounting needs to an export as the last column, so the imports you already have keep working.

What you ask

Search Acme

finance

2
  1. Lisa

    @devboxes accounting needs the purchase order number in the invoice CSV, can you add it?

  2. devboxes APP

    #69 adds a po_number column at the end of the invoice CSV, so existing imports keep working. Invoices with a purchase order show the purchase order number in the new column. The tests pass.

    Opened #69

What devboxes does

  1. Find the export

    • devboxes finds the code behind the export and the tests that cover it.
  2. Find where the field is stored

    • Next, it works out where the field comes from and what happens when it's empty.
  3. Add the column last

    • The new column goes last, and every existing column stays as it was.
    • A test covers the header and both the filled and the empty case.
  4. Verify

    1. Install dependencies

    2. Test

    3. Lint

    4. If it fails

      1. Fix

        • The tests pass.
      2. Test again

      3. Lint again

  5. Publish

  6. Review

What you get back

acme / ledger

Add the purchase order number to the invoice CSV #69

Open

devboxes[bot] wants to merge 1 commit into main from devboxes/invoice-csv-po-number

devboxes Bot reviewed 2 minutes ago View reviewed changes

devboxes Bot left a comment Author

po_number is the last column, so existing imports read the same columns as before.

All checks have passed

3 successful checks

  • CI / Lint (pull_request) Details
  • CI / Typecheck (pull_request) Details
  • CI / Tests (pull_request) Details

This branch has no conflicts with the base branch

Merging can be performed automatically.

You can also merge this with the command line.

Files changed 2

  • src/invoices/csv-export.ts +4 −1
  • test/invoice-csv.test.ts +18 −2

Good for

Startups

Ask devboxes to add a column to a finance export

Get started for free