app_config.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?php
  2. //application details
  3. $apps[$x]['name'] = 'Invoices';
  4. $apps[$x]['uuid'] = 'e5a1f4f5-7766-ec9c-118b-50f76b0788c0';
  5. $apps[$x]['category'] = '';
  6. $apps[$x]['subcategory'] = '';
  7. $apps[$x]['version'] = '';
  8. $apps[$x]['license'] = 'Mozilla Public License 1.1';
  9. $apps[$x]['contact_url'] = 'http://www.fusionpbx.com';
  10. $apps[$x]['description']['en-us'] = '';
  11. $apps[$x]['description']['es-mx'] = '';
  12. $apps[$x]['description']['de-de'] = '';
  13. $apps[$x]['description']['de-ch'] = '';
  14. $apps[$x]['description']['de-at'] = '';
  15. $apps[$x]['description']['fr-fr'] = '';
  16. $apps[$x]['description']['fr-ca'] = '';
  17. $apps[$x]['description']['fr-ch'] = '';
  18. $apps[$x]['description']['pt-pt'] = '';
  19. $apps[$x]['description']['pt-br'] = '';
  20. //permission details
  21. $y = 0;
  22. $apps[$x]['permissions'][$y]['name'] = 'invoice_view';
  23. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  24. //$apps[$x]['permissions'][$y]['groups'][] = 'user';
  25. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  26. $y++;
  27. $apps[$x]['permissions'][$y]['name'] = 'invoice_add';
  28. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  29. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  30. $y++;
  31. $apps[$x]['permissions'][$y]['name'] = 'invoice_edit';
  32. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  33. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  34. //$apps[$x]['permissions'][$y]['groups'][] = 'user';
  35. $y++;
  36. $apps[$x]['permissions'][$y]['name'] = 'invoice_item_view';
  37. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  38. //$apps[$x]['permissions'][$y]['groups'][] = 'user';
  39. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  40. $y++;
  41. $apps[$x]['permissions'][$y]['name'] = 'invoice_item_add';
  42. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  43. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  44. $y++;
  45. $apps[$x]['permissions'][$y]['name'] = 'invoice_item_edit';
  46. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  47. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  48. //$apps[$x]['permissions'][$y]['groups'][] = 'user';
  49. $y++;
  50. $apps[$x]['permissions'][$y]['name'] = 'invoice_item_delete';
  51. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  52. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  53. $y++;
  54. $apps[$x]['permissions'][$y]['name'] = 'invoice_delete';
  55. $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
  56. //$apps[$x]['permissions'][$y]['groups'][] = 'admin';
  57. //schema details
  58. $y = 0; //table array index
  59. $z = 0; //field array index
  60. $apps[$x]['db'][$y]['table'] = 'v_invoices';
  61. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
  62. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'invoice_id';
  63. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
  64. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
  65. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
  66. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  67. $z++;
  68. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_uuid';
  69. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  70. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  71. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  72. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary';
  73. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  74. $z++;
  75. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  76. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  77. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  78. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  79. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign';
  80. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  81. $z++;
  82. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'domain_id ';
  83. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'v_id';
  84. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  85. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  86. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  87. $z++;
  88. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_uuid_from';
  89. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'contact_id_from';
  90. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  91. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  92. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  93. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Contact ID invoice is sent from';
  94. $z++;
  95. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_uuid_to';
  96. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'contact_id_to';
  97. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  98. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  99. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  100. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Contact ID invoice is sent to';
  101. $z++;
  102. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_number';
  103. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  104. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the invoice number.';
  105. $z++;
  106. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_date';
  107. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'timestamp with time zone';
  108. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'datetime';
  109. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'timestamp';
  110. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the date.';
  111. $z++;
  112. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_notes';
  113. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  114. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the invoice notes.';
  115. $z++;
  116. $y = 1; //table array index
  117. $apps[$x]['db'][$y]['table'] = 'v_invoice_items';
  118. $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
  119. $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'invoice_item_id';
  120. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
  121. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
  122. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT';
  123. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  124. $z++;
  125. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_item_uuid';
  126. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  127. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  128. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  129. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary';
  130. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  131. $z++;
  132. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
  133. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  134. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  135. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  136. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'foreign';
  137. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  138. $z++;
  139. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
  140. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  141. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  142. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  143. $z++;
  144. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_id';
  145. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  146. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  147. $apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
  148. $z++;
  149. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'invoice_uuid';
  150. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
  151. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
  152. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
  153. $apps[$x]['db'][$y]['fields'][$z]['key'] = 'primary';
  154. $apps[$x]['db'][$y]['fields'][$z]['description'] = '';
  155. $z++;
  156. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'item_qty';
  157. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
  158. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the Quantity';
  159. $z++;
  160. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'item_desc';
  161. $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
  162. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the description.';
  163. $z++;
  164. $apps[$x]['db'][$y]['fields'][$z]['name'] = 'item_unit_price';
  165. $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'numeric';
  166. $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'numeric';
  167. $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'decimal(10,2)';
  168. $apps[$x]['db'][$y]['fields'][$z]['description'] = 'Enter the unit price.';
  169. $z++;
  170. ?>