Topic: Company name not showing up in PO

Hi:

I have version 2.3.18 of FrontAccounting. When i enter in the details of the PO and view it, my company name doesnt show up. How do i enable the company name & Address to show in the PO before sent to the receipient ?

thanks & regards,

-Sriram

2 (edited by apmuthu 09/12/2013 02:42:12 pm)

Re: Company name not showing up in PO

Have you setup the company name inside the Setup -> Company Setup.

Possibly Sales -> Template Delivery may be useful.

Re: Company name not showing up in PO

Yes, i have setup the company name in Setup->Company

Template didnt help..

4 (edited by apmuthu 09/13/2013 07:55:39 pm)

Re: Company name not showing up in PO

The Company Name gets printed in the Report  - reporting/rep_209 in it's included file reporting/includes/pdf_report.inc by line 536:

            $this->Text($companyCol, $this->company['coy_name']);

Only the PO # gets printed in the View PO - purchasing/view/view_po.php by line 30:

display_heading(_("Purchase Order") . " #" . $_GET['trans_no']);

Replacing line 30 in purchasing/view/view_po.php with:

display_heading($_SESSION['SysPrefs']->prefs['coy_name'] . "\n" . _("Purchase Order") . " #" . $_GET['trans_no']);

will display the Company Name in the View PO as well.

Patch File and support files attached.

Joe - can you  add it to the FA core?

Post's attachments

ViewPOPatch.zip 11 kb, 5 downloads since 2013-09-13 

You don't have the permssions to download the attachments of this post.

Re: Company name not showing up in PO

I don't understand why this is necessary. Btw, I am out of office. Will have a look at it when returning on Monday.

Joe

Re: Company name not showing up in PO

When dealing with multiple companies on the different tabs of a browser, it might come in handy and prevent confusion.

Re: Company name not showing up in PO

@sriram_h
I'm not sure I understand the problem rised here. Where the company name is not displayed: in PDF report or in  popup order window?

@apmuthu
I also do not understand need for including the company name here. We do not display company name in popup windows because this would be pure waste of screen space. All the popups are designed for fast look into various documents and transactions, and FA user in most cases perfectly know what is his/her company name.

For documents which are shared with clients/suppliers respective reports are available, so you can print e.g. nice looking Purchase Order instead of sending draft screenshot of popup window content.
Janusz

Re: Company name not showing up in PO

I understand the logic of saving screen real-estate space for such popups. The Company Name is currently displayed on the PDF Documents quite nicely.

Accountants offices manage the books of many clients and sometimes their accounting client manager may have logged into more than one instance of FA to answer more than one client on the phone at nearly the same time.

Having such popups from more than one instance of FA would confuse the FA user in such an instance if there is no company identifier on the popup screen.

A config variable that enables company identification on popup screens would serve to alleviate requirements of such users.

Re: Company name not showing up in PO

Well, I consider the scenario a little contrieved, and probably it is not what original thread author had in mind.
@Sriram
Could you explain your POV?
Janusz

Re: Company name not showing up in PO

Thanks apmuthu, your suggestion worked. The reason, why this is needed is.. if believe after generating the PO or Sales Order, if i email this to contact, then i would like to have more than just a heading that says "Sales Order # 1". Actually, if we were to email the order, it must be like what is generated using the "Customer and Sales Reports", ie., with a company name, address and Logo.

How do we get the address and logo along with the company name ?

thanks,

-Sriram

11 (edited by apmuthu 09/17/2013 04:04:45 pm)

Re: Company name not showing up in PO

@Sriram: In your case you would be better off just downloading the PDF (Print PDF Report) instead of just clicking the View PO link. The downloaded PDF can be emailed to the customer as an attachment - this has all the bells and whistles - Company Name, Address, Logo, etc.

For what it is worth, the logo (jpg or png type) is in company/#/images folder and can be set at Setup -> Company Setup and it can be displayed with an <img src=.... type of html construct in the hack given in a previous post in this thread.

All the variables can be exposed by inserting a echo print_r($_SESSION, true); statement at the place where the hack is present to see what variables are visible to be displayed.