[freeside-commits] branch FREESIDE_2_3_BRANCH updated. b24f2ed54a7aad4772a6d7c04035887f59fb3fe2

Ivan ivan at 420.am
Mon May 13 13:12:37 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  b24f2ed54a7aad4772a6d7c04035887f59fb3fe2 (commit)
      from  58ab78241abf6dd5dbf61d4a7543c189f0454187 (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 b24f2ed54a7aad4772a6d7c04035887f59fb3fe2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon May 13 13:12:36 2013 -0700

    add custnum to phone_shellcommands export, RT#23062

diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm
index 11fee83..8227c6b 100644
--- a/FS/FS/part_export/phone_shellcommands.pm
+++ b/FS/FS/part_export/phone_shellcommands.pm
@@ -52,6 +52,7 @@ old_ for replace operations):
   <LI><code>$pin</code> - Personal identification number
   <LI><code>$cust_name</code> - Customer name (quoted for the shell)
   <LI><code>$pkgnum</code> - Internal package number
+  <LI><code>$custnum</code> - Internal customer number
   <LI><code>$mac_addr</code> - MAC address (Device MAC address insert and delete commands only)
 </UL>
 END
@@ -107,6 +108,7 @@ sub _export_command {
   }
   my $cust_pkg = $svc_phone->cust_svc->cust_pkg;
   my $pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
+  my $custnum = $cust_pkg ? $cust_pkg->custnum : '';
   my $cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
   $cust_name = shell_quote $cust_name;
   my $sip_password = shell_quote $svc_phone->sip_password;
@@ -133,8 +135,10 @@ sub _export_replace {
 
   my $old_cust_pkg = $old->cust_svc->cust_pkg;
   my $old_pkgnum = $old_cust_pkg ? $old_cust_pkg->pkgnum : '';
+  my $old_custnum = $old_cust_pkg ? $old_cust_pkg->custnum : '';
   my $cust_pkg = $new->cust_svc->cust_pkg;
   my $new_pkgnum = $cust_pkg ? $cust_pkg->pkgnum : '';
+  my $new_custnum = $new_cust_pkg ? $new_cust_pkg->custnum : '';
   my $new_cust_name = $cust_pkg ? $cust_pkg->cust_main->name : '';
   $new_cust_name = shell_quote $new_cust_name;
   #done setting variables for the command

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

Summary of changes:
 FS/FS/part_export/phone_shellcommands.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list