stub Condition/payby.pm for 3.x->4.x upgrades, RT#32043
authorIvan Kohler <ivan@freeside.biz>
Fri, 12 Feb 2016 18:02:01 +0000 (10:02 -0800)
committerIvan Kohler <ivan@freeside.biz>
Fri, 12 Feb 2016 18:02:01 +0000 (10:02 -0800)
FS/FS/part_event/Condition/payby.pm [new file with mode: 0644]

diff --git a/FS/FS/part_event/Condition/payby.pm b/FS/FS/part_event/Condition/payby.pm
new file mode 100644 (file)
index 0000000..b666351
--- /dev/null
@@ -0,0 +1,19 @@
+package FS::part_event::Condition::payby;
+use base qw( FS::part_event::Condition );
+
+use strict;
+
+#this has no meaning in 4.x, but we need some sort of stub to upgrade
+
+sub description {
+  '(Deprecated) Customer payment type';
+}
+
+#never true, so never run?  that seems right.  this condition should have been
+# migrated in your upgrade.  if not, not running is safter than running for all
+# customers
+sub condition { 0; }
+
+sub disabled { 1; }
+
+1;