I'm using OpenSales by Rustin Phares I only use Products and Quotes version 1.0.0rc1 and SugarCE 5.0a
In Quotes module when you select an Account, automatically fills the fields address, state, city, country, postal..... I want to add a new field in this list.
Maybe I want to add the sic_code (Account field) so I modify EditView.html in order to add the new textbox, add the new variable in vardefs, and I add the label to my field.
In Quotes side sic_code would be named rfc.
I search in EditView.php and modify:
the next line use popup_request_data into encoded_billing_account_popup_request_data, used in EditView.html in order to call every account field necesary.PHP Code:$popup_request_data = array (
´call_back_function' => 'set_return',
'form_name' => 'EditView',
.......................................................
'id' =>'billing_account_name',
......................................................
'billing_address_country' => "billing_postal",
'sic_code => "rfc",
),
);
some lines below (editview.php):
I think this is enough but I can't have the rfc (or sic_code) If I manually fill the field, the content is correctly saved in DB and correctly shown in DetailView and further EditView, but If I use the button select in order to call n Account, I obtain the default fields for accounts in Quotes and a blank space in my new field.PHP Code:$xtpl -> assign ('BILLING_ACCOUNT', $focus->billing_account);
$xtpl -> assign ('BILLING_ACCOUNT_ID', $focus->billing_account_id);
...............................................
...............................................
$xtpl -> assign ('BILLING_STATE', $focus->state);
$xtpl -> assign ('RFC', $focus->rfc);
So the problem is when I call the account and I not obtain my value. How can I fix this issue?
Thanks


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks