automation.engineer

1SecondCopy / Finance / System 08 of 09

2022Recorded work

Founder

Client invoicing & cost reporting

Prepare reviewable bills from completed work and connect project activity with the source data needed to understand cost.

Noah’s contribution
Invoice logic, data exports and reporting requirements
Historical stage
Draft invoice workflows; reporting under reconciliation
Part of the business
1SecondCopy overview ↗
Tools across the recorded versions
  • ClickUp
  • Stripe
  • PandaDoc
  • Harvest
  • Google Sheets
  • Make / Integromat
Inside this system
  1. Workflow
  2. Key records
  3. The business problem: delivered work was not yet a bill
  4. Establish the manual checks before automating them
  5. Resolve customer and invoice IDs without duplicating the whole flow
  6. Keep an invoice as a reviewable object
  7. Join production work to its cost
  8. Treat missing data as an operating task
  9. Connected systems

The workflow

How the system
connects.

Follow the main path and its branches. Select a step for context, or switch to the technical map for implementation detail.

  • Production billing fields
    The task supplies the generation flag, billing email, final word count and rate.
  • Eligibility filter
    Only records with the required flag and billing fields continue through this trigger.
  • Excluded from this run
    Missing prerequisites stop this trigger from preparing a line item.
  • Search Stripe customer
    Look up the billing customer and attempt to set the reusable customer-ID variable.
  • Reuse customer ID
    An existing customer supplies its identifier to the common downstream path.
  • Create missing customer
    Create the customer when absent, then replace the empty customer-ID variable.
  • Common customer reference
    Both lookup outcomes resolve to one customer ID instead of duplicating downstream steps.
  • Search for the invoice
    Look for a reusable invoice associated with that customer.
  • Reuse invoice ID
    An existing invoice supplies the reference used for the next article charge.
  • Create a draft invoice
    When none is found, create a draft and set the shared invoice-ID variable.
  • Common invoice reference
    Existing and newly created drafts feed the same invoice-line operation.
  • Append the article charge
    Calculate the line from final word count and rate, and attach it to the draft invoice.
  • Clear the generation flag
    Unsetting the flag prevents another pass through this configured status trigger.
  • Review the accumulated draft
    Check commercial accuracy before manually sending the consolidated invoice.

Key records

The information
that carries forward.

How the information connects
RecordInformationPurpose
Billing relationshipCustomer ID and draft invoice IDReuse the destination across conditional creation paths
Pricing inputsBilling unit, rate and eligible final word countBuild a reviewable invoice line
Production-cost relationshipClickUp task and Harvest project / time entriesJoin work to costs and identify missing values

Implementation / 01

The business problem: delivered work was not yet a bill

A content order could be priced per word or per article. Some agreements allowed overages; others capped the billable amount. Free samples, revised work and already-invoiced articles also needed to be distinguished from new billable output. A generic “completed” status could not answer all of those questions.

The work addressed two related needs: turn eligible production records into reviewable invoice drafts, and connect production activity with the information needed to understand its cost. They shared source records, but an invoice draft and a profitability report served different operating decisions.

Implementation / 02

Establish the manual checks before automating them

An earlier Stripe procedure began by confirming the billing contact with the person managing the client. The contact used for normal communication was not assumed to be the correct invoice recipient. The operator selected eligible articles, checked their word counts and calculated line items using the agreed rate.

The instruction specifically excluded internal checklist text from billable content. Another handover compared submitted work with prior invoices and excluded an unpaid sample. Drafts could remain open while further articles were completed. These procedures expose the commercial decisions that the later automation needed to preserve.

Implementation / 03

Resolve customer and invoice IDs without duplicating the whole flow

In the status-triggered Stripe version, a ClickUp internal-status change initiated a webhook only when the invoice flag and required billing fields were present. The scenario retrieved the task again and checked the end word count and rate before continuing.

Noah explained a reusable-variable approach to conditional creation. The scenario searched for a customer and set a customer-ID variable. If the search returned no customer, a creation branch replaced the empty value with the new ID. Downstream modules could use that one reference instead of maintaining a full duplicate branch for every possibility.

The invoice lookup used the same pattern: reuse an existing invoice ID or create a draft and retain its ID, then attach the new line item. Afterward the workflow cleared the generation flag to avoid a repeat through that configured trigger. This was a specific loop control; it was not demonstrated as universal protection against concurrent or repeated events.

Implementation / 04

Keep an invoice as a reviewable object

The Stripe design accumulated line items in a draft so the business could review and send a consolidated invoice rather than issue a separate invoice for each article. Scheduled batch sending was discussed as a possible extension. The walkthrough described the MVP as ready for client setup, with invoice flags still inactive.

A separate PandaDoc generator used a different operating path: bulk-tag the relevant ClickUp tasks, run the scenario manually and populate a document template. Some template fields remained static. In the demonstration, a per-article agreement needed a manual correction because the generated quantity and rate assumed word-based pricing.

These were distinct implementations for different billing needs. Each prepared information for review while keeping responsibility for commercial accuracy with a person.

Implementation / 05

Join production work to its cost

The reporting export selected ClickUp tasks and used a stored Harvest project ID to retrieve the corresponding project and time entries. Multiple contributors could have entries on the same piece. The calculation multiplied each entry’s hours by its rate and summed the results into a production-cost total before writing a spreadsheet row.

A separate requirements brief described the revenue side: client payment type and rate, ordered versus final word count, and whether overages were payable. The Harvest client ID provided another cross-system relationship. Noah specified those requirements and offered structured exports; a collaborator was asked to help construct the calculations.

Noah configured the export and defined the reporting requirements. The calculation brief described further dashboard and accounting work, rather than a completed reporting rollout.

Implementation / 06

Treat missing data as an operating task

The walkthrough identified missing word counts, uncertain flat-rate agreements and anomalous production costs. Operations staff were asked to inspect the source records, clarify pricing assumptions and flag discrepancies. Another monthly reporting procedure kept actual and estimated revenue separate.

Historical delivery dates had also become unreliable because some work was archived later. An archive timestamp therefore could not safely stand in for the moment a client received the article. That prevented the retrospective data from supporting a verified turnaround-time result.

The useful outcome is a concrete billing and reconciliation design: persistent relationships, editable drafts, visible commercial exceptions and source-data checks. Completed collections, audited profitability and measured savings are not established by these walkthroughs.

Within 1SecondCopy

The work around
this system.