fixed customer type search on customer list
authorLinda Nichols <lynnaloo@gmail.com>
Sun, 24 Aug 2014 22:24:07 +0000 (22:24 +0000)
committerLinda Nichols <lynnaloo@gmail.com>
Sun, 24 Aug 2014 22:24:07 +0000 (22:24 +0000)
enyo-client/application/source/views/list.js
enyo-client/database/orm/models/customer.json

index aa5b973..6e24b31 100644 (file)
@@ -690,10 +690,13 @@ trailing:true, white:true, strict: false*/
             {kind: "XV.ListAttr", attr: "billingContact.phone", },
             {kind: "XV.ListAttr", attr: "billingContact.primaryEmail"}
           ]},
-          {kind: "XV.ListColumn", fit: true, components: [
+          {kind: "XV.ListColumn", classes: "descr", components: [
             {kind: "XV.ListAttr", attr: "billingContact.name",
               placeholder: "_noContact".loc()},
             {kind: "XV.ListAttr", attr: "billingContact.address"}
+          ]},
+          {kind: "XV.ListColumn", fit: true, components: [
+            {kind: "XV.ListAttr", attr: "customerType"}
           ]}
         ]}
       ]}
@@ -2531,7 +2534,7 @@ trailing:true, white:true, strict: false*/
       ]}
     ]
   });
-  
+
   XV.registerModelList("XM.UserAccountRelation", "XV.UserAccountList");
 
   // ..........................................................
index ae86963..5e9678f 100644 (file)
           "type": "ContactRelation",
           "column": "cust_cntct_id"
         }
+      },
+      {
+        "name": "customerType",
+        "toOne": {
+          "type": "CustomerType",
+          "column": "type"
+        }
       }
     ],
     "extensions": [