summaryrefslogtreecommitdiff
path: root/UI/am-account-form.html
blob: ec37f9b2e84a4198d9947d53c5b24bbb5e38dac5 (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'} ?><br />
  157. <?lsmb INCLUDE input element_data={
  158. name => 'AR_discount',
  159. type => 'checkbox',
  160. label => text('Discount'),
  161. ${form.AR_discount} => form.AR_discount,
  162. value => 'AR_discount'} ?>
  163. </td>
  164. <td align="right">
  165. <?lsmb INCLUDE input element_data={
  166. name => 'AP_amount',
  167. type => 'checkbox',
  168. label => text('Expense/Asset'),
  169. ${form.AP_amount} => form.AP_amount,
  170. value => 'AP_amount'} ?><br />
  171. <?lsmb INCLUDE input element_data={
  172. name => 'AP_paid',
  173. type => 'checkbox',
  174. label => text('Payment'),
  175. ${form.AP_paid} => form.AP_paid,
  176. value => 'AP_paid'} ?><br />
  177. <?lsmb INCLUDE input element_data={
  178. name => 'AP_tax',
  179. type => 'checkbox',
  180. label => text('Tax'),
  181. ${form.AP_tax} => form.AP_tax,
  182. value => 'AP_tax'} ?><br />
  183. <?lsmb INCLUDE input element_data={
  184. name => 'AP_overpayment',
  185. type => 'checkbox',
  186. label => text('Overpayment'),
  187. ${form.AP_overpayment} => form.AP_overpayment,
  188. value => 'AP_overpayment'} ?><br />
  189. <?lsmb INCLUDE input element_data={
  190. name => 'AP_discount',
  191. type => 'checkbox',
  192. label => text('Discount'),
  193. ${form.AP_overpayment} => form.AP_discount,
  194. value => 'AP_discount'} ?>
  195. </td>
  196. <td align="right" valign="top">
  197. <?lsmb INCLUDE input element_data={
  198. name => 'IC_sale',
  199. type => 'checkbox',
  200. label => text('Income'),
  201. ${form.IC_sale} => form.IC_sale,
  202. value => 'IC_sale'} ?><br />
  203. <?lsmb INCLUDE input element_data={
  204. name => 'IC_cogs',
  205. type => 'checkbox',
  206. label => text('COGS'),
  207. ${form.IC_cogs} => form.IC_cogs,
  208. value => 'IC_cogs'} ?><br />
  209. <?lsmb INCLUDE input element_data={
  210. name => 'IC_taxpart',
  211. type => 'checkbox',
  212. label => text('Tax'),
  213. ${form.IC_taxpart} => form.IC_taxpart,
  214. value => 'IC_taxpart'} ?>
  215. </td>
  216. <td align="right" valign="top">
  217. <?lsmb INCLUDE input element_data={
  218. name => 'IC_income',
  219. type => 'checkbox',
  220. label => text('Income'),
  221. ${form.IC_income} => form.IC_income,
  222. value => 'IC_income'} ?><br />
  223. <?lsmb INCLUDE input element_data={
  224. name => 'IC_expense',
  225. type => 'checkbox',
  226. label => text('Expense'),
  227. ${form.IC_expense} => form.IC_expense,
  228. value => 'IC_expense'} ?><br />
  229. <?lsmb INCLUDE input element_data={
  230. name => 'IC_taxservice',
  231. type => 'checkbox',
  232. label => text('Tax'),
  233. ${form.IC_taxservice} => form.IC_taxservice,
  234. value => 'IC_taxservice'} ?>
  235. </td>
  236. </tr>
  237. </table>
  238. </td>
  239. </tr>
  240. <?lsmb END ?>
  241. <tr><td> </td></tr>
  242. <tr>
  243. <th align="right"><?lsmb text('GIFI') ?></th>
  244. <td><?lsmb INCLUDE input element_data={
  245. name => 'gifi_accno',
  246. size => '9',
  247. value => form.gifi_accno} ?></td>
  248. </tr>
  249. </table>
  250. </td>
  251. </tr>
  252. <tr><td><hr size="3" noshade="noshade" /></td></tr>
  253. </table>
  254. <?lsmb FOREACH hidden IN hiddens.keys;
  255. INCLUDE input element_data={
  256. type => 'hidden',
  257. name => hidden,
  258. value => hiddens.item(hidden)
  259. }; END ?>
  260. <?lsmb FOREACH button IN buttons; INCLUDE button element_data=button; END ?>
  261. </form>
  262. </body>
  263. </html>