Hello guys, how are you?
I’ve the following code:
if (! empty($bean)) {
global $current_user, $app_list_strings;
$bean->j_pbd_c = ($bean->price - $bean->cost) * 100 / $bean->price;
if ($current_user->j_tipo_utente_c == 2) { [...]
This is about managing e quote’s line of products.
I want to keep as a variable not the $current_user (that is the user logged in), but i want to keep the assigned_user_id of the quote (that could be different one).
i think that $bean->parent_id->assigned_user_id->vendor_code could be wrong, but how can i do?
thank you again!