v_config.php 8.1 KB

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