summaryrefslogtreecommitdiff
path: root/UI/payments/payments_filter.html
blob: e8cbd6b0daa616619317f2ee39b61c9e05c23c7a (plain)
  1. <?lsmb INCLUDE 'ui-header.html'
  2. include_stylesheet = [
  3. 'css/global.css'
  4. 'UI/payments/payments.css'
  5. ]
  6. titlebar = text('Selection')
  7. ?>
  8. <?lsmb PROCESS 'elements.html' # Include form elements helper. ?>
  9. <body id="payments-filter-body">
  10. <div class="listtop">
  11. <!-- CT: Strings for locales:
  12. <?lsmb text('Filtering Receipts') ?>
  13. <?lsmb text('Filtering Payments') ?> -->
  14. <?lsmb IF account_class == 1 ?><?lsmb t = 'Payments'
  15. ?><?lsmb ELSE ?><?lsmb t = 'Receipts'
  16. ?><?lsmb END ?>
  17. <?lsmb text("Filtering $t") ?>
  18. </div>
  19. <form name="search" method="post" action="payment.pl">
  20. <?lsmb INCLUDE input element_data={
  21. value = account_class
  22. type = "hidden"
  23. name = "account_class"
  24. } ?>
  25. <?lsmb INCLUDE input element_data={
  26. value = batch_id
  27. type = "hidden"
  28. name = "batch_id"
  29. } ?>
  30. <div id = "payments-filter-categories" class="inputgroup">
  31. <?lsmb IF projects ?>
  32. <div id = "payments-filter-projects" class="input">
  33. <label for="project"><?lsmb text('Project') ?></label>
  34. <select name="project_id" id="project">
  35. <?lsmb FOREACH p = projects ?>
  36. <option value="<?lsmb p.id ?>"><?lsmb p.projectnumber ?></option>
  37. <?lsmb END ?>
  38. </select>
  39. </div>
  40. <?lsmb END ?>
  41. <?lsmb IF departments ?>
  42. <div id = "payments-filter-departments" class="input">
  43. <label for="department"><?lsmb text('Department') ?></label>
  44. <select name="department_id" id="department">
  45. <?lsmb FOREACH d = departments ?>
  46. <option value="<?lsmb d.id ?>"><?lsmb d.description ?></option>
  47. <?lsmb END ?>
  48. </select>
  49. </div>
  50. <?lsmb END ?>
  51. <?lsmb IF businesses ?>
  52. <div id = "payments-filter-businesses" class="input">
  53. <label for="businesses"><?lsmb text('Business Class') ?></label>
  54. <select name="business" id="businesses">
  55. <?lsmb FOREACH b = businesses ?>
  56. <option value="<?lsmb b.id ?>"><?lsmb b.description ?></option>
  57. <?lsmb END ?>
  58. </select>
  59. </div>
  60. <?lsmb END ?>
  61. </div>
  62. <div class="input" id="account_input">
  63. <label for="account"><?lsmb text('Account') ?>
  64. <select name="ar_ap_accno">
  65. <?lsmb FOREACH a = debt_accounts ?>
  66. <option value="<?lsmb a.accno ?>" <?lsmb
  67. IF a.id == account ?> SELECTED <?lsmb END ?>>
  68. <?lsmb a.accno ?>--<?lsmb a.description ?></option>
  69. <?lsmb END ?>
  70. </select>
  71. <div id = "payments-filter-daterow" class = "inputgroup">
  72. <?lsmb PROCESS input element_data = {
  73. label = text('Date From:')
  74. type = "text"
  75. class = "date"
  76. value = date_from
  77. name = "date_from"
  78. size = 12
  79. } # ' ?>
  80. <?lsmb PROCESS input element_data = {
  81. label = text('Date To:')
  82. type = "text"
  83. class = "date"
  84. value = date_to
  85. name = "date_to"
  86. size = 12
  87. } # ' ?>
  88. </div>
  89. <div id = "payments-filter-currency-row" class="inputgroup" ?>
  90. <label for="currency"><?lsmb text('Currency')?></label>
  91. <select name="currency" id="currency">
  92. <?lsmb FOREACH c = openCurrencies ?><?lsmb k = c.keys.first ?>
  93. <option value = "<?lsmb c.$k ?>"><?lsmb c.$k ?></option>
  94. <?lsmb END ?>
  95. </select>
  96. </div>
  97. </div>
  98. <div class = "input">
  99. <?lsmb INCLUDE input element_data = {
  100. type = "text"
  101. size = "20"
  102. name = "source_start"
  103. label = text('Start Source Numbering At:')
  104. } # '?>
  105. </div>
  106. <?lsmb INCLUDE button element_data = {
  107. type = "submit"
  108. name = "action"
  109. text = text('Continue')
  110. class = "submit"
  111. value = "display_payments"
  112. } ?>
  113. </form>
  114. </body>
  115. </html>