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