summaryrefslogtreecommitdiff
path: root/UI/payments/search.html
blob: fd394e98923cf8b5e0ddac22d78b6a65df0edd9b (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('Search Payments') # '
  8. ?><?lsmb PROCESS 'elements.html' ?>
  9. <body>
  10. <?lsmb IF account_class == 2 ?><?lsmb contact_type = "Customer" -?>
  11. <?lsmb ELSIF account_class == 1 ?><?lsmb contact_type = "Vendor" -?>
  12. <?lsmb ELSE ?><?lsmb contact_type = "Unsupported" -?>
  13. <?lsmb END # if account_class -?>
  14. <!-- CT: Text strings for localization:
  15. <?lsmb text('Customer Number') ?>
  16. <?lsmb text('Vendor Number') ?>
  17. <?lsmb text('Unsupported Number') ?>
  18. -->
  19. <form action="payment.pl" method="post" name="main_form"
  20. id="payment_search_form">
  21. <?lsmb INCLUDE input element_data = {
  22. type = "hidden"
  23. name = "batch_id"
  24. value = batch_id
  25. } ?>
  26. <?lsmb INCLUDE input element_data = {
  27. type = "hidden"
  28. name = "account_class"
  29. value = account_class
  30. } ?>
  31. <div class="listtop" id="page_title"><?lsmb text('Search Payments') ?></div>
  32. <div class="input" id="vendor_input_div">
  33. <?lsmb INCLUDE input element_data = {
  34. name = "meta_number"
  35. value = meta_number
  36. class = "text"
  37. type = "text"
  38. size = "20"
  39. label = text("$contact_type Number") # "
  40. } ?><!-- CT: Not yet working for search.
  41. <?lsmb INCLUDE input element_data = {
  42. name = "name"
  43. value = name
  44. class = "text"
  45. type = "text"
  46. size = "20"
  47. label = text('Name')
  48. } ?> --></div>
  49. <div class="input" id="account_input_div">
  50. <?lsmb INCLUDE select element_data = {
  51. name = "cash_accno"
  52. options = cash_accounts
  53. default_values = [cash_accno]
  54. class = "account"
  55. value_attr = "accno"
  56. label = text('Cash Account') # '
  57. } ?></div>
  58. <div class="input" id="source_input_div">
  59. <?lsmb INCLUDE input element_data = {
  60. name = "source"
  61. value = source
  62. class = "text"
  63. type = "text"
  64. size = "20"
  65. label = text('Source')
  66. } ?></div>
  67. <div class="input" id="date_input_div">
  68. <?lsmb INCLUDE input element_data = {
  69. name = "date_from"
  70. value = date_from
  71. class = "date"
  72. type = "text"
  73. size = "20"
  74. label = text('From Date') # '
  75. } ?>
  76. <?lsmb INCLUDE input element_data = {
  77. name = "date_to"
  78. value = date_to
  79. class = "date"
  80. type = "text"
  81. size = "20"
  82. label = text('Through Date') # '
  83. } ?></div>
  84. <?lsmb IF ! search_only ?>
  85. <div class="listtop"><?lsmb text('Payment Reversal Information') ?></div>
  86. <div class="input">
  87. <?lsmb IF batch_id -?>
  88. <label for="batch_post_span"><?lsmb text('Date Reversed') ?></label>
  89. <span id="batch_post_span"><?lsmb date_reversed ?></span>
  90. <?lsmb INCLUDE input element_data = {
  91. type = "hidden"
  92. value = date_reversed
  93. name = "date_reversed"
  94. } ?>
  95. <?lsmb ELSE -?>
  96. <?lsmb INCLUDE input element_data = {
  97. name = "date_reversed"
  98. value = date_reversed
  99. type = "text"
  100. size = "20"
  101. class = "date"
  102. label = text('Date Reversed') # '
  103. } ?>
  104. <?lsmb END # if batch_id ?></div>
  105. <?lsmb END # if ! search_only -?>
  106. <div class="input" id="search_button_div">
  107. <?lsmb INCLUDE button element_data = {
  108. name = "action"
  109. type = "submit"
  110. class = "submit"
  111. value = "get_search_results"
  112. text = text('Search')
  113. } ?></div>
  114. </form>
  115. </body>
  116. </html>