search tickets on some customer fields, RT#9328
[freeside.git] / rt / share / html / Callbacks / SearchCustomerFields / Search / Elements / PickBasics / Default
diff --git a/rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default b/rt/share/html/Callbacks/SearchCustomerFields/Search/Elements/PickBasics/Default
new file mode 100644 (file)
index 0000000..abbafbc
--- /dev/null
@@ -0,0 +1,46 @@
+<%init>
+push @$Conditions, 
+    {
+        Name => 'Agentnum',
+        Field => 'Agent',
+        Op => {
+            Type => 'component',
+            Path => '/Elements/SelectBoolean',
+            Arguments => { TrueVal=> '=', FalseVal => '!=' },
+        },
+        Value => {
+            Type => 'component',
+            Path => '/Elements/SelectCustomerAgent',
+        },
+    },
+    {
+        Name => 'Classnum',
+        Field => 'Customer Class',
+        Op => {
+            Type => 'component',
+            Path => '/Elements/SelectBoolean',
+            Arguments => { TrueVal=> '=', FalseVal => '!=' },
+        },
+        Value => {
+            Type => 'component',
+            Path => '/Elements/SelectCustomerClass',
+        },
+    },
+    {
+        Name => 'Tagnum',
+        Field => 'Tag',
+        Op => {
+            Type => 'component',
+            Path => '/Elements/SelectBoolean',
+            Arguments => { TrueVal=> '=', FalseVal => '!=' },
+        },
+        Value => {
+            Type => 'component',
+            Path => '/Elements/SelectCustomerTag',
+        },
+    },
+;
+</%init>
+<%ARGS>
+$Conditions => []
+</%ARGS>