> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/sale-order/so-configuration/do-not-allow-decimals-in-quantity.md).

# Do not allow Decimals in Quantity

**YouTube:** [How to Disable Decimal Quantities in Sales Orders?](https://www.youtube.com/watch?v=RtF5qXRIlwg)

## How to Disable Decimal Quantities in Sales Orders?

This tutorial explains how to use the **“Do Not Allow Decimals in Quantity”** feature in Logic ERP. It demonstrates how enabling this option restricts users from entering fractional quantities, ensuring precise and controlled order entry where only whole numbers are allowed.

***

### **Objective of This Feature**

* Prevent entry of **fractional quantities**
* Ensure **standardized quantity input (whole numbers only)**
* Improve **accuracy in inventory and billing**
* Avoid **calculation discrepancies**

***

### **Accessing Sales Order Configuration**

* Navigate to **Sales Order Module**
* Click on **Configuration**
* Select the relevant **Sales Order Configuration**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FA3MzR18JH5hteL1moiDj%2FCNF.png?alt=media&amp;token=e87ee77e-5f1d-4d58-9e86-8a219fa3cfc1" alt=""><figcaption></figcaption></figure>

***

### **Understanding Default Behavior (Feature Disabled)**

**Enter Quantity**

* Create a **New Sales Order**
* Enter Quantity:
  * Example: **1.5 (One and a half)**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FPAcihcHtDD6BXGQHw8Wz%2FDecimal%20Qty.png?alt=media&amp;token=51004d76-3abf-49c0-81a5-29b2e7a2dde7" alt=""><figcaption></figcaption></figure>

**System Behavior**

* Decimal values are **allowed**
* Quantity is accepted without restriction

***

### **Enabling the Restriction**

* Locate and enable the option labeled as:

> **“Do not allow Decimals in Quantity”**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FF75mWYgjhr7vcjM1ADPX%2FEnable%20the%20Configuration.png?alt=media&amp;token=4e50ab66-25ec-48f7-8b66-8cf678f2f15f" alt=""><figcaption></figcaption></figure>

* Click **Save**

***

### Implement **After Enabling Feature**

#### **Attempt Decimal Entry**

* Click on **New Order**
* Enter Quantity:
  * Example: **1.5**

**System Behavior**

* Decimal input is **restricted**
* Only **whole numbers** are accepted

***

### **Key Benefits**

* Maintains **uniform quantity standards**
* Prevents **data inconsistencies**
* Improves **inventory accuracy**
* Reduces **billing errors**

***

### **Best Practice Tips**

* Enable this feature when:
  * Dealing in **unit-based items (pieces, boxes, etc.)**
* Keep it disabled for:
  * Items sold in **weight/volume (kg, liters, etc.)**

***

### **Final Outcome**

* Only **whole number quantities** are allowed
* Data becomes **consistent and error-free**
* Sales process becomes **more controlled and reliable**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/sale-order/so-configuration/do-not-allow-decimals-in-quantity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
