[freeside-commits] branch master updated. 3ece1c396f23e04cd659f1085f6eeee8bdfd846f

Jonathan Prykop jonathan at 420.am
Fri Jan 23 11:08:09 PST 2015


The branch, master has been updated
       via  3ece1c396f23e04cd659f1085f6eeee8bdfd846f (commit)
       via  0c8c5a5727dda5f8e5cf6f999d5b671a77556c6a (commit)
      from  2073798304acbd9402f73e0dee7507a7a4d22ceb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3ece1c396f23e04cd659f1085f6eeee8bdfd846f
Merge: 0c8c5a5 2073798
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Fri Jan 23 13:07:31 2015 -0600

    Merge branch 'master' of git.freeside.biz:/home/git/freeside


commit 0c8c5a5727dda5f8e5cf6f999d5b671a77556c6a
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Fri Jan 23 13:06:32 2015 -0600

    RT 32226, only displaying DID order link if customer has DID order

diff --git a/httemplate/view/cust_main/packages/services.html b/httemplate/view/cust_main/packages/services.html
index 5fe41a3..fa193d6 100644
--- a/httemplate/view/cust_main/packages/services.html
+++ b/httemplate/view/cust_main/packages/services.html
@@ -97,9 +97,22 @@ function clearhint_search_cust_svc(obj, str) {
 %             local $opt{'num_avail'} = $part_svc->num_avail;
               <BR><% svc_provision_link($cust_pkg, $part_svc, \%opt, $curuser) %>
 %           }
-%           #XXX if there's orders for this customer {
+%           if ( 
+%                qsearch({
+%                          'table' => 'did_order',
+%                          'hashref' => { 'custnum' => $cust_pkg->custnum },
+%                          'extra_sql' => ' LIMIT 1'
+%                        })
+%                ||
+%                qsearch({
+%                          'table' => 'did_order_item',
+%                          'hashref' => { 'custnum' => $cust_pkg->custnum },
+%                          'addl_from' => ' INNER JOIN did_order ON did_order_item.ordernum = did_order.ordernum',
+%                          'extra_sql' => ' LIMIT 1'
+%                       })
+%           ) {
               <BR><A HREF="<%$p%>browse/did_order.html?custnum=<%$cust_pkg->custnum%>"><% mt('Browse Received DID Inventory') |h %></A> 
-%           #}
+%           }
 %       }
         </TD>
       </TR>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/cust_main/packages/services.html |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list