summaryrefslogtreecommitdiff
path: root/UI/am-account-form.html
blob: 34482b516129ad42e659e20d7290b16b934b259f (plain)
  1. <?lsmb INCLUDE 'ui-header.html' ?>
  2. <?lsmb PROCESS elements.html ?>
  3. <body>
  4. <form method="post" action="<?lsmb form.script ?>">
  5. <table border="0" width="100%">
  6. <tr><th class="listtop"><?lsmb form.title ?></th></tr>
  7. <tr><td> </td></tr>
  8. <tr valign="top">
  9. <td>
  10. <table>
  11. <tr>
  12. <th align="right"><?lsmb text('Account Number') ?></th>
  13. <td><?lsmb PROCESS input element_data={
  14. name => 'accno',
  15. size => '20',
  16. value => form.accno} ?></td>
  17. </tr>
  18. <tr>
  19. <th align="right"><?lsmb text('Description') ?></th>
  20. <td><?lsmb PROCESS input element_data={
  21. name => 'description',
  22. size => '40',
  23. value => form.description} ?></td>
  24. </tr>
  25. <tr>
  26. <th align="right"><?lsmb text('Account Type') ?></th>
  27. <td>
  28. <table>
  29. <tr valign="top">
  30. <td align="right">
  31. <?lsmb PROCESS input element_data={
  32. name => 'category',
  33. type => 'radio',
  34. label => text('Asset'),
  35. value => 'A',
  36. ${checked.A_} => checked.A_,
  37. } ?><br />
  38. <?lsmb PROCESS input element_data={
  39. name => 'category',
  40. type => 'radio',
  41. label => text('Liability'),
  42. ${checked.L_} => checked.L_,
  43. value => 'L'} ?><br />
  44. <?lsmb PROCESS input element_data={
  45. name => 'category',
  46. type => 'radio',
  47. label => text('Equity'),
  48. ${checked.Q_} => checked.Q_,
  49. value => 'Q'} ?><br />
  50. <?lsmb PROCESS input element_data={
  51. name => 'category',
  52. type => 'radio',
  53. label => text('Income'),
  54. ${checked.I_} => checked.I_,
  55. value => 'I'} ?><br />
  56. <?lsmb PROCESS input element_data={
  57. name => 'category',
  58. type => 'radio',
  59. label => text('Expense'),
  60. ${checked.E_} => checked.E_,
  61. value => 'E'} ?>
  62. </td>
  63. <td>
  64. <?lsmb PROCESS input element_data={
  65. name => 'contra',
  66. type => 'checkbox',
  67. label => text('Contra'),
  68. ${checked.contra} => checked.contra,
  69. value => '1'} ?>
  70. </td>
  71. <td align="right">
  72. <?lsmb PROCESS input element_data={
  73. name => 'charttype',
  74. type => 'radio',
  75. label => text('Heading'),
  76. ${checked.H} => checked.H,
  77. value => 'H'} ?><br />
  78. <?lsmb PROCESS input element_data={
  79. name => 'charttype',
  80. type => 'radio',
  81. label => text('Account'),
  82. ${checked.A} => checked.A,
  83. value => 'A'} ?>
  84. </td>
  85. </tr>
  86. </table>
  87. </td>
  88. </tr>
  89. <?lsmb IF form.charttype == 'A' ?>
  90. <tr>
  91. <td colspan="2">
  92. <table>
  93. <tr>
  94. <th align="left"><?lsmb text('Is this a summary account to record') ?></th>
  95. <td>
  96. <?lsmb PROCESS input element_data={
  97. name => 'AR',
  98. type => 'checkbox',
  99. label => text('AR'),
  100. ${form.AR} => form.AR,
  101. value => 'AR'} ?>
  102. <?lsmb PROCESS input element_data={
  103. name => 'AP',
  104. type => 'checkbox',
  105. label => text('AP'),
  106. ${form.AP} => form.AP,
  107. value => 'AP'} ?>
  108. <?lsmb PROCESS input element_data={
  109. name => 'IC',
  110. type => 'checkbox',
  111. label => text('Inventory'),
  112. ${form.IC} => form.IC,
  113. value => 'IC'} ?>
  114. </td>
  115. </tr>
  116. </table>
  117. </td>
  118. </tr>
  119. <tr>
  120. <th colspan="2" align="left"><?lsmb text('Include in drop-down menus') ?></th>
  121. </tr>
  122. <tr valign="top">
  123. <td colspan="2">
  124. <table width="100%">
  125. <tr>
  126. <th align="left"><?lsmb text('Receivables') ?></th>
  127. <th align="left"><?lsmb text('Payables') ?></th>
  128. <th align="left"><?lsmb text('Tracking Items') ?></th>
  129. <th align="left"><?lsmb text('Non-tracking Items') ?></th>
  130. </tr>
  131. <tr>
  132. <td align="right">
  133. <?lsmb PROCESS input element_data={
  134. name => 'AR_amount',
  135. type => 'checkbox',
  136. label => text('Income'),
  137. ${form.AR_amount} => form.AR_amount,
  138. value => 'AR_amount'} ?><br />
  139. <?lsmb PROCESS input element_data={
  140. name => 'AR_paid',
  141. type => 'checkbox',
  142. label => text('Payment'),
  143. ${form.AR_paid} => form.AR_paid,
  144. value => 'AR_paid'} ?><br />
  145. <?lsmb PROCESS input element_data={
  146. name => 'AR_tax',
  147. type => 'checkbox',
  148. label => text('Tax'),
  149. ${form.AR_tax} => form.AR_tax,
  150. value => 'AR_tax'} ?>
  151. </td>
  152. <td align="right">
  153. <?lsmb PROCESS input element_data={
  154. name => 'AP_amount',
  155. type => 'checkbox',
  156. label => text('Expense/Asset'),
  157. ${form.AP_amount} => form.AP_amount,
  158. value => 'AP_amount'} ?><br />
  159. <?lsmb PROCESS input element_data={
  160. name => 'AP_paid',
  161. type => 'checkbox',
  162. label => text('Payment'),
  163. ${form.AP_paid} => form.AP_paid,
  164. value => 'AP_paid'} ?><br />
  165. <?lsmb PROCESS input element_data={
  166. name => 'AP_tax',
  167. type => 'checkbox',
  168. label => text('Tax'),
  169. ${form.AP_tax} => form.AP_tax,
  170. value => 'AP_tax'} ?>
  171. </td>
  172. <td align="right">
  173. <?lsmb PROCESS input element_data={
  174. name => 'IC_sale',
  175. type => 'checkbox',
  176. label => text('Income'),
  177. ${form.IC_sale} => form.IC_sale,
  178. value => 'IC_sale'} ?><br />
  179. <?lsmb PROCESS input element_data={
  180. name => 'IC_cogs',
  181. type => 'checkbox',
  182. label => text('COGS'),
  183. ${form.IC_cogs} => form.IC_cogs,
  184. value => 'IC_cogs'} ?><br />
  185. <?lsmb PROCESS input element_data={
  186. name => 'IC_taxpart',
  187. type => 'checkbox',
  188. label => text('Tax'),
  189. ${form.IC_taxpart} => form.IC_taxpart,
  190. value => 'IC_taxpart'} ?>
  191. </td>
  192. <td align="right">
  193. <?lsmb PROCESS input element_data={
  194. name => 'IC_income',
  195. type => 'checkbox',
  196. label => text('Income'),
  197. ${form.IC_income} => form.IC_income,
  198. value => 'IC_income'} ?><br />
  199. <?lsmb PROCESS input element_data={
  200. name => 'IC_expense',
  201. type => 'checkbox',
  202. label => text('Expense'),
  203. ${form.IC_expense} => form.IC_expense,
  204. value => 'IC_expense'} ?><br />
  205. <?lsmb PROCESS input element_data={
  206. name => 'IC_taxservice',
  207. type => 'checkbox',
  208. label => text('Tax'),
  209. ${form.IC_taxservice} => form.IC_taxservice,
  210. value => 'IC_taxservice'} ?>
  211. </td>
  212. </tr>
  213. </table>
  214. </td>
  215. </tr>
  216. <?lsmb END ?>
  217. <tr><td> </td></tr>
  218. <tr>
  219. <th align="right"><?lsmb text('GIFI') ?></th>
  220. <td><?lsmb PROCESS input element_data={
  221. name => 'gifi_accno',
  222. size => '9',
  223. value => form.gifi_accno} ?></td>
  224. </tr>
  225. </table>
  226. </td>
  227. </tr>
  228. <tr><td><hr size="3" noshade="noshade" /></td></tr>
  229. </table>
  230. <?lsmb FOREACH hidden IN hiddens.keys;
  231. PROCESS input element_data={
  232. type => 'hidden',
  233. name => hidden,
  234. value => hiddens.item(hidden)
  235. }; END ?>
  236. <?lsmb FOREACH button IN buttons; PROCESS button element_data=button; END ?>
  237. </form>
  238. </body>
  239. </html>