From 178a4a3b111cb1cae3b44b2de4a86c8491096bfa Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 13 May 2013 13:12:34 -0700 Subject: [PATCH] add custnum to phone_shellcommands export, RT#23062 --- FS/FS/part_export/phone_shellcommands.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FS/FS/part_export/phone_shellcommands.pm b/FS/FS/part_export/phone_shellcommands.pm index 161ffe0f5..411c263d2 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):
  • $pin - Personal identification number
  • $cust_name - Customer name (quoted for the shell)
  • $pkgnum - Internal package number +
  • $custnum - Internal customer number
  • $mac_addr - MAC address (Device MAC address insert and delete commands only) 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 -- 2.11.0