summaryrefslogtreecommitdiff
path: root/UI/am-account-form.html
blob: 64bffb8bd17c9f8d719cefd72b3dd2b090ee18d8 (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 INCLUDE 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 INCLUDE 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 INCLUDE 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 INCLUDE input element_data={
  39. name => 'category',
  40. type => 'radio',
  41. label => text('Liability'),
  42. ${checked.L_} => checked.L_,
  43. value => 'L'} ?><br />
  44. <?lsmb INCLUDE input element_data={
  45. name => 'category',
  46. type => 'radio',
  47. label => text('Equity'),
  48. ${checked.Q_} => checked.Q_,
  49. value => 'Q'} ?><br />
  50. <?lsmb INCLUDE input element_data={
  51. name => 'category',
  52. type => 'radio',
  53. label => text('Income'),
  54. ${checked.I_} => checked.I_,
  55. value => 'I'} ?><br />
  56. <?lsmb INCLUDE 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 INCLUDE 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 INCLUDE input element_data={
  73. name => 'charttype',
  74. type => 'radio',
  75. label => text('Heading'),
  76. ${checked.H} => checked.H,
  77. value => 'H'} ?><br />
  78. <?lsmb INCLUDE 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 INCLUDE input element_data={
  97. name => 'AR',
  98. type => 'checkbox',
  99. label => text('AR'),
  100. ${form.AR} => form.AR,
  101. value => 'AR'} ?>
  102. <?lsmb INCLUDE input element_data={
  103. name => 'AP',
  104. type => 'checkbox',
  105. label => text('AP'),
  106. ${form.AP} => form.AP,
  107. value => 'AP'} ?>
  108. <?lsmb INCLUDE 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 INCLUDE 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 INCLUDE 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 INCLUDE 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'} ?><br />
  151. <?lsmb INCLUDE input element_data={
  152. name => 'AR_overpayment',
  153. type => 'checkbox',
  154. label => text('Overpayment'),
  155. ${form.AR_overpayment} => form.AR_overpayment,
  156. value => 'AR_overpayment'} ?>
  157. </td>
  158. <td align="right">
  159. <?lsmb INCLUDE input element_data={
  160. name => 'AP_amount',
  161. type => 'checkbox',
  162. label => text('Expense/Asset'),
  163. ${form.AP_amount} => form.AP_amount,
  164. value => 'AP_amount'} ?><br />
  165. <?lsmb INCLUDE input element_data={
  166. name => 'AP_paid',
  167. type => 'checkbox',
  168. label => text('Payment'),
  169. ${form.AP_paid} => form.AP_paid,
  170. value => 'AP_paid'} ?><br />
  171. <?lsmb INCLUDE input element_data={
  172. name => 'AP_tax',
  173. type => 'checkbox',
  174. label => text('Tax'),
  175. ${form.AP_tax} => form.AP_tax,
  176. value => 'AP_tax'} ?><br />
  177. <?lsmb INCLUDE input element_data={
  178. name => 'AP_overpayment',
  179. type => 'checkbox',
  180. label => text('Overpayment'),
  181. ${form.AP_overpayment} => form.AP_overpayment,
  182. value => 'AP_overpayment'} ?>
  183. </td>
  184. <td align="right">
  185. <?lsmb INCLUDE input element_data={
  186. name => 'IC_sale',
  187. type => 'checkbox',
  188. label => text('Income'),
  189. ${form.IC_sale} => form.IC_sale,
  190. value => 'IC_sale'} ?><br />
  191. <?lsmb INCLUDE input element_data={
  192. name => 'IC_cogs',
  193. type => 'checkbox',
  194. label => text('COGS'),
  195. ${form.IC_cogs} => form.IC_cogs,
  196. value => 'IC_cogs'} ?><br />
  197. <?lsmb INCLUDE input element_data={
  198. name => 'IC_taxpart',
  199. type => 'checkbox',
  200. label => text('Tax'),
  201. ${form.IC_taxpart} => form.IC_taxpart,
  202. value => 'IC_taxpart'} ?>
  203. </td>
  204. <td align="right">
  205. <?lsmb INCLUDE input element_data={
  206. name => 'IC_income',
  207. type => 'checkbox',
  208. label => text('Income'),
  209. ${form.IC_income} => form.IC_income,
  210. value => 'IC_income'} ?><br />
  211. <?lsmb INCLUDE input element_data={
  212. name => 'IC_expense',
  213. type => 'checkbox',
  214. label => text('Expense'),
  215. ${form.IC_expense} => form.IC_expense,
  216. value => 'IC_expense'} ?><br />
  217. <?lsmb INCLUDE input element_data={
  218. name => 'IC_taxservice',
  219. type => 'checkbox',
  220. label => text('Tax'),
  221. ${form.IC_taxservice} => form.IC_taxservice,
  222. value => 'IC_taxservice'} ?>
  223. </td>
  224. </tr>
  225. </table>
  226. </td>
  227. </tr>
  228. <?lsmb END ?>
  229. <tr><td> </td></tr>
  230. <tr>
  231. <th align="right"><?lsmb text('GIFI') ?></th>
  232. <td><?lsmb INCLUDE input element_data={
  233. name => 'gifi_accno',
  234. size => '9',
  235. value => form.gifi_accno} ?></td>
  236. </tr>
  237. </table>
  238. </td>
  239. </tr>
  240. <tr><td><hr size="3" noshade="noshade" /></td></tr>
  241. </table>
  242. <?lsmb FOREACH hidden IN hiddens.keys;
  243. INCLUDE input element_data={
  244. type => 'hidden',
  245. name => hidden,
  246. value => hiddens.item(hidden)
  247. }; END ?>
  248. <?lsmb FOREACH button IN buttons; INCLUDE button element_data=button; END ?>
  249. </form>
  250. </body>
  251. </html>