Topic: How to show PO Reference Number on Purchase Order Report?

Hi,

I have just started to enter Purchase Orders into FA but our PO numbers do not start at 1 (for FA we plan to have it start at "PO0008000").

I went under "Setup" > "Forms Setup" and changed the "Next Reference" value for Purchase Orders to "PO0008000".

Now when I print my Purchase Order report, it still shows "Purchase Order No.1" in the header.

Is there a way I can change it to show my PO Reference Number instead?

I went under the "reporting" folder and saw a bunch of "repXXX.php" files.  Can someone shed some light on which one I should edit?

Thanks!

Re: How to show PO Reference Number on Purchase Order Report?

I guess you have run  into a bug. Something has changed in /reporting/includes/doctext.inc.
I am out of office, but will return to this subject on return.

/Joe

Re: How to show PO Reference Number on Purchase Order Report?

That was fixed already: http://mantis.frontaccounting.com/view.php?id=960

Here are the changes:

tom@tom:~$ diff ./Downloads/doctext.inc ./newfa/frontaccounting/reporting/includes/doctext.inc
156,157c156
<             $this->formData['document_number'] = $print_invoice_no == 0 && isset($this->formData['reference'])
<                 ? $this->formData['reference'] : $this->formData['order_no'];
---
>             $this->formData['document_number'] = $this->formData['order_no'];
tom@tom:~$


< are new lines
> are old

tom

4 (edited by arlington 08/11/2011 12:14:18 pm)

Re: How to show PO Reference Number on Purchase Order Report?

Thanks Joe & Tom, that fix worked wonderfully.

How about if I want to change the field labels on the PO?  (e.g. "Your VAT No.")

Re: How to show PO Reference Number on Purchase Order Report?

These labels are in the /reporting/includes/doctext.inc file.

/Joe

Re: How to show PO Reference Number on Purchase Order Report?

The file /reporting/includes/doctext.inc can be downloaded from Mantis, http://mantis.frontaccounting.com.
It is under bug no 984.

/Joe