[freeside-commits] branch FREESIDE_4_BRANCH updated. bbcc87b4f8a5e6c6fc2bd4d4cce17ae45d905a8d

Ivan ivan at 420.am
Wed Apr 19 13:15:17 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  bbcc87b4f8a5e6c6fc2bd4d4cce17ae45d905a8d (commit)
      from  a0001672ba855d7402ef891ee3db4488af3e9314 (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 bbcc87b4f8a5e6c6fc2bd4d4cce17ae45d905a8d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Apr 19 13:15:16 2017 -0700

    invoice logo for wordpress plugin, RT#75279

diff --git a/fs_selfservice/wordpress/mylogo.png b/fs_selfservice/wordpress/mylogo.png
new file mode 100644
index 0000000..1e415e6
Binary files /dev/null and b/fs_selfservice/wordpress/mylogo.png differ
diff --git a/fs_selfservice/wordpress/view_invoice.php b/fs_selfservice/wordpress/view_invoice.php
index a1e1680..6f854b0 100644
--- a/fs_selfservice/wordpress/view_invoice.php
+++ b/fs_selfservice/wordpress/view_invoice.php
@@ -18,6 +18,13 @@ if ( isset($invoice_info['error']) && $invoice_info['error'] ) {
 
 extract($invoice_info);
 
+//if we don't need multi-company logo support, this is probably easier than
+// calling invoice_logo()
+$invoice_html = preg_replace( '/cust_bill-logo\.cgi\?invnum=\d+;template=/',
+                              'mylogo.png?',
+                              $invoice_html
+                            );
+
 get_header();
 
 ?>

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

Summary of changes:
 conf/logo.png => fs_selfservice/wordpress/mylogo.png |  Bin 4887 -> 4887 bytes
 fs_selfservice/wordpress/view_invoice.php            |    7 +++++++
 2 files changed, 7 insertions(+)
 copy conf/logo.png => fs_selfservice/wordpress/mylogo.png (100%)




More information about the freeside-commits mailing list