<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Name of person whom generated the quotation]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5174&amp;type=atom" />
	<updated>2017-02-13T19:29:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5174</id>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27521#p27521" />
			<content type="html"><![CDATA[<p><strong>reporting/includes/doctext.inc</strong> has the flag to enable preparer display.<br /><strong>reporting/includes/header2.inc </strong> displays either the preparer if present, otherwise, the user_id.<br />The commit link clearly shows the changes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-02-13T19:29:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27521#p27521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27506#p27506" />
			<content type="html"><![CDATA[<p>Where did you exactly use $user[&#039;user_id&#039;],</p>]]></content>
			<author>
				<name><![CDATA[Kagzo1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40947</uri>
			</author>
			<updated>2017-02-11T14:07:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27506#p27506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22098#p22098" />
			<content type="html"><![CDATA[<p>This now <a href="https://github.com/apmuthu/frontaccounting/commit/a09c0a25e3d9661ea8540e025b20cbb9dd00d454">commited to my FAMods</a> in my GitHub Repo</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-08T18:24:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22098#p22098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21534#p21534" />
			<content type="html"><![CDATA[<p>This can be generically included in the core by having a form field to included the report preparer&#039;s name / username printed or not for appropriate documents that can be invoices, quotations, etc.</p><p>I have included a generic implementation using a hard_coded flag variable and enabled for Sales Quotations along with a screenshot.</p><p>@joe - you can include it in the core with any mods thought fit.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-21T10:30:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21534#p21534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21527#p21527" />
			<content type="html"><![CDATA[<p>Hi</p><p>I would like to give feedback regarding my request.</p><p>After I &quot;played&quot; quite a bit I succeeded in pulling the username through to the various printed documents.</p><p>This is how I did it:</p><p>locate the following file:<br />reporting/includes/doctext.inc</p><p>I added (as suggested) the following code in lines 18 and 19:</p><p>$id_user = $_SESSION[&#039;wa_current_user&#039;]-&gt;user;<br />$user = get_user($id_user);</p><p>THEN....</p><p>I used the following:</p><p>$user[&#039;user_id&#039;],</p><p>I struggled a bit until I change the [&#039;user&#039;] to $user[&#039;user_id&#039;]&nbsp; &nbsp; &nbsp;the _id&nbsp; seem to have done the trick.</p><p>It works for me.</p><p>Thank you once again!</p><p>Regards</p><p>J</p>]]></content>
			<author>
				<name><![CDATA[janus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19640</uri>
			</author>
			<updated>2014-11-20T14:00:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21527#p21527</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21448#p21448" />
			<content type="html"><![CDATA[<p>The first two lines give you a reference to the current user object. Put them somewhere at the beginning, near any other assignments, so that they are executed before you start outputting data.</p><p>The third line outputs the username to stdout, so that won&#039;t work for you. I presume it was included as an example of how to access the username. You need to use $user[&#039;username&#039;] as an argument to one of the output methods of the PDF class. I suggest you look for a place where it outputs a date or a reference or something which appears near where you&#039;d want the name to be.</p><p>Then copy that function call, replacing its argument with $user[&#039;username&#039;] and see what happens. That should give you something to work with.</p>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2014-11-13T00:31:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21448#p21448</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21447#p21447" />
			<content type="html"><![CDATA[<p>Hi. </p><p>Me again.</p><p>I have attempted to add the above code into various reports in order for the report to reflect the person who generated to quotation. </p><p>I have not been successful in finding the correct report and the correct spot on where to insert the code.</p><p>Please help.<br />-------<br />$id_user = $_SESSION[&#039;wa_current_user&#039;]-&gt;user;<br />$user = get_user($id_user)<br />echo $user[&#039;username&#039;]<br />--------</p>]]></content>
			<author>
				<name><![CDATA[janus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19640</uri>
			</author>
			<updated>2014-11-12T16:57:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21447#p21447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21000#p21000" />
			<content type="html"><![CDATA[<p>Thank you for your responses. </p><p>I have a bit of difficulty in using the correct string to be able to reflect the user that generated the quote.</p><p>i am trying to configure the ....reporting/includes/doctext.inc file under.... case ST_SALESQUOTE:...</p><p>What would be the correct string (with reference to the above string) to reflect the username to replace the following string with:</p><p>_(&quot;Sales Person&quot;) =&gt; get_salesman_name($this-&gt;formData[&#039;salesman&#039;]),</p><p>With other words, &quot;Sales Person&quot; should reflect the user that generated the code.</p><p>Please help.</p><p>Thank you in advance</p><p>J.</p>]]></content>
			<author>
				<name><![CDATA[janus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19640</uri>
			</author>
			<updated>2014-09-29T13:58:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21000#p21000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20879#p20879" />
			<content type="html"><![CDATA[<p>Ok, I will just know if this is a general wish. We have a Sales Person on the branch.</p><p>And the info will go to all documents, otherwise it is getting tricky.</p><p>If we decide to implement this, where should we put the info? </p><p>Just under the document number with a blank line?</p><p>Label? Contact, Printed By or something else?</p><p>Barcode in the footer. Wow, is this not a little too much?</p><p>/joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-18T19:15:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20879#p20879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20873#p20873" />
			<content type="html"><![CDATA[<p>Joe - can a flag in the config.php be used to toggle this in all reports possibly in the header2.inc or some footer page? This will help avoid having to change each and every report. Also a barcode in the footer of each report too may be useful.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-18T16:32:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20873#p20873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20864#p20864" />
			<content type="html"><![CDATA[<p>$id_user = $_SESSION[&#039;wa_current_user&#039;]-&gt;user;<br />$user = get_user($id_user)</p><p>echo $user[&#039;username&#039;]</p>]]></content>
			<author>
				<name><![CDATA[barbarian]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18954</uri>
			</author>
			<updated>2014-09-18T12:00:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20864#p20864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20863#p20863" />
			<content type="html"><![CDATA[<p>Thank you for the valuable response.</p><p>Do you perhaps have a string (of code) that I can use to add to the pdf template. </p><p>J</p>]]></content>
			<author>
				<name><![CDATA[janus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19640</uri>
			</author>
			<updated>2014-09-18T09:38:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20863#p20863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20862#p20862" />
			<content type="html"><![CDATA[<p>you can get it from the session wa_current_user, there is a bit information of the logged in user, I think you can get the username from this, maybe you need to query it using the user id though</p>]]></content>
			<author>
				<name><![CDATA[barbarian]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18954</uri>
			</author>
			<updated>2014-09-18T09:22:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20862#p20862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Name of person whom generated the quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20860#p20860" />
			<content type="html"><![CDATA[<p>Hi</p><p>My client requires the name of the person (or username) whom generated a quote to appear on pdf version of the quote.</p><p>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.</p><p>I have tweaked the pdf versions for other instances, but i am not sure of the php coding to show the username.</p><p>Please help me.</p><p>J</p>]]></content>
			<author>
				<name><![CDATA[janus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19640</uri>
			</author>
			<updated>2014-09-18T08:25:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20860#p20860</id>
		</entry>
</feed>
