[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 4bcf77b01371a888e49882de396fd2761aee3025
Ivan
ivan at 420.am
Tue Mar 20 16:37:33 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 4bcf77b01371a888e49882de396fd2761aee3025 (commit)
from 3a8fb7c865946019ceee3254972f9275c539b9d2 (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 4bcf77b01371a888e49882de396fd2761aee3025
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Mar 20 16:37:32 2012 -0700
fix multiple services w/cust_bill_has_service condition, RT#17035
diff --git a/FS/FS/part_event/Condition/cust_bill_has_service.pm b/FS/FS/part_event/Condition/cust_bill_has_service.pm
index 61e32ce..65c9964 100644
--- a/FS/FS/part_event/Condition/cust_bill_has_service.pm
+++ b/FS/FS/part_event/Condition/cust_bill_has_service.pm
@@ -16,9 +16,6 @@ sub eventtable_hashref {
};
}
-# could not find component for path '/elements/tr-select-part_svc.html'
-# sub disabled { 1; }
-
sub option_fields {
(
'has_service' => { 'label' => 'Has service',
@@ -44,14 +41,16 @@ sub condition {
sub condition_sql {
my( $class, $table, %opt ) = @_;
- my $servicenum =
- $class->condition_sql_option_option('has_service');
+ my $servicenums =
+ $class->condition_sql_option_option_integer( 'has_service',
+ $opt{'driver_name'},
+ );
my $sql = qq| 0 < ( SELECT COUNT(cs.svcpart)
FROM cust_bill_pkg cbp, cust_svc cs
WHERE cbp.invnum = cust_bill.invnum
AND cs.pkgnum = cbp.pkgnum
- AND cs.svcpart IN $servicenum
+ AND cs.svcpart IN $servicenums
)
|;
return $sql;
-----------------------------------------------------------------------
Summary of changes:
.../part_event/Condition/cust_bill_has_service.pm | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
More information about the freeside-commits
mailing list