I’m sry but I don’t get it to work.
Field was created as textarea “va_kunde_c” . Edits in custom/modules/AOS_Products_Quotes/line_items.js
:
- function insertProductLine Line 116 + 135 added the field:
"populate_list": ["product_name[" + prodln + "]", "product_product_id[" + prodln + "]", "product_part_number[" + prodln + "]", "product_product_cost_price[" + prodln + "]", "product_product_list_price[" + prodln + "]", "product_item_description[" + prodln + "]", "product_currency[" + prodln + "]", "product_va_kunde_c[" + prodln + "]"],
"populate_list": ["product_part_number[" + prodln + "]", "product_name[" + prodln + "]", "product_product_id[" + prodln + "]", "product_product_cost_price[" + prodln + "]", "product_product_list_price[" + prodln + "]", "product_item_description[" + prodln + "]", "product_currency[" + prodln + "]", "product_va_kunde_c[" + prodln + "]"],
- Line 219 - 223 Changed the default “Description Note” Field to Display value of va_kunde_c:
i.colSpan = "5";
i.style.color = "rgb(68,68,68)";
i.innerHTML = "<span style='vertical-align: top;' class='product_description_label'>" + SUGAR.language.get(module_sugar_grp1, 'LBL_VA_KUNDE_C') + " : </span>";
i.innerHTML += "<textarea tabindex='116' name='product_va_kunde_c[" + prodln + "]' id='product_va_kunde_c" + prodln + "' rows='2' cols='23' class='product_description'></textarea> "
- function openProductPopup Line 267: Changed to load the data from va_kunde_c:
function openProductPopup(ln){
lineno=ln;
var popupRequestData = {
"call_back_function" : "setProductReturn",
"form_name" : "EditView",
"field_to_name_array" : {
"id" : "product_product_id" + ln,
"name" : "product_name" + ln,
"description" : "product_item_description" + ln,
"part_number" : "product_part_number" + ln,
"cost" : "product_product_cost_price" + ln,
"price" : "product_product_list_price" + ln,
"currency_id" : "product_currency" + ln,
"va_kunde_c" : "product_va_kunde_c" + ln
}
};
open_popup('AOS_Products', 800, 850, '', true, true, popupRequestData);
}
Beside that I’ve added the label string definition for “va_kunde_c” to AOS_Contracts/language and AOS_Quotes/language
.