[freeside-commits] branch FREESIDE_3_BRANCH updated. d7b4beaeb975c55f5203aef275c7c01853fa51f2
Ivan Kohler
ivan at freeside.biz
Thu Sep 13 10:55:02 PDT 2018
The branch, FREESIDE_3_BRANCH has been updated
via d7b4beaeb975c55f5203aef275c7c01853fa51f2 (commit)
via 2c0ab6236b187a39fbb6e2046180e2531a391333 (commit)
from 4cf578816f5a491b1f66ddb5a9e832457ebe1332 (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 d7b4beaeb975c55f5203aef275c7c01853fa51f2
Merge: 2c0ab6236 4cf578816
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Sep 13 10:54:53 2018 -0700
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
commit 2c0ab6236b187a39fbb6e2046180e2531a391333
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jan 31 17:29:10 2017 -0800
add condition_sql optimization to "Package definitions" condition, RT#74456
diff --git a/FS/FS/part_event/Condition/pkg_pkgpart.pm b/FS/FS/part_event/Condition/pkg_pkgpart.pm
index 6adef8eb6..d5b5c8daa 100644
--- a/FS/FS/part_event/Condition/pkg_pkgpart.pm
+++ b/FS/FS/part_event/Condition/pkg_pkgpart.pm
@@ -25,15 +25,16 @@ sub option_fields {
sub condition {
my( $self, $cust_pkg) = @_;
- #XXX test
my $if_pkgpart = $self->option('if_pkgpart') || {};
$if_pkgpart->{ $cust_pkg->pkgpart };
}
-#XXX
-#sub condition_sql {
-#
-#}
+sub condition_sql {
+ my( $self, $table ) = @_;
+
+ 'cust_pkg.pkgpart IN '.
+ $self->condition_sql_option_option_integer('if_pkgpart');
+}
1;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_event/Condition/pkg_pkgpart.pm | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list