From: Ivan Kohler Date: Fri, 28 Sep 2012 03:27:43 +0000 (-0700) Subject: Merge branch 'master' of git.freeside.biz:/home/git/freeside X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3185fe4edea62dd3fa9818cf80902e96fe2a2d21;p=freeside.git Merge branch 'master' of git.freeside.biz:/home/git/freeside Conflicts: FS/FS/cust_main/Billing.pm --- 3185fe4edea62dd3fa9818cf80902e96fe2a2d21 diff --cc FS/FS/Misc.pm index 2be9ec203,2be9ec203..297e39fbc --- a/FS/FS/Misc.pm +++ b/FS/FS/Misc.pm @@@ -913,16 -913,16 +913,6 @@@ sub ocr_image @lines; } --=item spool_formats -- --Returns a list of the invoice spool formats. -- --=cut -- --sub spool_formats { -- qw(default oneline billco bridgestone) --} -- =back =head1 BUGS diff --cc FS/FS/TicketSystem/RT_Internal.pm index b09647e18,b09647e18..01e2e2966 --- a/FS/FS/TicketSystem/RT_Internal.pm +++ b/FS/FS/TicketSystem/RT_Internal.pm @@@ -50,7 -50,7 +50,7 @@@ sub access_right sub session { my( $self, $session ) = @_; -- if ( $session && $session->{'Current_User'} ) { # does this even work? ++ if ( $session && $session->{'CurrentUser'} ) { # does this even work? warn "$me session: using existing session and CurrentUser: \n". Dumper($session->{'CurrentUser'}) if $DEBUG; diff --cc FS/FS/cust_pkg_discount.pm index a20794027,a20794027..5f4d0dccf --- a/FS/FS/cust_pkg_discount.pm +++ b/FS/FS/cust_pkg_discount.pm @@@ -106,7 -106,7 +106,8 @@@ sub insert 'amount' => $self->amount, 'percent' => $self->percent, 'months' => $self->months, -- 'setup' => $self->setup, ++ 'setup' => $self->setup, ++ #'linked' => $self->linked, 'disabled' => 'Y', }; my $error = $discount->insert; diff --cc FS/FS/discount.pm index 88cbdd41c,88cbdd41c..f6f994599 --- a/FS/FS/discount.pm +++ b/FS/FS/discount.pm @@@ -136,6 -136,6 +136,7 @@@ sub check || $self->ut_floatn('months') #actually decimal, but this will do || $self->ut_enum('disabled', [ '', 'Y' ]) || $self->ut_enum('setup', [ '', 'Y' ]) ++ #|| $self->ut_enum('linked', [ '', 'Y' ]) ; return $error if $error; diff --cc FS/FS/part_event/Action/pkg_agent_credit.pm index 4bcee983b,4bcee983b..e1c77be07 --- a/FS/FS/part_event/Action/pkg_agent_credit.pm +++ b/FS/FS/part_event/Action/pkg_agent_credit.pm @@@ -18,7 -18,7 +18,7 @@@ sub do_action my $agent_cust_main = $agent->agent_cust_main; #? or return "No customer record for agent ". $agent->agent; -- my $amount = $self->_calc_credit($cust_pkg); ++ my $amount = $self->_calc_credit($cust_pkg); return '' unless $amount > 0; my $reasonnum = $self->option('reasonnum'); @@@ -29,6 -29,6 +29,7 @@@ 'eventnum' => $cust_event->eventnum, 'addlinfo' => 'for customer #'. $cust_main->display_custnum. ': '.$cust_main->name, ++ #'commission_agentnum' => $agent->agentnum, ); die "Error crediting customer ". $agent_cust_main->custnum. " for agent commission: $error" diff --cc FS/FS/part_export/shellcommands.pm index ca4e52420,ca4e52420..f964af31c --- a/FS/FS/part_export/shellcommands.pm +++ b/FS/FS/part_export/shellcommands.pm @@@ -490,7 -490,7 +490,7 @@@ sub ssh_cmd { #subroutine, not metho my ($output, $errput) = $ssh->capture2($ssh_opt, $opt->{'command'}); return if $opt->{'ignore_all_errors'}; -- die "Error running SSH command: ". $ssh->error if $ssh->error; ++ #die "Error running SSH command: ". $ssh->error if $ssh->error; if ( ($output || $errput) && $opt->{'ignored_errors'} && length($opt->{'ignored_errors'}) @@@ -504,7 -504,7 +504,9 @@@ $errput =~ s/[\s\n]//g; } -- die "$errput\n" if $errput; ++ die (($errput || $ssh->error). "\n") if $errput || $ssh->error; ++ #die "$errput\n" if $errput; ++ die "$output\n" if $output and $opt->{'fail_on_output'}; ''; } diff --cc FS/FS/rate.pm index 02d8250eb,02d8250eb..a2511cf99 --- a/FS/FS/rate.pm +++ b/FS/FS/rate.pm @@@ -387,7 -387,7 +387,7 @@@ sub rate_detail =item process --Experimental job-queue processor for web interface adds/edits ++Job-queue processor for web interface adds/edits =cut diff --cc FS/FS/svc_Tower_Mixin.pm index 0b5588466,0b5588466..6adbc6f5e --- a/FS/FS/svc_Tower_Mixin.pm +++ b/FS/FS/svc_Tower_Mixin.pm @@@ -52,5 -52,5 +52,4 @@@ sub tower_sector_sql @where; } -- 1; diff --cc bin/231commit index ca28ede1e,ca28ede1e..6d09863ca --- a/bin/231commit +++ b/bin/231commit @@@ -20,8 -20,8 +20,8 @@@ die "no files!" unless @ARGV system join('', "( cd /home/$USER/freeside2.3/$prefix; git pull ) && ", "( cd /home/$USER/freeside2.1/$prefix; git pull ) && ", -- "git diff -u @ARGV | ( cd /home/$USER/freeside2.3/$prefix; patch ) ", -- " && git diff -u @ARGV | ( cd /home/$USER/freeside2.1/$prefix; patch ) ", ++ "git diff -u @ARGV | ( cd /home/$USER/freeside2.3/$prefix; patch -p1 ) ", ++ " && git diff -u @ARGV | ( cd /home/$USER/freeside2.1/$prefix; patch -p1 ) ", " && ( ( git commit -m $desc @ARGV && git push); ", "( cd /home/$USER/freeside2.3/$prefix; git commit -m $desc @ARGV && git push); ", "( cd /home/$USER/freeside2.1/$prefix; git commit -m $desc @ARGV && git push) )" diff --cc bin/23diff index 0c0575aa6,0c0575aa6..d38c84834 --- a/bin/23diff +++ b/bin/23diff @@@ -3,7 -3,7 +3,8 @@@ my $file = shift; chomp(my $dir = `pwd`); --$dir =~ s/freeside\//freeside2.3\//; ++$dir =~ s/freeside(\/?)/freeside2.3$1/; ++warn $dir; #$cmd = "diff -u $file $dir/$file"; $cmd = "diff -u $dir/$file $file"; diff --cc bin/cdr.import index 36266efbf,36266efbf..36266efbf mode 100644,100644..100755 --- a/bin/cdr.import +++ b/bin/cdr.import diff --cc bin/cust_main-bill_now index 17e48fbcf,17e48fbcf..f8a15803b mode 100644,100644..100755 --- a/bin/cust_main-bill_now +++ b/bin/cust_main-bill_now @@@ -13,7 -13,7 +13,9 @@@ my $custnum = shift or die &usage my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ) or die "unknown custnum $custnum\n"; --$cust_main->bill_and_collect( debug=>2, check_freq=>'1d' ); ++$FS::cust_main::DEBUG = 3; ++ ++$cust_main->bill_and_collect( debug=>3, check_freq=>'1d' ); sub usage { die "Usage:\n cust_main-bill_now user custnum\n"; diff --cc bin/pod2x index ecb7f913b,ecb7f913b..1ec998fc2 --- a/bin/pod2x +++ b/bin/pod2x @@@ -7,12 -7,12 +7,15 @@@ chomp( my $mw_password = `cat .mw-passw my $site_perl = "./FS"; #my $html = "Freeside:1.7:Documentation:Developer"; --my $html = "Freeside:1.9:Documentation:Developer"; ++#my $html = "Freeside:1.9:Documentation:Developer"; ++my $html = "Freeside:3:Documentation:Developer"; foreach my $dir ( $html, -- map "$html/$_", qw( bin FS FS/UI FS/part_export FS/part_pkg ++ map "$html/$_", qw( bin FS ++ FS/cdr FS/cust_main FS/cust_pkg FS/detail_format FS/part_event FS/part_event/Condition FS/part_event/Action ++ FS/part_export FS/part_pkg FS/pay_batch FS/ClientAPI FS/Cron FS/Misc FS/Report FS/Report/Table FS/TicketSystem FS/UI FS/SelfService @@@ -43,6 -43,6 +46,7 @@@ foreach my $file use WWW::Mediawiki::Client; my $mvs = WWW::Mediawiki::Client->new( 'host' => 'www.freeside.biz', ++ 'protocol' => 'https', 'wiki_path' => 'mediawiki/index.php', 'username' => $mw_username, 'password' => $mw_password, diff --cc fs_selfservice/DEPLOY index e73012f4b,e73012f4b..bedb5eca9 --- a/fs_selfservice/DEPLOY +++ b/fs_selfservice/DEPLOY @@@ -11,7 -11,7 +11,7 @@@ perl Makefile.PL && make && make instal cd .. #( cd ..; make deploy; cd fs_selfservice ) --( cd ..; make clean; make install-perl-modules; /etc/init.d/freeside restart; cd fs_selfservice ) ++( cd ..; make clean; make configure-rt; make install-perl-modules; /etc/init.d/freeside restart; cd fs_selfservice ) #cp /home/ivan/freeside/fs_selfservice/FS-SelfService/cgi/* /var/www/MyAccount #chown freeside /var/www/MyAccount/*.cgi diff --cc fs_selfservice/FS-SelfService/cgi/agent.cgi index 0af94cd9e,0af94cd9e..0af94cd9e mode 100644,100644..100755 --- a/fs_selfservice/FS-SelfService/cgi/agent.cgi +++ b/fs_selfservice/FS-SelfService/cgi/agent.cgi diff --cc fs_selfservice/FS-SelfService/cgi/cust_bill-logo.cgi index 253f853f8,253f853f8..253f853f8 mode 100644,100644..100755 --- a/fs_selfservice/FS-SelfService/cgi/cust_bill-logo.cgi +++ b/fs_selfservice/FS-SelfService/cgi/cust_bill-logo.cgi diff --cc fs_selfservice/FS-SelfService/cgi/xmlrpc.cgi index d5a8e2063,d5a8e2063..d5a8e2063 mode 100644,100644..100755 --- a/fs_selfservice/FS-SelfService/cgi/xmlrpc.cgi +++ b/fs_selfservice/FS-SelfService/cgi/xmlrpc.cgi diff --cc httemplate/browse/cust_note_class.html index f5d450b9f,f5d450b9f..7928199b3 --- a/httemplate/browse/cust_note_class.html +++ b/httemplate/browse/cust_note_class.html @@@ -3,7 -3,7 +3,7 @@@ 'html_init' => $html_init, 'name' => 'customer note classes', 'disableable' => 1, -- 'disabled_statuspos' => 2, ++ 'disabled_statuspos' => 1, 'query' => { 'table' => 'cust_note_class', 'hashref' => {}, 'order_by' => 'ORDER BY classnum', diff --cc httemplate/docs/license.html index fab8cd09f,fab8cd09f..e40b2436b --- a/httemplate/docs/license.html +++ b/httemplate/docs/license.html @@@ -6,7 -6,7 +6,7 @@@

--Copyright © 2005-2009 Freeside Internet Services, Inc.
++Copyright © 2005-2012 Freeside Internet Services, Inc.
Copyright © 2000-2005 Ivan Kohler
Copyright © 1999 Silicon Interactive Software Design
All rights reserved
diff --cc httemplate/edit/discount.html index b195eb37b,b195eb37b..9bcd1e724 --- a/httemplate/edit/discount.html +++ b/httemplate/edit/discount.html @@@ -22,6 -22,6 +22,7 @@@ postfix => '
(blank for non-expiring discount)', }, { field => 'setup', type => 'checkbox', value=>'Y', }, ++ #{ field => 'linked', type => 'checkbox', value=>'Y', }, ], 'labels' => { 'discountnum' => 'Discount #', @@@ -32,6 -32,6 +33,7 @@@ 'percent' => 'Percentage ', 'months' => 'Duration (months)', 'setup' => 'Apply to setup fees', ++ #'linked' => 'Apply to add-on packages', }, 'viewall_dir' => 'browse', 'new_callback' => $new_callback, @@@ -114,6 -114,6 +116,10 @@@ my $javascript = < scalar($cgi->param('discountnum_amount')), 'percent' => scalar($cgi->param('discountnum_percent')), 'months' => scalar($cgi->param('discountnum_months')), -- 'setup' => scalar($cgi->param('discountnum_setup')), ++ 'setup' => scalar($cgi->param('discountnum_setup')), ++ #'linked' => scalar($cgi->param('discountnum_linked')), #'disabled' => $self->discountnum_disabled, }; my $error = $cust_pkg_discount->insert; diff --cc httemplate/edit/process/quick-cust_pkg.cgi index ba4c5b1b6,ba4c5b1b6..c5eee0cb8 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@@ -2,19 -2,19 +2,24 @@@ % $cgi->param('error', $error); <% $cgi->redirect(popurl(3). 'misc/order_pkg.html?'. $cgi->query_string ) %> %} else { --% my $frag = "cust_pkg". $cust_pkg->pkgnum; % my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/ % ? '' % : ';show=packages'; --% my $redir_url = popurl(3) --% ."view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag"; ++% ++% my $redir_url = popurl(3); ++% if ( $svcpart ) { # for going straight to service provisining after ordering ++% $redir_url .= 'edit/'.$part_svc->svcdb.'.cgi?'. ++% 'pkgnum='.$cust_pkg->pkgnum. ";svcpart=$svcpart"; ++% $redir_url .= ";qualnum=$qualnum" if $qualnum; ++% } elsif ( $quotationnum ) { ++% $redir_url .= "view/quotation.html?quotationnum=$quotationnum"; ++% } else { ++% my $custnum = $cust_main->custnum; ++% my $frag = "cust_pkg". $cust_pkg->pkgnum; ++% $redir_url .= ++% "view/cust_main.cgi?custnum=$custnum$show;fragment=$frag#$frag"; ++% } % --% # for going right to a provision service after ordering a package --% if ( $svcpart ) { --% $redir_url = popurl(3)."edit/".$part_svc->svcdb.".cgi?". --% "pkgnum=".$cust_pkg->pkgnum. ";svcpart=$svcpart"; --% $redir_url .= ";qualnum=$qualnum" if $qualnum; --% } <% header('Package ordered') %>