[freeside-commits] branch FREESIDE_4_BRANCH updated. cf9580877fc7fd9333b5e871a76fe8ec35c9f2b8

Ivan ivan at 420.am
Mon Nov 7 22:28:17 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  cf9580877fc7fd9333b5e871a76fe8ec35c9f2b8 (commit)
      from  5747043b65207732f7c84cc16ea77d2da3f5813f (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 cf9580877fc7fd9333b5e871a76fe8ec35c9f2b8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Nov 7 22:28:16 2016 -0800

    invoices look like they belong under customers

diff --git a/httemplate/elements/footer-cust_main.html b/httemplate/elements/footer-cust_main.html
new file mode 100644
index 0000000..c9a9cc2
--- /dev/null
+++ b/httemplate/elements/footer-cust_main.html
@@ -0,0 +1,2 @@
+</DIV>
+<& /elements/footer.html &>
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index c7238e6..e35d7f1 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -1,13 +1,6 @@
-<& /elements/header.html, mt('Invoice View'), menubar(
-  emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
-) &>
+<& /elements/header-cust_main.html, view=>'payment_history', custnum=>$custnum &>
 
-<SCRIPT TYPE="text/javascript">
-function areyousure(href, message) {
-  if (confirm(message) == true)
-    window.location.href = href;
-}
-</SCRIPT>
+<h2>Invoice #<% $invnum %></h2>
 
 % if ( !$cust_bill->closed ) { # otherwise allow no changes
 %   my $can_delete = $conf->exists('deleteinvoices')
@@ -187,7 +180,7 @@ function change_invoice_mode(obj) {
   <PRE><% join('', $cust_bill->print_text(\%opt) ) |h %></PRE>
 % } 
 
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
 <%init>
 
 my $curuser = $FS::CurrentUser::CurrentUser;
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi
index 2254df4..2e8d746 100755
--- a/httemplate/view/cust_main.cgi
+++ b/httemplate/view/cust_main.cgi
@@ -148,8 +148,7 @@
 %   }
 % }
 
-</DIV>
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
 <%init>
 
 my $curuser = $FS::CurrentUser::CurrentUser;
diff --git a/httemplate/view/cust_main/menu.html b/httemplate/view/cust_main/menu.html
index d9190ee..d12ec17 100644
--- a/httemplate/view/cust_main/menu.html
+++ b/httemplate/view/cust_main/menu.html
@@ -688,7 +688,11 @@ sub entry2link {
 
       # the menu head: always a link back to this page
       $cgi->param('show', $entry->{show});
-      $target = $cgi->self_url;
+
+      #$target = $cgi->self_url;
+      #XXX support installs outside /freeside in 4.x
+      $target = "/freeside/view/cust_main.cgi?show=$show;custnum=". $cust_main->custnum;
+
       $cgi->param('show', $show);
 
       my $a = qq[ <A HREF="$target"];

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

Summary of changes:
 httemplate/elements/footer-cust_main.html |    2 ++
 httemplate/view/cust_bill.cgi             |   13 +++----------
 httemplate/view/cust_main.cgi             |    3 +--
 httemplate/view/cust_main/menu.html       |    6 +++++-
 4 files changed, 11 insertions(+), 13 deletions(-)
 create mode 100644 httemplate/elements/footer-cust_main.html




More information about the freeside-commits mailing list