summaryrefslogtreecommitdiff
path: root/UI/payments/payments_filter.html
blob: ab8ae7a261995855830d53620125c2d4e15870d4 (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 account_class == 1 ?>
  58. <?lsmb vendor_customer_code = text("Vendor Number") # " ?>
  59. <?lsmb ELSIF account_class == 2 ?>
  60. <?lsmb vendor_customer_code = text("Customer Number") # " ?>
  61. <?lsmb END ?>
  62. <?lsmb PROCESS input element_data = {
  63. name = "meta_number"
  64. type = "text"
  65. value = meta_number
  66. label = vendor_customer_code
  67. size = '15'
  68. } ?>
  69. <?lsmb IF businesses ?>
  70. <div id = "payments-filter-businesses" class="input">
  71. <label for="businesses"><?lsmb text('Business Class') ?></label>
  72. <select name="business_id" id="businesses">
  73. <?lsmb FOREACH b = businesses ?>
  74. <option value="<?lsmb b.id ?>"><?lsmb b.description ?></option>
  75. <?lsmb END ?>
  76. </select>
  77. </div>
  78. <?lsmb END ?>
  79. </div>
  80. <div class="input" id="account_input">
  81. <label for="account"><?lsmb text('Account') ?>
  82. <select name="ar_ap_accno">
  83. <?lsmb FOREACH a = debt_accounts ?>
  84. <option value="<?lsmb a.accno ?>" <?lsmb
  85. IF a.id == account ?> SELECTED <?lsmb END ?>>
  86. <?lsmb a.accno ?>--<?lsmb a.description ?></option>
  87. <?lsmb END ?>
  88. </select>
  89. <div id = "payments-filter-daterow" class = "inputgroup">
  90. <?lsmb PROCESS input element_data = {
  91. label = text('Date From:')
  92. type = "text"
  93. class = "date"
  94. value = date_from
  95. name = "date_from"
  96. size = 12
  97. } # ' ?>
  98. <?lsmb PROCESS input element_data = {
  99. label = text('Date To:')
  100. type = "text"
  101. class = "date"
  102. value = date_to
  103. name = "date_to"
  104. size = 12
  105. } # ' ?>
  106. </div>
  107. <div id = "payments-filter-currency-row" class="inputgroup" ?>
  108. <label for="currency"><?lsmb text('Currency')?></label>
  109. <select name="currency" id="currency">
  110. <?lsmb FOREACH c = openCurrencies ?><?lsmb k = c.keys.first ?>
  111. <option value = "<?lsmb c.$k ?>"><?lsmb c.$k ?></option>
  112. <?lsmb END ?>
  113. </select>
  114. </div>
  115. </div>
  116. <div class="listtop"><?lsmb text('Payment Processing') ?></div>
  117. <?lsmb INCLUDE select element_data = {
  118. name = "cash_accno"
  119. default_values = [cash_accno]
  120. options = cash_accounts
  121. value_attr = "accno"
  122. text_attr = "text"
  123. label = text('Pay From:') # '
  124. } ?>
  125. <div class = "input">
  126. <?lsmb INCLUDE input element_data = {
  127. type = "text"
  128. size = "20"
  129. name = "source_start"
  130. label = text('Start Source Numbering At:')
  131. } # '?>
  132. </div>
  133. <?lsmb INCLUDE button element_data = {
  134. type = "submit"
  135. name = "action"
  136. text = text('Continue')
  137. class = "submit"
  138. value = "display_payments"
  139. } ?>
  140. </form>
  141. </body>
  142. </html>