summaryrefslogtreecommitdiff
path: root/UI/payments/payments_filter.html
blob: f3ff8e3d41b97b50304f27d202e829a0b3add41f (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. <?lsmb INCLUDE input element_data={
  31. value = batch_date
  32. type = "hidden"
  33. name = "batch_date"
  34. } ?>
  35. <div id = "payments-filter-categories" class="inputgroup">
  36. <?lsmb IF projects ?>
  37. <div id = "payments-filter-projects" class="input">
  38. <label for="project"><?lsmb text('Project') ?></label>
  39. <select name="project_id" id="project">
  40. <?lsmb FOREACH p = projects ?>
  41. <option value="<?lsmb p.id ?>"><?lsmb p.projectnumber ?></option>
  42. <?lsmb END ?>
  43. </select>
  44. </div>
  45. <?lsmb END ?>
  46. <?lsmb IF departments ?>
  47. <div id = "payments-filter-departments" class="input">
  48. <label for="department"><?lsmb text('Department') ?></label>
  49. <select name="department_id" id="department">
  50. <?lsmb FOREACH d = departments ?>
  51. <option value="<?lsmb d.id ?>"><?lsmb d.description ?></option>
  52. <?lsmb END ?>
  53. </select>
  54. </div>
  55. <?lsmb END ?>
  56. <?lsmb IF businesses ?>
  57. <div id = "payments-filter-businesses" class="input">
  58. <label for="businesses"><?lsmb text('Business Class') ?></label>
  59. <select name="business" id="businesses">
  60. <?lsmb FOREACH b = businesses ?>
  61. <option value="<?lsmb b.id ?>"><?lsmb b.description ?></option>
  62. <?lsmb END ?>
  63. </select>
  64. </div>
  65. <?lsmb END ?>
  66. </div>
  67. <div class="input" id="account_input">
  68. <label for="account"><?lsmb text('Account') ?>
  69. <select name="ar_ap_accno">
  70. <?lsmb FOREACH a = debt_accounts ?>
  71. <option value="<?lsmb a.accno ?>" <?lsmb
  72. IF a.id == account ?> SELECTED <?lsmb END ?>>
  73. <?lsmb a.accno ?>--<?lsmb a.description ?></option>
  74. <?lsmb END ?>
  75. </select>
  76. <div id = "payments-filter-daterow" class = "inputgroup">
  77. <?lsmb PROCESS input element_data = {
  78. label = text('Date From:')
  79. type = "text"
  80. class = "date"
  81. value = date_from
  82. name = "date_from"
  83. size = 12
  84. } # ' ?>
  85. <?lsmb PROCESS input element_data = {
  86. label = text('Date To:')
  87. type = "text"
  88. class = "date"
  89. value = date_to
  90. name = "date_to"
  91. size = 12
  92. } # ' ?>
  93. </div>
  94. <div id = "payments-filter-currency-row" class="inputgroup" ?>
  95. <label for="currency"><?lsmb text('Currency')?></label>
  96. <select name="currency" id="currency">
  97. <?lsmb FOREACH c = openCurrencies ?><?lsmb k = c.keys.first ?>
  98. <option value = "<?lsmb c.$k ?>"><?lsmb c.$k ?></option>
  99. <?lsmb END ?>
  100. </select>
  101. </div>
  102. </div>
  103. <div class = "input">
  104. <?lsmb INCLUDE input element_data = {
  105. type = "text"
  106. size = "20"
  107. name = "source_start"
  108. label = text('Start Source Numbering At:')
  109. } # '?>
  110. </div>
  111. <?lsmb INCLUDE button element_data = {
  112. type = "submit"
  113. name = "action"
  114. text = text('Continue')
  115. class = "submit"
  116. value = "display_payments"
  117. } ?>
  118. </form>
  119. </body>
  120. </html>