Creates a draft Xero invoice for each won Pipedrive deal, due in 30 days, and emails finance to review it.
Uses
GmailPipedrive
Xero
Draft a Xero invoice when a Pipedrive deal is won
The gap between a deal closing and the invoice going out is where revenue waits. When a deal is won in Pipedrive, this drafts the invoice in Xero for the deal's value, made out to the deal's organization and due in 30 days.
Finance gets an email with the invoice number, the amount and links to review and send it. New customers are added to Xero as contacts along the way.
deal.When a deal is won. Save it as deal.Finance team's emailSet
finance_email to blank.invoice.Create an invoice. Save it as invoice.
Contact name: deal.org_name
Unit amount: deal.valuedeal.titlefinance_email. Save it as email.Send an email to finance_email. Save it as email.
Subject: Draft invoice invoice.InvoiceNumber for deal.org_name is ready to reviewThe deal "@deal.title" was won by deal.owner_name, and a draft invoice is waiting in Xero for you to review and send.
Customer: invoice.contact_name
Invoice number: invoice.InvoiceNumber
Amount: invoice.total_display
Due: invoice.due_date_display
Open the invoice: invoic...