Hi chrisklinger
I saw this query and was wondering if you managed to overcome the challenge with regards to searching a "branch" only.
Let me know please.
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Posts by janus
Pages 1
Hi chrisklinger
I saw this query and was wondering if you managed to overcome the challenge with regards to searching a "branch" only.
Let me know please.
Hi
I would like to give feedback regarding my request.
After I "played" quite a bit I succeeded in pulling the username through to the various printed documents.
This is how I did it:
locate the following file:
reporting/includes/doctext.inc
I added (as suggested) the following code in lines 18 and 19:
$id_user = $_SESSION['wa_current_user']->user;
$user = get_user($id_user);
THEN....
I used the following:
$user['user_id'],
I struggled a bit until I change the ['user'] to $user['user_id'] the _id seem to have done the trick.
It works for me.
Thank you once again!
Regards
J
Hi.
Me again.
I have attempted to add the above code into various reports in order for the report to reflect the person who generated to quotation.
I have not been successful in finding the correct report and the correct spot on where to insert the code.
Please help.
-------
$id_user = $_SESSION['wa_current_user']->user;
$user = get_user($id_user)
echo $user['username']
--------
Thank you for your responses.
I have a bit of difficulty in using the correct string to be able to reflect the user that generated the quote.
i am trying to configure the ....reporting/includes/doctext.inc file under.... case ST_SALESQUOTE:...
What would be the correct string (with reference to the above string) to reflect the username to replace the following string with:
_("Sales Person") => get_salesman_name($this->formData['salesman']),
With other words, "Sales Person" should reflect the user that generated the code.
Please help.
Thank you in advance
J.
Thank you for the valuable response.
Do you perhaps have a string (of code) that I can use to add to the pdf template.
J
Hi
My client requires the name of the person (or username) whom generated a quote to appear on pdf version of the quote.
The medium company has three people working on the system and they are not limited to their own customers, but the whole pool of customers. Thus, when a client does an enquiry, they would know whom to speak to.
I have tweaked the pdf versions for other instances, but i am not sure of the php coding to show the username.
Please help me.
J
Pages 1
FrontAccounting forum → Posts by janus
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.