Default discount type in Quote Line Item

Dear all,

Do you know if it is possible to change the default discount type in a Quote line item ?

By default it is in %, I want to set the currency instead.

Many thanks in advance.

Best regards,

Enes

Parents
  • Hi Enes,

    The default value comes from "discount_select" property of Products module (i.e the Quoted Line Item). The field indicates whether the Discount is in % or not, and the default value of this field is "true".

    You can override the default value using extension framework to set the default value as "false", which can be done by creating a file in 

    custom/Extension/modules/Products/Ext/Vardefs/sugarfield_discount_select.php

    and set the default value as false:

    <?php

    $dictionary['Product']['fields']['discount_select']['default']=false;
Reply
  • Hi Enes,

    The default value comes from "discount_select" property of Products module (i.e the Quoted Line Item). The field indicates whether the Discount is in % or not, and the default value of this field is "true".

    You can override the default value using extension framework to set the default value as "false", which can be done by creating a file in 

    custom/Extension/modules/Products/Ext/Vardefs/sugarfield_discount_select.php

    and set the default value as false:

    <?php

    $dictionary['Product']['fields']['discount_select']['default']=false;
Children
No Data