Scenario
Some businesses have a requirement to create Quotes from previous Invoices. Doing this can be time consuming, especially if the Invoice has many product items - copying and recreating these can be a task in itself.
With North52 you can generate a Quote from an Invoice with the click of a button. What's more, using Decision tables, you can easily change parts of the process to match your custom requirements.
https://www.youtube.com/watch?v=t-A9qVrlSNI
Rules for creating Quotes from Invoices
| Rule # | Description |
|---|---|
| 1 | Add button to invoice form to process given logic |
| 2 | For the given invoice header, create a quote header record |
| 3 | Loop over all the invoice line items and create quote line items attached to the previously created quote header record |
North52 Decision Suite Solution
The North52 Decision Suite solution works like this:
- A Clientside - Calculation Formula is setup on the Invoice entity
- When triggered, the Formula will create a Quote and Quote line items using the Invoice and its equivalent line items
- A Quick Button will be setup on the Invoice which will trigger the Formula
Set up Formulas
Create Formula
- Create a new Decision Table of type ClientSide Calculation
- Set the Source Entity to Invoice
- Right-click on the Decision Table and select Insert > Insert Decision Table
- Right-click on the Decision Table and select Insert > Insert Decision Table
- Rename the 3 sheets to Create Quote, Create Quote Details and Open Quote
- You can rename the sheets by double clicking on the sheet label
Create Quote Sheet
This sheet will create the Quote using the Invoice fields. As the Potential customer field can be either a Contact or an Account, we will need to two different rows - one for Contact and one for Account.
- Right-click and select Set Sheet Options > Use Create Record
- Select columns C to N on the Decision Table
- Right click cell B2 and select Insert > Insert Action
- Note that if you have a build of North52 BPA prior to 562, the Actions may be inserted to the right and you will need to select Delete > Delete Column to remove the space
- Select cell A2
- Go to the Source tab and expand Source
- Find Customer Type and click on it
- Click on cell A4
- Type 'account', make sure to include the single quotes.
- Select cell B2, go to the Explore tab, expand Entities and find Quote
- Expand Quote and select Bill to Street 1
- Click on B4
- Go to the Source tab and click on Bill to Street 1
- Click on B5
- Go to Source tab and click on Bill to Street 1
- Repeat this process : matching the Quote fields to their corresponding Invoice fields as shown in the screenshot below.
- Note that Potential Customer is different; Type in cell N4: 'account

