summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-03-06 20:08:32 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-03-06 20:08:32 -0600
commit67b05564568d10ee3833a87f09b752d0319934ba (patch)
tree329bbedbc9dfbe70194d258b2f36983f4e39dc28 /httemplate
parent95b6042f37f00de9dca4b5654522fc4098a82d04 (diff)
RT#29406: Per customer option to display service address of package on invoice
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/docs/schema.html1
-rwxr-xr-xhttemplate/edit/cust_main.cgi13
-rw-r--r--httemplate/view/cust_main/contacts.html7
3 files changed, 21 insertions, 0 deletions
diff --git a/httemplate/docs/schema.html b/httemplate/docs/schema.html
index cd4914a6c..bb1861292 100644
--- a/httemplate/docs/schema.html
+++ b/httemplate/docs/schema.html
@@ -137,6 +137,7 @@
<li>otaker - order taker
<li>referral_custnum
<li>comments
+ <li>invoice_ship_address - Y or null, does ship address appear on invoice
</ul>
(columns in <i>italics</i> are optional)
<li><a name="cust_main_invoice" href="man/FS/cust_main_invoice.html">cust_main_invoice</a> - Invoice destinations for email invoices. Note that a customer can have many email destinations for their invoice (either literal or via svcnum), but only one postal destination.
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index f99cce2de..b6f6b0dea 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -78,6 +78,19 @@
enable_district => 1,
enable_coords => 1,
&>
+% unless ($conf->exists('invoice-ship_address')) { #it's always on, so hide per-cust config
+ <TR>
+ <TD>&nbsp;</TD>
+ <TD COLSPAN="7">
+ <% include('/elements/checkbox.html',
+ 'field' => 'invoice_ship_address',
+ 'value' => 'Y',
+ 'curr_value' => $cust_main->invoice_ship_address,
+ 'postfix' => emt('included on invoices'),
+ ) %>
+ </TD>
+ </TR>
+% }
</TABLE>
</DIV>
</TD>
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index c9f8005b0..a5bafea10 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -13,6 +13,13 @@
(<% mt('same as billing') %>)
% }
</FONT>
+% if (
+% ($this eq 'ship')
+% && $cust_main->invoice_ship_address
+% && !$conf->exists('invoice-ship_address') #it's always on, so hide per-cust config
+% ) {
+<SPAN STYLE="padding-left: .25em;">(<% emt('included on invoices') %>)</SPAN>
+% }
<TABLE CLASS="fsinnerbox">
% if ( $this eq 'bill' ) {