Merge pull request #17078 from herbdool/ui-18
[civicrm-core.git] / xml / schema / Price / PriceSetEntity.xml
index 4614eb7722b9459218541fb3f980fa9ebb7870d7..4049d8a820428f95a4b08383b0045b0dc8e7ddac 100644 (file)
@@ -7,54 +7,62 @@
   <add>1.8</add>
   <log>true</log>
   <field>
-      <name>id</name>
-      <type>int unsigned</type>
-      <required>true</required>
-      <comment>Price Set Entity</comment>
-      <add>1.8</add>
+    <name>id</name>
+    <title>Price Set Entity ID</title>
+    <type>int unsigned</type>
+    <required>true</required>
+    <comment>Price Set Entity</comment>
+    <add>1.8</add>
   </field>
   <primaryKey>
-      <name>id</name>
-      <autoincrement>true</autoincrement>
+    <name>id</name>
+    <autoincrement>true</autoincrement>
   </primaryKey>
   <field>
-      <name>entity_table</name>
-      <type>varchar</type>
-      <length>64</length>
-      <required>true</required>
-      <comment>Table which uses this price set</comment>
-      <add>1.8</add>
+    <name>entity_table</name>
+    <title>Entity Table</title>
+    <type>varchar</type>
+    <length>64</length>
+    <required>true</required>
+    <comment>Table which uses this price set</comment>
+    <add>1.8</add>
   </field>
   <field>
-      <name>entity_id</name>
-      <type>int unsigned</type>
-      <required>true</required>
-      <comment>Item in table</comment>
-      <add>1.8</add>
+    <name>entity_id</name>
+    <title>Entity IF</title>
+    <type>int unsigned</type>
+    <required>true</required>
+    <comment>Item in table</comment>
+    <add>1.8</add>
   </field>
   <dynamicForeignKey>
-      <idColumn>entity_id</idColumn>
-      <typeColumn>entity_table</typeColumn>
-      <add>1.8</add>
+    <idColumn>entity_id</idColumn>
+    <typeColumn>entity_table</typeColumn>
+    <add>1.8</add>
   </dynamicForeignKey>
   <field>
-      <name>price_set_id</name>
-      <type>int unsigned</type>
-      <required>true</required>
-      <comment>price set being used</comment>
-      <add>1.8</add>
+    <name>price_set_id</name>
+    <title>Price Set</title>
+    <type>int unsigned</type>
+    <required>true</required>
+    <comment>price set being used</comment>
+    <add>1.8</add>
+    <pseudoconstant>
+      <table>civicrm_price_set</table>
+      <keyColumn>id</keyColumn>
+      <labelColumn>title</labelColumn>
+    </pseudoconstant>
   </field>
   <foreignKey>
-      <name>price_set_id</name>
-      <table>civicrm_price_set</table>
-      <key>id</key>
+    <name>price_set_id</name>
+    <table>civicrm_price_set</table>
+    <key>id</key>
   </foreignKey>
   <index>
-      <name>UI_entity</name>
-      <fieldName>entity_table</fieldName>
-      <fieldName>entity_id</fieldName>
-      <unique>true</unique>
-      <add>1.8</add>
+    <name>UI_entity</name>
+    <fieldName>entity_table</fieldName>
+    <fieldName>entity_id</fieldName>
+    <unique>true</unique>
+    <add>1.8</add>
   </index>
 </table>
-