AnsweredAssumed Answered

Sugar 8 Quote copy not pickup up custom datetime field

Question asked by Moises Jimenez on Jul 11, 2018

Following the steps in http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_8.0/Architecture/Quotes/#Ungrouped_Quote… I successfully added a few custom fields to Quotes, one of them is a datecombo field.

When executing a Quote->Copy all fields including my custom fields are copied correctly expect my datecombo field.

 

Just to give you some more information;
No modification to the default copy functionality of sugar.
Name of field:  support_expiration_date_c
 
Added custom field by creating  custom\Products\clients\base\views\quote-data-group-list.php
array(
     'name' => 'support_expiration_date_c',
     'label' => 'End Date',
     'widthClass' => 'line_item_column renewal_column',
     'type' => 'datetimecombo',                    
     'css_class' => 'renewal_column date_field',                     
), 
I also created custom\Quotes\clients\base\views\record\record.php and added my custom field to the 'product_bundle_items' key
'name' => 'product_bundle_items',
'fields' => 
array (
  0 => 'name',
  1 => 'quote_id',
  2 => 'description',
  3 => 'quantity',
  4 => 'product_template_name',
  5 => 'product_template_id',
  6 => 'deal_calc',
  7 => 'mft_part_num',
  8 => 'discount_price',
  9 => 'discount_amount',
  10 => 'tax',
  11 => 'tax_class',
  12 => 'subtotal',
  13 => 'position',
  14 => 'currency_id',
  15 => 'base_rate',
  16 => 'discount_select',
  17 => 'total_amount',
  18 => 'date_purchased',
  19 => 'support_expiration_date_c'
),

Is any one else having this issue? Is their a fix for this issue?

 

Thanks

Outcomes