# Add C.D. / T.D. (Discount) Fields in Printing

**YouTube:** [How to Add C.D. / T.D. (Discount) Fields in Sale Bill Printing](https://www.youtube.com/watch?v=K6RQHIBX2-s)

## How to Add C.D. / T.D. (Discount) Fields in Sale Bill Printing

In this tutorial, we’ll demonstrate how to add **Cash Discount (CD)** and **Trade Discount (TD)** percentage and amount columns in sales bill printing.

***

### Add C.D. / T.D. Using Sale Multiple Printing Configuration

* Go to **Menu → Configuration → Sale Multiple Printing Configuration**.
* Select the **required configuration** from the list.
* Under **Print Options**, click **Print Columns**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLIcgsfspEBfmXMSZDVC3%2FPrint%20Columns.png?alt=media&#x26;token=57f07c6f-f471-4950-a3df-6b94670b104e" alt=""><figcaption></figcaption></figure>

* From the list of available columns, use the **search bar** to find and select:
  * **CD Percent**
  * **CD Amount (Com Rupees)**
  * **TD Percent**
  * **TD Amount (SP Com Rupees)**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FMCc9cIGnAc1DL7whIpTM%2FSetup%20Column%20Attribute.png?alt=media&#x26;token=71c89d8f-0993-44c6-a8fe-fb5d035e6237" alt=""><figcaption></figcaption></figure>

* Rearrange the columns as per your requirement using the arrow keys.
* Save the configuration.
* Return to the **Sale Bill Window** and open the print preview.

You will now see both **percentage and value columns** for CD/TD in the print.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FOJqeCj3VsVW6ImW7RkQO%2FPreview.png?alt=media&#x26;token=529c9ace-9ca9-4bfe-917e-44adf84431c5" alt=""><figcaption></figcaption></figure>

***

### Add C.D. / T.D. Using Designer Printing Format

* Go to **Menu → Continuous Printing → Sales Bill Print Designer and Printing**.
* Select the **required configuration** and **sales bill** from the search list, then click **Refresh**.
* Open the **Design Window**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FJHoUVx20etpNigd3TegS%2FDP%20-%20Design.png?alt=media&#x26;token=3d4fe65f-c4c7-4055-ba0f-6489222bcd3d" alt=""><figcaption></figcaption></figure>

* Click on the **Grid Table** from the menu, select Table and then click to **Edit Bound Table**&#x20;

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F8gssN4MLnnKPul38Thdw%2FDP%20-%20Edit%20Bound%20Table.png?alt=media&#x26;token=91d993e8-9c3d-47a1-90bb-b274c3c129bd" alt=""><figcaption></figcaption></figure>

* Click on **Settings**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FSrFLsV4kNLM8IgbxrB1T%2FDP%20-%20Settings.png?alt=media&#x26;token=327312e1-4214-4bc6-8711-06d23b93b2bb" alt=""><figcaption></figcaption></figure>

* Click on **Add Column**. Since we need two columns (percentage & amount), add two columns.
* On the right-hand side **Properties Panel**:
  * Go to **Bound Columns** and search for **CD**.
    * The field without suffix → **Amount**
    * The field with **P** → **Percentage**
  * Right-click and **Insert Field** for both columns.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzDjqLiMU3IHcrtpnYWKu%2FDP%20-%20%20Add%20Bound%20Column.png?alt=media&#x26;token=26a71bca-5659-410f-bfa1-c059cfeba6b2" alt=""><figcaption></figcaption></figure>

* Use **Move Left / Move Right** to rearrange column positions.
* Under **Column Properties**:
  * Define the column type (number/percent).
  * Update the **Header Text** (e.g., *CD %*, *CD Amount*).

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F3SrElQrzfFwb1bus6gKF%2FDP%20-%20Header.png?alt=media&#x26;token=d3102888-5a44-491f-82d7-a1aed0fa311e" alt=""><figcaption></figcaption></figure>

* Under **Column Styles**:
  * Set **Horizontal Alignment → Right**.
  * Set **Vertical Alignment → Middle**.
  * (Optional) Add **background color** or **border style**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FWNjP3tbHGKgB0RHrig9g%2FDP%20-%20Column%20Style.png?alt=media&#x26;token=09420268-c882-455f-842b-7aebc6d1b779" alt=""><figcaption></figcaption></figure>

* Repeat the same steps for **TD Percent** and **TD Amount** columns.
* Save the changes and close the bound table.
* Open the **Preview Print**.

You will now see **CD % / CD Amount** and **TD % / TD Amount** columns in the sales bill print.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FUMqbvseQBvDb2rvOwFJQ%2FDP%20-%20Preview.png?alt=media&#x26;token=efedfbe4-bbaf-4328-8a37-145e226f2565" alt=""><figcaption></figcaption></figure>
