[freeside-commits] branch master updated. a354fed1dedc65cf62e63d940e1cfb9c4364e6d3
Christopher Burger
burgerc at freeside.biz
Tue Jul 31 07:29:35 PDT 2018
The branch, master has been updated
via a354fed1dedc65cf62e63d940e1cfb9c4364e6d3 (commit)
from ee3fc5b946e538ac7b51a6c92ea8eac205b9fda3 (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 a354fed1dedc65cf62e63d940e1cfb9c4364e6d3
Author: Christopher Burger <burgerc at freeside.biz>
Date: Tue Jul 31 10:29:19 2018 -0400
RT# 78356 - made status bar more responsive on export. Changed svc update to only happen when up and down speeds change.
diff --git a/FS/FS/part_export/saisei.pm b/FS/FS/part_export/saisei.pm
index 617a73226..c79f79dac 100644
--- a/FS/FS/part_export/saisei.pm
+++ b/FS/FS/part_export/saisei.pm
@@ -830,7 +830,7 @@ sub export_provisioned_services {
my $svc_count = scalar @svcs;
my %status = {};
- for (my $c=10; $c <=100; $c=$c+10) { $status{int($svc_count * ($c/100))} = $c; }
+ for (my $c=1; $c <=100; $c=$c+1) { $status{int($svc_count * ($c/100))} = $c; }
my $process_count=0;
foreach my $svc (@svcs) {
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi
index 6bab20278..5beb03411 100755
--- a/httemplate/edit/process/part_pkg.cgi
+++ b/httemplate/edit/process/part_pkg.cgi
@@ -209,6 +209,7 @@ my $update_svc = sub {
my @svcs = $new->pkg_svc();
+## update broadband services getting their up and down speeds from package fcc_477 options
foreach my $svc_part(@svcs) {
my @part_svc_column = qsearch('part_svc_column',{ 'svcpart' => $svc_part->{Hash}->{svcpart}, 'columnflag' => 'P' });
@@ -221,7 +222,7 @@ my $update_svc = sub {
'extra_sql' => " WHERE cust_svc.svcpart = '".$svc_part->{Hash}->{svcpart}."' AND cust_pkg.pkgpart = '".$svc_part->{Hash}->{pkgpart}."'",
});
foreach my $svc (@svc_svcdb) {
- #my $svc_new = $svc;
+ next if ($svc->{Hash}->{speed_down} == $args{fcc_options}->{broadband_downstream} * 1000 && $svc->{Hash}->{speed_up} == $args{fcc_options}->{broadband_upstream} * 1000);
$svc->{Hash}->{speed_down} = $args{fcc_options}->{broadband_downstream} * 1000;
$svc->{Hash}->{speed_up} = $args{fcc_options}->{broadband_upstream} * 1000;
$error = $svc->replace();
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_export/saisei.pm | 2 +-
httemplate/edit/process/part_pkg.cgi | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list