Accepted offer to one invoice in easybill
When an offer is accepted in easybill, this flow checks for an invoice already made from it, then converts, completes and sends one. If one exists, it asks first.
The prompt
When an offer is marked accepted in easybill, check whether that customer already has an invoice converted from this offer. If there's none, convert the offer to an invoice, complete it so it gets its number, email it to the customer, and add a note with the invoice number to the Pipedrive deal whose ID is on the offer. If an invoice from this offer already exists, ask our billing lead in Slack, with Keep the existing invoice and Convert again buttons, and wait for the answer before doing anything.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Offer updated in easybill Starts the flow whenever a document changes in easybill, and reads its type, status, customer and number.
- Accepted offer? Only an offer marked accepted goes on. Any other change ends the run here.
- Look for an invoice from this offer Lists the customer's invoices in easybill and picks out any converted from this offer, with its number, date, amount and whether it is paid.
- Already invoiced? With no earlier invoice, the offer goes straight to conversion. When one exists, the billing lead is asked first.
- Ask the billing lead The billing lead gets a Slack message naming the offer and the invoice already there, with two buttons, Keep the existing invoice and Convert again.
- Wait for the billing lead's answer The run waits for the click. Convert again goes on to conversion, and Keep the existing invoice stops here with a reply in the Slack thread naming the invoice that stands.
- Convert the offer to an invoice Makes a new invoice from the offer, completes it so it gets its number, and emails it to the customer's address in easybill. The offer itself stays as it is.
- Note the invoice on the Pipedrive deal When the offer's External ID field holds a Pipedrive deal ID, adds a note to that deal with the invoice number and the offer number.
Before you turn it on
- Enter your easybill API key, and connect your Slack and Pipedrive accounts.
- Copy the URL of the block Wait for the billing lead's answer into the flow setting Answer link. The Slack buttons open it.
- Pick your Slack channel in the two Slack steps.
- Put the Pipedrive deal ID in the External ID field of each offer you create in easybill. An offer without one is still invoiced and sent, with no note on a deal.