From: ivan Date: Tue, 24 Mar 2009 02:40:04 +0000 (+0000) Subject: bulk price plan: label as Name , supress extraneous service list, RT#3519 X-Git-Tag: freeside_1_7_4rc1~83 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0c5236c40f0205a35470175db8449f178d021c1b;p=freeside.git bulk price plan: label as Name , supress extraneous service list, RT#3519 --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index ad6613e64..f35fe4c1a 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1444,7 +1444,7 @@ sub ut_money { =item ut_text COLUMN Check/untaint text. Alphanumerics, spaces, and the following punctuation -symbols are currently permitted: ! @ # $ % & ( ) - + ; : ' " , . ? / = [ ] +symbols are currently permitted: ! @ # $ % & ( ) - + ; : ' " , . ? / = [ ] < > May not be null. If there is an error, returns the error, otherwise returns false. @@ -1456,7 +1456,7 @@ sub ut_text { #warn "notexist ". \¬exist. "\n"; #warn "AUTOLOAD ". \&AUTOLOAD. "\n"; $self->getfield($field) - =~ /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]+)$/ + =~ /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]\<\>]+)$/ or return gettext('illegal_or_empty_text'). " $field: ". $self->getfield($field); $self->setfield($field,$1); diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 70c7a7f9c..0dbe1b906 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -2593,8 +2593,11 @@ sub _items_cust_bill_pkg { my $description = $desc; $description .= ' Setup' if $cust_bill_pkg->recur != 0; - my @d = map &{$escape_function}($_), - $cust_pkg->h_labels_short($self->_date); + my @d = (); + push @d, map &{$escape_function}($_), + $cust_pkg->h_labels_short($self->_date) + unless $cust_pkg->part_pkg->hide_svc_detail; + push @d, $cust_bill_pkg->details(%details_opt) if $cust_bill_pkg->recur == 0; @@ -2617,12 +2620,17 @@ sub _items_cust_bill_pkg { " - ". time2str("%x", $cust_bill_pkg->edate). ")"; } + my @d = (); + #at least until cust_bill_pkg has "past" ranges in addition to #the "future" sdate/edate ones... see #3032 - my @d = map &{$escape_function}($_), - $cust_pkg->h_labels_short($self->_date); - #$cust_bill_pkg->edate, - #$cust_bill_pkg->sdate), + push @d, map &{$escape_function}($_), + $cust_pkg->h_labels_short($self->_date) + #$cust_bill_pkg->edate, + #$cust_bill_pkg->sdate), + unless $cust_pkg->part_pkg->hide_svc_detail + || $cust_bill_pkg->itemdesc; + push @d, $cust_bill_pkg->details(%details_opt); push @b, { diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 42681a0e9..316af4eaf 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -369,23 +369,34 @@ Usage example: my($label, $value, $svcdb) = $cust_svc->label; +=item label_long + +Like the B