Topic: Remove Shipping and Delivery Address from sales invoice

How do I remove the delivery address from a sales invoice?
How do I remove the word Shipping from the sales invoice?
These are not relevant to a service provider.

Re: Remove Shipping and Delivery Address from sales invoice

Hi guys
How do I remove the delivery address from a sales invoice?
How do I remove the word Shipping from the sales invoice?
These are not relevant to a service provider.
Please help?

3 (edited by apmuthu 11/22/2015 07:42:45 am)

Re: Remove Shipping and Delivery Address from sales invoice

Suppress Deliver To in reports:

The Deliver To address is obtained in reporting/includes/pdf_report.inc as part of an array. It is then passed on to the $Addr2 array in reporting/includes/doctext.inc file. This array is used in several reports through reporting/includes/header2.inc.

Try to comment out lines 151, 162 and 164 in reporting/includes/header2.inc and see what breaks. These are the places where the said array variable $Addr2 is used in the file.

Suppress Shipping line in reports:

Edit the rep107.php file and place in your company/#/reporting folder to override for the specific company (#).

The No Zero Shipping rep107.php attached herein can be used for all companies - the Shipping will get displayed only if it has a non zero value.

@joe: want to put it into the FA 2.3 core?

Post's attachments

No_Zero_Shipping_rep107.zip 16.5 kb, 2 downloads since 2015-11-22 

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

Re: Remove Shipping and Delivery Address from sales invoice

If no shipping exists, there is no reason for printing it, I guess.

I will have a look into this later today.

Joe

Re: Remove Shipping and Delivery Address from sales invoice

If no shipping COSTs on sales documents or views, they will not be printed or viewed.
2.3 repo updated and the Changes will go to next minor release.

/Joe

Re: Remove Shipping and Delivery Address from sales invoice

@joe: Kudos. This commit of yours has been quite comprehensive!