How do I add line numbers from quotes to PDF Manager

In the Quotes module you can check "Display Line Numbers", and while looking at the quote in the Quotes module these line item numbers are displayed.  When you download a quote template though, they disappear as it is not a field out of the box in PDF Manager.  What is the correct input if I add a row just for this?

Parents
  • Hi Tucker Jackson

    you can do through coding like ..

    copy file from modules/Quotes/sugarpdf/sugarpdf.standard.php => custom/modules/Quotes/sugarpdf/sugarpdf.standard.php

    Firstly Change for Header 

    private function _initOptions(){
          $this->itemOptions = array(
              "Sr.No" =>"6%",

    then 

    //code add in your bundle list

    declare $count=0; before loop

     if ($line_item->object_name == "Product") {
    $item[$count]["Sr.No"] = $count+1;

    Hope this Helpful to you...

Reply
  • Hi Tucker Jackson

    you can do through coding like ..

    copy file from modules/Quotes/sugarpdf/sugarpdf.standard.php => custom/modules/Quotes/sugarpdf/sugarpdf.standard.php

    Firstly Change for Header 

    private function _initOptions(){
          $this->itemOptions = array(
              "Sr.No" =>"6%",

    then 

    //code add in your bundle list

    declare $count=0; before loop

     if ($line_item->object_name == "Product") {
    $item[$count]["Sr.No"] = $count+1;

    Hope this Helpful to you...

Children