[freeside-commits] branch master updated. 16d3a80a49c5c7ac9c89befabdca9b875a509959

Ivan ivan at 420.am
Wed Jan 27 14:43:50 PST 2016


The branch, master has been updated
       via  16d3a80a49c5c7ac9c89befabdca9b875a509959 (commit)
      from  c2bc4ab7c4e338dbfddb959af9f9b43a2480b53a (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 16d3a80a49c5c7ac9c89befabdca9b875a509959
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jan 27 14:43:49 2016 -0800

    no PO numbers in 4.x for now

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 65a8484..1106310 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -886,13 +886,15 @@ sub print_generic {
       if ($format eq 'latex');
   }
 
-  # let invoices use either of these as needed
-  $invoice_data{'po_num'} = ($cust_main->payby eq 'BILL') 
-    ? $cust_main->payinfo : '';
-  $invoice_data{'po_line'} = 
-    (  $cust_main->payby eq 'BILL' && $cust_main->payinfo )
-      ? &$escape_function($self->mt("Purchase Order #").$cust_main->payinfo)
-      : $nbsp;
+# if (well, probably when) we still need PO numbers in the brave new world of
+# 4.x, then we'll have to add them back as their own customer fields
+#  # let invoices use either of these as needed
+#  $invoice_data{'po_num'} = ($cust_main->payby eq 'BILL') 
+#    ? $cust_main->payinfo : '';
+#  $invoice_data{'po_line'} = 
+#    (  $cust_main->payby eq 'BILL' && $cust_main->payinfo )
+#      ? &$escape_function($self->mt("Purchase Order #").$cust_main->payinfo)
+#      : $nbsp;
 
   my %money_chars = ( 'latex'    => '',
                       'html'     => $conf->config('money_char') || '$',

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

Summary of changes:
 FS/FS/Template_Mixin.pm |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)




More information about the freeside-commits mailing list