# enterprise-guide-to-writing-custom-quotation-rules

> Learn how enterprise admins create custom quotation rules to calculate prices based on conditions.

- **URL**: https://www.coohom.com/helpcenter/enterprise-guide-to-writing-custom-quotation-rules
- **Locale**: en_US
- **Updated**: 2026-11-13

## Content

Enterprise quotation administrators need to define quotation rules on the custom quotation settings page, enabling the model to calculate prices based on different conditions.

For Users
=========

Enterprise Administrator

* Enterprise sub-accounts must be assigned a role such as **Kitchen and Bath/Custom Furniture/Door and Window Product and Quotation Admin** by the administrator. Once assigned, the sub-account can use pricing-related features.

![](https://qhstatic-sg-s3.coohom.com/image/png/1787221791779/09DACBFAA81DB368A96FAD565271AD44.png)

Entrance
========

In the enterprise backend, go to **Enterprise Catalog --- Custom Products --- Product Catalog --- Advanced** --- **Quote** , and click **Create a New Quotation Rule** in the upper right corner.

![](https://qhstatic-sg-s3.coohom.com/image/png/1786958963737/88C88522E42EA1F76884A35B6252F1CE.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786958970661/831647491AEB4C8ED72388BAF82360BE.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786958978508/C7041CBBE5C2C1005A2DA33B73F8EB87.png)

Writing a Quotation Rule
========================

The quotation rule configuration page is divided into two main sections: **Basic Info** and **The Calculation Rule**.

Basic Info
----------

Click **Create a New Quotation Rule** and fill in the basic information in the pop-up panel. The detailed fields are described below:

![](https://qhstatic-sg-s3.coohom.com/image/png/1786958990712/58244B9A9A48FD164AA95C447484D455.png)

|         Basic Info          |                                                                                                                                                          Description                                                                                                                                                          |
|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Rule Name                   | The name of this quotation rule.                                                                                                                                                                                                                                                                                              |
| Model Type                  | Indicates that this rule is specifically for quotation parametric models.                                                                                                                                                                                                                                                     |
| Quotation Mode              | The quotation method allows models to reference different quotation rules. Common quotation method setups include: * Type 1: Cost Price, Sales Price, Settlement Price * Type 2: Projected Area quotation, Linear Meter quotation, Unfolded Area quotation * Enterprises can also freely define their own quotation methods   |
| Model Quotation Category    | Parametric models can be bound to a model quotation category on the product details page. By selecting a "Model Quotation Category" here, you specify that this quotation rule applies to that category of parametric models.                                                                                                 |
| Material Quotation Category | Materials in the enterprise product library can be bound to a material quotation category. By selecting a "Material Quotation Category" here, you can ensure that for certain parametric models, when a material associated with this category is selected in the design tool, this quotation rule is used for the quotation. |

* **Example 1**

1. On the product details page, Model A is bound to the model pricing category "Test1," and Material B is bound to the material quotation category "Cabinet Material."

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959000268/E4722A371C15DF446E7010E49217D991.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959006386/9C618F939A991D935407B1BD9B7F86E8.png)

2. In the quotation rule, when the model quotation category is set to "Test1" and the material quotation category is set to "Cabinet Material," and a unit price is defined, the rule is created. Then, in the design tool, when a model with the "Test1" category is used with a material from the "Cabinet Material" category, the system will reference this backend quotation rule to calculate the sales unit price and generate a quotation.

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959014395/84E715E6A0663F64C279B4B144B7BABA.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959020180/34D5119C00BF87DB3964E41EA35BABEF.png)

* **Example 2**

Since the material quotation category is not a required field in the quotation rule, if no "Material Quotation Category" is selected, the model will reference the backend quotation rule and generate a price regardless of the material used.

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959036124/D99FA4F096DE8B5540B537092BC01A46.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959030305/E4722A371C15DF446E7010E49217D991.png)

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959044676/4CD69174D1984AB1B8137E6C6DD1F437.png)

Calculation Rule
----------------

1. Click **Create a New Quotation Rule** and configure the **Calculation Rule** in the pop-up panel. The detailed fields are described below:

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959051781/E66647AC08F73D239012F12E930C2299.png)

|   The Calculation Rule   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Unit                     | The pricing unit varies by model. For example, boards might be priced per square meter, while drawers might be priced per piece.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Quantity                 | You can enter a formula or a constant. Note that W, D, and H referenced in the pricing formula correspond to the model's output width, output depth, and output height, not the model's physical dimensions. The output width, depth, and height can be customized based on actual needs. The unit in the editor is MM, while the pricing unit is M; pay attention to unit conversion when using this.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Sale Unit Price          | Describes the model's sales unit price and supports expressions. You can reference various parameter variables in the sales unit price. **For parametric models, the variables that can be referenced are:** 1) Modeling variables: system paraments, basic paraments, custom paraments, and report paraments. Note: intermediate variables are not supported here. The variable reference format is "#variable name", e.g., #W, #D. ![](https://qhstatic-sg-s3.coohom.com/image/png/1786959061189/56A8D693F5F97214CBADDC348D7BEDF4.png) 2) Model attributes on the product details page: Model - Output Environment (#MN), Product Code - Output Environment (#PC), Custom Code (#customcode). 3) Configuration product custom attributes/custom fields. **For materials, the variables that can be referenced are:** Material name (#CZ.name), model (#CZ.model), product code (#CZ.productcode), custom code (#CZ.customcode), base material (#CZ.baseTexture, note the capital T), and material custom attributes (for configuration. Note the expression syntax; the prefix CZ is required. Examples of correct usage: #CZ.name=="Danish White"?666:777 Use double equals signs, and the quotation marks must be English. #CZ.model=="danmaibai"?666:777 |
| Cost Unit Price          | Describes the model's cost unit price and supports expressions. The variables that can be referenced are the same as for the Sales Unit Price.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Non-Standard Coefficient | An additional cost incurred when a product requires extra processing or adjustments due to special or customized requirements, on top of the standard product pricing. When quoting, if there is a non-standard requirement, the final price is calculated by multiplying the base price by a non-standard coefficient based on the specific situation. If left blank, the non-standard coefficient defaults to 1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Additional Fee           | An extra fee added on top of the original price. You can enter costs for craftsmanship, labor, etc., here.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

* **Here are some typical examples for writing Sales Unit Price and Quantity:**

**Example 1:** A door panel is quoted per square meter. If the area is less than 0.3, it is calculated as 0.3; if greater than 0.3, the actual area is used. If the width is less than 450, the unit price is 500; if 450≤W\<550, the unit price is 600; if W≥550, the unit price is 750.

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959074084/5371F5055CE9A3B2F0C5076209162497.png)

The quotation rule would be written as:

* Quantity: #W\*#H/1000000\<0.3?0.3:#W\*#H/1000000
* Sale Unit Price: #W\<450?500:#W\<550?600:750

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959087680/85C5B7032E2D1464C12ED1014A273E59.png)

**Example 2:** A sliding door is quoted by area. The unit price for model XX is 1000/square meter.The quotation rule would be written as:

* Unit: Square Meter
* Quantity: #W\*#H/1000000
* Sale Unit Price: 1000

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959094872/76787C03CC532110193AD8F27A94FD0D.png)

2. The field mapping between the list JSON and the solution JSON is as follows:

![](https://qhstatic-sg-s3.coohom.com/image/png/1786959109248/E3D4F6E271DC1BF90FE88CDB203D341A.png)

|   JSON Field    |                                             Corresponding Pricing Rule Field                                             |
|-----------------|--------------------------------------------------------------------------------------------------------------------------|
| quotationunit   | Unit                                                                                                                     |
| quantity        | Quantity                                                                                                                 |
| unitPrice       | Sale Unit Price                                                                                                          |
| unitCost        | Cost Unit Price                                                                                                          |
| nonStandardCoef | Non-Standard Coefficient                                                                                                 |
| additionalFee   | Additional Fee                                                                                                           |
| price           | Price. The calculation formula is unit price\*quantity\*non-standard coefficient\*department coefficient+additional cost |
| quotationRate   | Department Coefficient                                                                                                   |