summaryrefslogtreecommitdiff
path: root/UI/payments/payments_filter.html
blob: c92a57c24480ffe6273c1c2dbdaf4a8de0d0003b (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"><?lsmb text('Payment Processing') ?></div>
  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. <div class = "input">
  114. <?lsmb INCLUDE input element_data = {
  115. type = "text"
  116. size = "20"
  117. name = "source_start"
  118. label = text('Start Source Numbering At:')
  119. } # '?>
  120. </div>
  121. <?lsmb INCLUDE button element_data = {
  122. type = "submit"
  123. name = "action"
  124. text = text('Continue')
  125. class = "submit"
  126. value = "display_payments"
  127. } ?>
  128. </form>
  129. </body>
  130. </html>