# Print Barcode Stickers Based on Item-wise Quantity directly from Reports

**YouTube:** [How to Map the Quantity Field for Barcode Printing Based on Item Quantity?](https://www.youtube.com/watch?v=fZ_0JTTm9jo)

## How to Map the Quantity Field for Barcode Printing Based on Item Quantity?

In this tutorial, we will learn how to **print barcode stickers based on item-wise quantity directly from reports** in **Logic ERP**.

***

### **Review the Purchase Challan Report**

* Open the **Purchase Challan Report**.
* In this example, the challan contains **three products** with quantities **10, 5, and 5**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FCOqxaoJA6tmrJIoRnPiO%2FChallan%20Report.png?alt=media&#x26;token=72171919-c691-41ea-9be7-349eb6cd4a08" alt=""><figcaption></figcaption></figure>

* Our objective is to print **barcode stickers according to these item-wise quantities**.

***

### **Open Barcode Label Design**

* Close the Report window.
* Click on the **Barcode** option.
* Select the required **Barcode Configuration or Design**.
* Click **No** to open the selected barcode design.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FZpY92fgOLpZDlZQGiV70%2FPrint%20Barcode%20-%20NO.png?alt=media&#x26;token=86df09bb-efb8-4c09-84df-cf0494d24f31" alt=""><figcaption></figcaption></figure>

***

### **Review the Current Barcode Preview**

* Preview the barcode labels.
* You will notice that the system currently prints **one barcode per line item**, instead of generating barcodes based on the **actual item quantity**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F6f7RB22L6AJ2a0Tmfo20%2FItem%20Wise%20Preview.png?alt=media&#x26;token=a4b89820-4b35-476f-a263-e0d7861ecb53" alt=""><figcaption></figcaption></figure>

***

### **Configure Barcode Copies Based on Quantity**

To print stickers according to item quantity:

* Open **Page Setup**.
* Enable the option **“Use the following fields for copies”**.
* Set the field value to **Quantity**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FvD7PBfel1SDoPrdilFOP%2FUse%20Following%20Field%20for%20Copies.png?alt=media&#x26;token=ae67e429-b836-4340-a8cf-ad25873feef0" alt=""><figcaption></figcaption></figure>

* Save the settings.

This configuration ensures that barcode stickers are printed **based on the item-wise quantity specified in the document**.

***

### **Configure Barcode Label Printing Settings**

* Open the **Barcode Label Printing Module**.
* Go to **Configuration Settings**.
* Ensure the following settings are applied:
  * **Append One Record To:** `NA`

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FvveyREiKXWiFqe0IiUK4%2FAppend.png?alt=media&#x26;token=480c9461-a836-4454-ab37-09716ba3fc6c" alt=""><figcaption></figcaption></figure>

* **Data Source Type:** `Embedded` (for better performance)

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F2F6IA7aNp924ItFEdYh0%2FData.png?alt=media&#x26;token=ff4024d6-4829-4161-90be-38668b237931" alt=""><figcaption></figcaption></figure>

* Save the configuration and return to the report.

***

### **Verify the Updated Barcode Preview**

* Open the **Barcode Print Preview** again.
* The system will now display **barcode stickers according to the item-wise quantities** specified in the challan.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FiDPmOOgcAmJaSmBbbhMz%2FFinal.png?alt=media&#x26;token=1b628f77-2123-4889-b585-32722e8464ea" alt=""><figcaption></figcaption></figure>

***

### **Print Barcode Stickers**

* From the preview screen, click on the **Print Icon**.
* The barcode stickers will be printed **exactly as per the item quantities**.

***

### **Conclusion**

By configuring the **copies field as quantity**, Logic ERP allows barcode stickers to be generated **accurately according to item-wise quantities**, ensuring faster labeling and improved inventory handling.
