<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Name of person whom generated the quotation]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5174</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5174&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Name of person whom generated the quotation.]]></description>
		<lastBuildDate>Mon, 13 Feb 2017 19:29:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27521#p27521</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 13 Feb 2017 19:29:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27521#p27521</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27506#p27506</link>
			<description><![CDATA[<p>Where did you exactly use $user[&#039;user_id&#039;],</p>]]></description>
			<author><![CDATA[null@example.com (Kagzo1)]]></author>
			<pubDate>Sat, 11 Feb 2017 14:07:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27506#p27506</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22098#p22098</link>
			<description><![CDATA[<p>This now <a href="https://github.com/apmuthu/frontaccounting/commit/a09c0a25e3d9661ea8540e025b20cbb9dd00d454">commited to my FAMods</a> in my GitHub Repo</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 08 Jan 2015 18:24:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22098#p22098</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21534#p21534</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 21 Nov 2014 10:30:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21534#p21534</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21527#p21527</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (janus)]]></author>
			<pubDate>Thu, 20 Nov 2014 14:00:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21527#p21527</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21448#p21448</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Thu, 13 Nov 2014 00:31:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21448#p21448</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21447#p21447</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (janus)]]></author>
			<pubDate>Wed, 12 Nov 2014 16:57:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21447#p21447</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21000#p21000</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (janus)]]></author>
			<pubDate>Mon, 29 Sep 2014 13:58:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21000#p21000</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20879#p20879</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 18 Sep 2014 19:15:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20879#p20879</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20873#p20873</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 18 Sep 2014 16:32:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20873#p20873</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20864#p20864</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Thu, 18 Sep 2014 12:00:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20864#p20864</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20863#p20863</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (janus)]]></author>
			<pubDate>Thu, 18 Sep 2014 09:38:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20863#p20863</guid>
		</item>
		<item>
			<title><![CDATA[Re: Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20862#p20862</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (barbarian)]]></author>
			<pubDate>Thu, 18 Sep 2014 09:22:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20862#p20862</guid>
		</item>
		<item>
			<title><![CDATA[Name of person whom generated the quotation]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20860#p20860</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (janus)]]></author>
			<pubDate>Thu, 18 Sep 2014 08:25:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20860#p20860</guid>
		</item>
	</channel>
</rss>
