# Commerce in Sales

Raise a Commerce quote or order straight from a Sales deal, follow it on the deal's work stream, and print deal fields in your documents.

Source: https://support.rework.com/article/commerce-in-sales

> **In plain words:** Your salespeople work in the **Sales** app, where each opportunity is a **deal**. With this integration they can create a Commerce **quote** (an offer) or **order** (a confirmed sale) without leaving the deal. The record is built in Commerce, linked to the deal, and shown as a card on the deal's **work stream** (the deal's timeline of activities). Deal details such as the deal value or a custom field can also be printed in your quote documents. New to these words? See [Commerce basics](https://support.rework.com/article/commerce-basics).

**Where to find it:** Sales > open a deal > **Work stream** card > **Quote** or **Order** tab. **Who can use it:** people with the **Deal commerce** permission on the pipeline. Turning it on is for pipeline managers.

## Before you start

- At least one active quote service (for quotes) or order service (for orders) in Commerce. See [Services](https://support.rework.com/article/commerce-services).
  
- The deal's customer exists as a customer account in Commerce, so the quote can be addressed to it. See [Customer accounts](https://support.rework.com/article/commerce-customer-accounts).
  

## Turn it on for a pipeline

Quotes and orders are off on a new pipeline. A pipeline manager turns them on once.

1. In Sales, choose the pipeline, then click **Settings** at the bottom of the left sidebar. The **Sales Pipeline · Settings** dialog opens.
   
2. Under **Setup**, click **Work stream**. The page lists the activities people can record on this pipeline.
   
3. Under **Additional**, turn on **Quote**, **Order** or both.
   
4. Click **Save changes**. You see **Saved**.
   
5. Under **Access & display**, open **Permissions** and give **Deal commerce** ("Quotes, orders, subscriptions") to the roles that should raise and see them. Pipeline owners and deal owners always have every permission.
   

Turning a switch off later only stops new records. Cards already on deals stay visible.

## Create a quote from a deal

1. Open the deal in Sales.
   
2. In the **Work stream** card, click the **Quote** tab. A large panel titled **New quote** opens.
   
3. Under **Choose a quote service**, pick the service. It sets the numbering, approval flow and document template, and cannot be changed afterwards. With only one service, it is already chosen.
   
4. Click **Continue**. Commerce creates a draft quote linked to the deal and opens the quote builder in the same panel.
   
5. Build the quote as usual: products, prices, terms. See [Create a quote](https://support.rework.com/article/commerce-create-quote).
   
6. Close the panel with the **X** when you are done.
   

These come from the deal automatically:

| 
From the deal

 | 

In the quote

 |
| --- | --- |
| 

Deal name

 | 

Quote name

 |
| 

Customer account

 | 

Customer

 |
| 

Deal contact

 | 

Primary contact

 |
| 

Deal currency

 | 

Currency

 |

Products are not copied from the deal. Add the lines in the quote builder.

> **Note:** The draft is created when you click **Continue**. If you close the panel early, the draft stays in Commerce under the quote service.

Create an order the same way with the **Order** tab and **Choose an order service**. Subscriptions are not created from a deal. Turn an accepted quote or order into a subscription in Commerce. See [Create a subscription](https://support.rework.com/article/commerce-create-subscription).

## The card on the deal

Each quote or order appears as a card on the deal's work stream. Click its name to open the record in Commerce.

| 
Card

 | 

Shows

 |
| --- | --- |
| 

Quote

 | 

Customer, amount, expiry date, a status such as **Draft**, **Published** or **Accepted**, and flags **Approved**, **Signed**, **Paid**

 |
| 

Order

 | 

Customer, amount, delivered and billed percentages, a status such as **Confirmed** or **In progress**, and flags **Approved**, **Paid**, **Delivered**

 |
| 

Subscription

 | 

Customer, amount per cycle, next bill date, term end and cycle count

 |

The card updates as the record changes in Commerce. When a quote becomes an order, and the order becomes a subscription, each arrives as its own card on the same deal, so the deal shows the whole sale.

Example: a salesperson raises a quote for 12,000 from the deal "Northwind renewal". The customer accepts it, and finance converts it into an order. The deal now shows two cards: the quote, marked **Accepted**, and the order, showing **billed 0%** until the first invoice goes out.

## Print deal fields in a document

Documents and emails can show deal details, for example the deal owner or a custom field such as "Project code".

1. In Commerce, open the quote's document in the [Document Studio](https://support.rework.com/article/commerce-document-studio), or the **Send quote** dialog.
   
2. Click **Insert variable** (the braces button) next to a text field.
   
3. Type to search, or look under the **Deal** group, and pick a field.
   

The value is filled in from the deal. A draft quote picks up the deal's latest values each time it is opened, previewed or published. After a quote is published, values it already printed stay as they were.

To update the values on purpose, click **Refresh source fields** on the record (in the **Source** card of a quote, or the **Linked** card of an order). On a published quote you are asked first, because the customer's link shows the new values. You see "Source fields refreshed" with the number of values that changed.

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

There is no **Quote** or **Order** tab on the deal

 | 

The switch is off on the pipeline, or you lack **Deal commerce**

 | 

Ask a pipeline manager to turn it on and grant the permission

 |
| 

"Commerce quotes are not enabled for you on this pipeline"

 | 

Same as above

 | 

Same as above

 |
| 

"No quote service available"

 | 

Commerce has no active quote service you can use

 | 

Ask a Commerce admin to create one. See [Services](https://support.rework.com/article/commerce-services)

 |
| 

"Account not found" when opening the panel

 | 

The deal's customer cannot be read in Commerce

 | 

Check the deal's account, or that you can see it in Commerce

 |
| 

The **Deal** group is missing in **Insert variable**

 | 

The record was not created from a deal

 | 

Only records raised from a deal carry deal fields

 |
| 

The card shows an old status

 | 

The card shows what Commerce last reported

 | 

Reload the deal. The record in Commerce is always current

 |
