Change the default payment terms

Changes the default payment terms for new customers, while existing customers keep theirs.

What you ask

Search Acme

finance

2
  1. Lisa

    @devboxes new customers should get 30 day payment terms instead of 14, existing customers keep theirs. can you make the change?

  2. devboxes APP

    #68 makes 30 days the default for new customers, and existing customers keep their terms. A new test covers both cases, and all tests pass.

    Opened #68

What devboxes does

  1. Find where the default is set

    • devboxes lists every place that sets or reads the default.
  2. Check existing customers

    • You decide together how existing customers keep their terms.
  3. Change the default

    • A test shows that new customers get the new terms and existing customers keep their own.
  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

Default new customers to 30-day payment terms #68

Open

devboxes[bot] wants to merge 1 commit into main from devboxes/payment-terms-30

devboxes Bot reviewed 2 minutes ago View reviewed changes

devboxes Bot left a comment Author

Existing customers keep their stored terms. Only new customers get 30 days.

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/customers/defaults.ts +1 −1
  • test/payment-terms.test.ts +27 −0

Good for

Startups

Ask devboxes to change the default payment terms

Get started for free