Add field in QLI within Quote detail/edit view

Hi All,

In latest 7.9.x version the Quote module is now a side car module before this was bwc module and we were able to add oob/custom fields in QLI within Quote detail/edit view

How to achieve it in version 7.9.x? Any help will be highly appreciable

Regards

Parents
  • Hi All,

    I followed the instructions from this bug SugarCRM and now I able add oob/custom field.

    But question is how to add validation for each QLI for example, user can increase Unit Price but cannot decrease like if Unit Price is 500 than user cannot update to 449 and it must be 500 or greater than 500.

    Any help will be highly appreciable.

    Regards

  • Can some one help me to understand how can we extend "modules\Products\clients\base\fields\quote-data-editablelistbutton\quote-data-editablelistbutton.js" \? because when i do.. it removed the core functionality. I just want to addd few validations to the line items when its saved from edit view.

Reply
  • Can some one help me to understand how can we extend "modules\Products\clients\base\fields\quote-data-editablelistbutton\quote-data-editablelistbutton.js" \? because when i do.. it removed the core functionality. I just want to addd few validations to the line items when its saved from edit view.

Children
  • I was struggling to figure out how to extend it as well. Finally figured it out. Probably too late for you but if anyone else has the same question, this is how I did it:

    Create a new custom/modules/Products/clients/base/fields/quote-data-editablelistbutton/quote-data-editablelistbutton.js file with the following contents:

    ({
        extendsFrom: 'ProductsQuoteDataEditablelistbuttonField',
       
        initialize: function(options)
        {
            this._super("initialize", [options]);
        }
    })

    This will extend the Products quote-data-editablelistbutton field and allow you to add custom functionality.